diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..de26ed8 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..2db80a5 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,682 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_app_usage_events.go +api_audit_events.go +api_default.go +api_domains.go +client.go +configuration.go +docs/App.md +docs/AppLifecycle.md +docs/AppLinks.md +docs/AppRelationships.md +docs/AppUsageEvent.md +docs/AppUsageEventApp.md +docs/AppUsageEventBuildpack.md +docs/AppUsageEventInstanceCount.md +docs/AppUsageEventLinks.md +docs/AppUsageEventLinksSelf.md +docs/AppUsageEventList.md +docs/AppUsageEventListPagination.md +docs/AppUsageEventListPaginationFirst.md +docs/AppUsageEventListPaginationLast.md +docs/AppUsageEventListPaginationNext.md +docs/AppUsageEventMemoryInMbPerInstance.md +docs/AppUsageEventOrganization.md +docs/AppUsageEventProcess.md +docs/AppUsageEventSpace.md +docs/AppUsageEventState.md +docs/AppUsageEventTask.md +docs/AppUsageEventsAPI.md +docs/ApplyOrganizationQuotaToOrganizations201Response.md +docs/ApplyOrganizationQuotaToOrganizations201ResponseLinks.md +docs/ApplyOrganizationQuotaToOrganizationsRequest.md +docs/AppsQuota.md +docs/AuditEvent.md +docs/AuditEventActor.md +docs/AuditEventLinks.md +docs/AuditEventLinksSelf.md +docs/AuditEventList.md +docs/AuditEventListPagination.md +docs/AuditEventOrganization.md +docs/AuditEventSpace.md +docs/AuditEventTarget.md +docs/AuditEventsAPI.md +docs/Authentication.md +docs/AuthenticationCredentials.md +docs/BrokerCatalog.md +docs/BrokerCatalogFeatures.md +docs/BrokerCatalogMetadata.md +docs/Buildpack.md +docs/Cost.md +docs/CreateOrganizationQuotaRequest.md +docs/CreateOrganizationQuotaRequestApps.md +docs/CreateOrganizationQuotaRequestDomains.md +docs/CreateOrganizationQuotaRequestRelationships.md +docs/CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md +docs/CreateOrganizationQuotaRequestRoutes.md +docs/CreateOrganizationQuotaRequestServices.md +docs/CreateOrganizationRequest.md +docs/DefaultAPI.md +docs/DeleteOrganizationQuota202Response.md +docs/Destination.md +docs/DestinationApp.md +docs/DestinationAppProcess.md +docs/Domain.md +docs/DomainLinks.md +docs/DomainRelationships.md +docs/DomainRelationshipsSharedOrganizations.md +docs/DomainsAPI.md +docs/DomainsQuota.md +docs/Droplet.md +docs/DropletChecksum.md +docs/DropletLifecycle.md +docs/DropletLinks.md +docs/DropletLinksAssignCurrentDroplet.md +docs/EnvironmentVariableGroup.md +docs/EnvironmentVariables.md +docs/EnvironmentVariablesLinks.md +docs/FeatureFlag.md +docs/Get200Response.md +docs/Get200ResponseLinks.md +docs/Get200ResponseLinksAppSsh.md +docs/Get200ResponseLinksAppSshMeta.md +docs/Get200ResponseLinksCloudControllerV2.md +docs/Get200ResponseLinksCloudControllerV2Meta.md +docs/Get200ResponseLinksLogCache.md +docs/HealthCheck.md +docs/HealthCheckData.md +docs/IsolationSegment.md +docs/IsolationSegmentLinks.md +docs/LastOperation.md +docs/Link.md +docs/LinkWithMethod.md +docs/Links.md +docs/ListOrganizationQuotas200Response.md +docs/ListOrganizationQuotas200ResponsePagination.md +docs/ListOrganizationQuotas200ResponsePaginationNext.md +docs/MaintenanceInfo.md +docs/ManagedServiceInstanceUpdate.md +docs/ManagedServiceInstanceUpdateRelationships.md +docs/Metadata.md +docs/Organization.md +docs/OrganizationLinks.md +docs/OrganizationQuota.md +docs/OrganizationQuotaLinks.md +docs/OrganizationQuotaRelationships.md +docs/OrganizationRelationships.md +docs/OrganizationVisibility.md +docs/Package.md +docs/PackageData.md +docs/PackageDataChecksum.md +docs/PackageLinks.md +docs/PackageLinksApp.md +docs/PackageLinksDownload.md +docs/PackageLinksSelf.md +docs/PackageLinksUpload.md +docs/Pagination.md +docs/PlanSchemas.md +docs/PlanSchemasServiceBinding.md +docs/PlanSchemasServiceBindingCreate.md +docs/PlanSchemasServiceInstance.md +docs/PlatformInfo.md +docs/PlatformInfoCliVersion.md +docs/PlatformInfoLinks.md +docs/Process.md +docs/ProcessLinks.md +docs/ProcessList.md +docs/ProcessRelationships.md +docs/ProcessScale.md +docs/ProcessStats.md +docs/ProcessStatsInstancePortsInner.md +docs/ProcessStatsUsage.md +docs/ProcessUpdate.md +docs/ReadinessHealthCheck.md +docs/ReadinessHealthCheckData.md +docs/ResourceMatchObject.md +docs/ResourceMatchRequest.md +docs/ResourceMatchResponse.md +docs/Revision.md +docs/RevisionLinks.md +docs/RevisionProcessesValue.md +docs/RevisionsList.md +docs/RevisionsListPagination.md +docs/Role.md +docs/RoleLinks.md +docs/RoleRelationships.md +docs/RoleRelationshipsSpace.md +docs/RoleRelationshipsSpaceData.md +docs/RolesList.md +docs/Route.md +docs/RouteLinks.md +docs/RouteList.md +docs/RoutesQuota.md +docs/Rule.md +docs/SecurityGroup.md +docs/SecurityGroupCreate.md +docs/SecurityGroupGloballyEnabled.md +docs/SecurityGroupLinks.md +docs/SecurityGroupList.md +docs/SecurityGroupRelationships.md +docs/SecurityGroupUpdate.md +docs/SecurityGroupUpdateGloballyEnabled.md +docs/ServiceBroker.md +docs/ServiceBrokerCreate.md +docs/ServiceBrokerLinks.md +docs/ServiceBrokerList.md +docs/ServiceBrokerRelationships.md +docs/ServiceBrokerUpdate.md +docs/ServiceCredentialBinding.md +docs/ServiceCredentialBindingLastOperation.md +docs/ServiceCredentialBindingLinks.md +docs/ServiceCredentialBindingRelationships.md +docs/ServiceInstance.md +docs/ServiceInstanceRelationships.md +docs/ServiceOffering.md +docs/ServiceOfferingCreate.md +docs/ServiceOfferingLinks.md +docs/ServiceOfferingList.md +docs/ServiceOfferingRelationships.md +docs/ServiceOfferingUpdate.md +docs/ServicePlan.md +docs/ServicePlanCreate.md +docs/ServicePlanLinks.md +docs/ServicePlanList.md +docs/ServicePlanRelationships.md +docs/ServicePlanUpdate.md +docs/ServicePlanVisibility.md +docs/ServicePlanVisibilityApply.md +docs/ServicePlanVisibilitySpace.md +docs/ServicePlanVisibilityUpdate.md +docs/ServiceRouteBinding.md +docs/ServiceRouteBindingLinks.md +docs/ServiceRouteBindingRelationships.md +docs/ServiceUsageEvent.md +docs/ServiceUsageEventLinks.md +docs/ServiceUsageEventServiceBroker.md +docs/ServiceUsageEventServiceInstance.md +docs/ServicesQuota.md +docs/Sidecar.md +docs/Space.md +docs/SpaceFeature.md +docs/SpaceLinks.md +docs/SpaceQuota.md +docs/SpaceQuotaLinks.md +docs/SpaceQuotaRelationships.md +docs/SpaceRelationships.md +docs/SpaceRelationshipsQuota.md +docs/Stack.md +docs/Task.md +docs/TaskLinks.md +docs/TaskResult.md +docs/ToOneRelationship.md +docs/UpdateOrganizationQuotaRequest.md +docs/UpdateOrganizationRequest.md +docs/UsageSummary.md +docs/User.md +docs/UserLinks.md +docs/UserLinksSelf.md +docs/UserProvidedServiceInstanceUpdate.md +docs/V3AppsGuidActionsRestartPost200Response.md +docs/V3AppsGuidActionsRestartPost200ResponseLifecycle.md +docs/V3AppsGuidActionsRestartPost200ResponseRelationships.md +docs/V3AppsGuidDropletsCurrentGet200Response.md +docs/V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md +docs/V3AppsGuidDropletsCurrentGet200ResponseChecksum.md +docs/V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md +docs/V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md +docs/V3AppsGuidDropletsCurrentGet200ResponseMetadata.md +docs/V3AppsGuidDropletsCurrentGet200ResponseRelationships.md +docs/V3AppsGuidDropletsGet200Response.md +docs/V3AppsGuidEnvGet200Response.md +docs/V3AppsGuidEnvGet200ResponseApplicationEnvJson.md +docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md +docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md +docs/V3AppsGuidEnvGet200ResponseSystemEnvJson.md +docs/V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner.md +docs/V3AppsGuidEnvironmentVariablesGet200Response.md +docs/V3AppsGuidEnvironmentVariablesPatchRequest.md +docs/V3AppsGuidFeaturesNamePatchRequest.md +docs/V3AppsGuidPatchRequest.md +docs/V3AppsGuidPatchRequestLifecycle.md +docs/V3AppsGuidPatchRequestLifecycleData.md +docs/V3AppsGuidPatchRequestMetadata.md +docs/V3AppsGuidPermissionsGet200Response.md +docs/V3AppsGuidRelationshipsCurrentDropletGet200Response.md +docs/V3AppsGuidSidecarsGet200Response.md +docs/V3AppsGuidSidecarsPostRequest.md +docs/V3AppsGuidSshEnabledGet200Response.md +docs/V3AppsGuidTasksPostRequest.md +docs/V3AppsGuidTasksPostRequestMetadata.md +docs/V3AppsGuidTasksPostRequestTemplate.md +docs/V3AppsGuidTasksPostRequestTemplateProcess.md +docs/V3AppsPostRequest.md +docs/V3AppsPostRequestLifecycle.md +docs/V3AppsPostRequestLifecycleData.md +docs/V3AppsPostRequestRelationships.md +docs/V3AppsPostRequestRelationshipsSpace.md +docs/V3AppsPostRequestRelationshipsSpaceData.md +docs/V3DomainsGet200Response.md +docs/V3DomainsGet200ResponsePagination.md +docs/V3DomainsGuidPatchRequest.md +docs/V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md +docs/V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md +docs/V3DomainsPostRequest.md +docs/V3DomainsPostRequestMetadata.md +docs/V3DomainsPostRequestOrganization.md +docs/V3DomainsPostRequestOrganizationData.md +docs/V3DomainsPostRequestRouterGroup.md +docs/V3DropletsPostRequest.md +docs/V3DropletsPostRequestRelationships.md +docs/V3DropletsPostRequestRelationshipsApp.md +docs/V3DropletsPostRequestRelationshipsAppData.md +docs/V3EnvironmentVariableGroupsNamePatchRequest.md +docs/V3FeatureFlagsGet200Response.md +docs/V3FeatureFlagsNamePatchRequest.md +docs/V3Get200Response.md +docs/V3Get200ResponseLinks.md +docs/V3Get200ResponseLinksServiceInstances.md +docs/V3IsolationSegmentsGet200Response.md +docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md +docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md +docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md +docs/V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md +docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md +docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md +docs/V3PackagesGet200Response.md +docs/V3PackagesGet200ResponsePagination.md +docs/V3PackagesGuidDelete202Response.md +docs/V3PackagesGuidPatchRequest.md +docs/V3PackagesGuidUploadPostRequestResourcesInner.md +docs/V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md +docs/V3PackagesPostRequest.md +docs/V3PackagesPostRequestData.md +docs/V3PackagesPostRequestMetadata.md +docs/V3PackagesPostRequestRelationships.md +docs/V3PackagesPostRequestRelationshipsApp.md +docs/V3PackagesPostRequestRelationshipsAppData.md +docs/V3RevisionsGuidPatchRequest.md +docs/V3RolesPostRequest.md +docs/V3RolesPostRequestRelationships.md +docs/V3RolesPostRequestRelationshipsUser.md +docs/V3RolesPostRequestRelationshipsUserData.md +docs/V3RoutesGet200Response.md +docs/V3RoutesGet200ResponsePagination.md +docs/V3RoutesPostRequest.md +docs/V3RoutesPostRequestRelationships.md +docs/V3ServiceCredentialBindingsGuidDetailsGet200Response.md +docs/V3ServiceCredentialBindingsGuidPatchRequest.md +docs/V3ServiceCredentialBindingsPostRequest.md +docs/V3ServiceCredentialBindingsPostRequestRelationships.md +docs/V3ServiceInstancesGet200Response.md +docs/V3ServiceInstancesGuidPatchRequest.md +docs/V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md +docs/V3ServiceRouteBindingsGet200Response.md +docs/V3ServiceRouteBindingsGuidPatchRequest.md +docs/V3ServiceRouteBindingsPostRequest.md +docs/V3ServiceUsageEventsGet200Response.md +docs/V3SidecarsGuidPatchRequest.md +docs/V3SpaceQuotasGet200Response.md +docs/V3SpaceQuotasGuidPatchRequest.md +docs/V3SpaceQuotasPostRequest.md +docs/V3SpaceQuotasPostRequestApps.md +docs/V3SpaceQuotasPostRequestRelationships.md +docs/V3SpaceQuotasPostRequestRoutes.md +docs/V3SpaceQuotasPostRequestServices.md +docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md +docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md +docs/V3SpacesGet200Response.md +docs/V3SpacesGuidFeaturesGet200Response.md +docs/V3SpacesGuidFeaturesPatchRequest.md +docs/V3SpacesGuidPatchRequest.md +docs/V3SpacesGuidUsersGet200Response.md +docs/V3SpacesPostRequest.md +docs/V3StacksGet200Response.md +docs/V3StacksGuidAppsGet200Response.md +docs/V3StacksPostRequest.md +docs/V3TasksGet200Response.md +docs/V3UsersGet200Response.md +docs/V3UsersGuidPatchRequest.md +docs/V3UsersPostRequest.md +docs/V3UsersPostRequestMetadata.md +git_push.sh +go.mod +go.sum +model___get_200_response.go +model___get_200_response_links.go +model___get_200_response_links_app_ssh.go +model___get_200_response_links_app_ssh_meta.go +model___get_200_response_links_cloud_controller_v2.go +model___get_200_response_links_cloud_controller_v2_meta.go +model___get_200_response_links_log_cache.go +model__v3_apps__guid__actions_restart_post_200_response.go +model__v3_apps__guid__actions_restart_post_200_response_lifecycle.go +model__v3_apps__guid__actions_restart_post_200_response_relationships.go +model__v3_apps__guid__droplets_current_get_200_response.go +model__v3_apps__guid__droplets_current_get_200_response_buildpacks_inner.go +model__v3_apps__guid__droplets_current_get_200_response_checksum.go +model__v3_apps__guid__droplets_current_get_200_response_lifecycle.go +model__v3_apps__guid__droplets_current_get_200_response_links_value.go +model__v3_apps__guid__droplets_current_get_200_response_metadata.go +model__v3_apps__guid__droplets_current_get_200_response_relationships.go +model__v3_apps__guid__droplets_get_200_response.go +model__v3_apps__guid__env_get_200_response.go +model__v3_apps__guid__env_get_200_response_application_env_json.go +model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application.go +model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application_limits.go +model__v3_apps__guid__env_get_200_response_system_env_json.go +model__v3_apps__guid__env_get_200_response_system_env_json_vcap_services_value_inner.go +model__v3_apps__guid__environment_variables_get_200_response.go +model__v3_apps__guid__environment_variables_patch_request.go +model__v3_apps__guid__features__name__patch_request.go +model__v3_apps__guid__patch_request.go +model__v3_apps__guid__patch_request_lifecycle.go +model__v3_apps__guid__patch_request_lifecycle_data.go +model__v3_apps__guid__patch_request_metadata.go +model__v3_apps__guid__permissions_get_200_response.go +model__v3_apps__guid__relationships_current_droplet_get_200_response.go +model__v3_apps__guid__sidecars_get_200_response.go +model__v3_apps__guid__sidecars_post_request.go +model__v3_apps__guid__ssh_enabled_get_200_response.go +model__v3_apps__guid__tasks_post_request.go +model__v3_apps__guid__tasks_post_request_metadata.go +model__v3_apps__guid__tasks_post_request_template.go +model__v3_apps__guid__tasks_post_request_template_process.go +model__v3_apps_post_request.go +model__v3_apps_post_request_lifecycle.go +model__v3_apps_post_request_lifecycle_data.go +model__v3_apps_post_request_relationships.go +model__v3_apps_post_request_relationships_space.go +model__v3_apps_post_request_relationships_space_data.go +model__v3_domains__guid__patch_request.go +model__v3_domains__guid__relationships_shared_organizations_post_200_response.go +model__v3_domains__guid__relationships_shared_organizations_post_request.go +model__v3_domains_get_200_response.go +model__v3_domains_get_200_response_pagination.go +model__v3_domains_post_request.go +model__v3_domains_post_request_metadata.go +model__v3_domains_post_request_organization.go +model__v3_domains_post_request_organization_data.go +model__v3_domains_post_request_router_group.go +model__v3_droplets_post_request.go +model__v3_droplets_post_request_relationships.go +model__v3_droplets_post_request_relationships_app.go +model__v3_droplets_post_request_relationships_app_data.go +model__v3_environment_variable_groups__name__patch_request.go +model__v3_feature_flags__name__patch_request.go +model__v3_feature_flags_get_200_response.go +model__v3_get_200_response.go +model__v3_get_200_response_links.go +model__v3_get_200_response_links_service_instances.go +model__v3_isolation_segments__guid__relationships_organizations_get_200_response.go +model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links.go +model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related.go +model__v3_isolation_segments__guid__relationships_organizations_post_request.go +model__v3_isolation_segments__guid__relationships_spaces_get_200_response.go +model__v3_isolation_segments__guid__relationships_spaces_get_200_response_links.go +model__v3_isolation_segments_get_200_response.go +model__v3_packages__guid__delete_202_response.go +model__v3_packages__guid__patch_request.go +model__v3_packages__guid__upload_post_request_resources_inner.go +model__v3_packages__guid__upload_post_request_resources_inner_checksum.go +model__v3_packages_get_200_response.go +model__v3_packages_get_200_response_pagination.go +model__v3_packages_post_request.go +model__v3_packages_post_request_data.go +model__v3_packages_post_request_metadata.go +model__v3_packages_post_request_relationships.go +model__v3_packages_post_request_relationships_app.go +model__v3_packages_post_request_relationships_app_data.go +model__v3_revisions__guid__patch_request.go +model__v3_roles_post_request.go +model__v3_roles_post_request_relationships.go +model__v3_roles_post_request_relationships_user.go +model__v3_roles_post_request_relationships_user_data.go +model__v3_routes_get_200_response.go +model__v3_routes_get_200_response_pagination.go +model__v3_routes_post_request.go +model__v3_routes_post_request_relationships.go +model__v3_service_credential_bindings__guid__details_get_200_response.go +model__v3_service_credential_bindings__guid__patch_request.go +model__v3_service_credential_bindings_post_request.go +model__v3_service_credential_bindings_post_request_relationships.go +model__v3_service_instances__guid__patch_request.go +model__v3_service_instances__guid__relationships_shared_spaces_post_request.go +model__v3_service_instances_get_200_response.go +model__v3_service_route_bindings__guid__patch_request.go +model__v3_service_route_bindings_get_200_response.go +model__v3_service_route_bindings_post_request.go +model__v3_service_usage_events_get_200_response.go +model__v3_sidecars__guid__patch_request.go +model__v3_space_quotas__guid__patch_request.go +model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response.go +model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links.go +model__v3_space_quotas_get_200_response.go +model__v3_space_quotas_post_request.go +model__v3_space_quotas_post_request_apps.go +model__v3_space_quotas_post_request_relationships.go +model__v3_space_quotas_post_request_routes.go +model__v3_space_quotas_post_request_services.go +model__v3_spaces__guid__features_get_200_response.go +model__v3_spaces__guid__features_patch_request.go +model__v3_spaces__guid__patch_request.go +model__v3_spaces__guid__users_get_200_response.go +model__v3_spaces_get_200_response.go +model__v3_spaces_post_request.go +model__v3_stacks__guid__apps_get_200_response.go +model__v3_stacks_get_200_response.go +model__v3_stacks_post_request.go +model__v3_tasks_get_200_response.go +model__v3_users__guid__patch_request.go +model__v3_users_get_200_response.go +model__v3_users_post_request.go +model__v3_users_post_request_metadata.go +model_app.go +model_app_lifecycle.go +model_app_links.go +model_app_relationships.go +model_app_usage_event.go +model_app_usage_event_app.go +model_app_usage_event_buildpack.go +model_app_usage_event_instance_count.go +model_app_usage_event_links.go +model_app_usage_event_links_self.go +model_app_usage_event_list.go +model_app_usage_event_list_pagination.go +model_app_usage_event_list_pagination_first.go +model_app_usage_event_list_pagination_last.go +model_app_usage_event_list_pagination_next.go +model_app_usage_event_memory_in_mb_per_instance.go +model_app_usage_event_organization.go +model_app_usage_event_process.go +model_app_usage_event_space.go +model_app_usage_event_state.go +model_app_usage_event_task.go +model_apply_organization_quota_to_organizations_201_response.go +model_apply_organization_quota_to_organizations_201_response_links.go +model_apply_organization_quota_to_organizations_request.go +model_apps_quota.go +model_audit_event.go +model_audit_event_actor.go +model_audit_event_links.go +model_audit_event_links_self.go +model_audit_event_list.go +model_audit_event_list_pagination.go +model_audit_event_organization.go +model_audit_event_space.go +model_audit_event_target.go +model_authentication.go +model_authentication_credentials.go +model_broker_catalog.go +model_broker_catalog_features.go +model_broker_catalog_metadata.go +model_buildpack.go +model_cost.go +model_create_organization_quota_request.go +model_create_organization_quota_request_apps.go +model_create_organization_quota_request_domains.go +model_create_organization_quota_request_relationships.go +model_create_organization_quota_request_relationships_organizations_inner.go +model_create_organization_quota_request_routes.go +model_create_organization_quota_request_services.go +model_create_organization_request.go +model_delete_organization_quota_202_response.go +model_destination.go +model_destination_app.go +model_destination_app_process.go +model_domain.go +model_domain_links.go +model_domain_relationships.go +model_domain_relationships_shared_organizations.go +model_domains_quota.go +model_droplet.go +model_droplet_checksum.go +model_droplet_lifecycle.go +model_droplet_links.go +model_droplet_links_assign_current_droplet.go +model_environment_variable_group.go +model_environment_variables.go +model_environment_variables_links.go +model_feature_flag.go +model_health_check.go +model_health_check_data.go +model_isolation_segment.go +model_isolation_segment_links.go +model_last_operation.go +model_link.go +model_link_with_method.go +model_links.go +model_list_organization_quotas_200_response.go +model_list_organization_quotas_200_response_pagination.go +model_list_organization_quotas_200_response_pagination_next.go +model_maintenance_info.go +model_managed_service_instance_update.go +model_managed_service_instance_update_relationships.go +model_metadata.go +model_organization.go +model_organization_links.go +model_organization_quota.go +model_organization_quota_links.go +model_organization_quota_relationships.go +model_organization_relationships.go +model_organization_visibility.go +model_package.go +model_package_data.go +model_package_data_checksum.go +model_package_links.go +model_package_links_app.go +model_package_links_download.go +model_package_links_self.go +model_package_links_upload.go +model_pagination.go +model_plan_schemas.go +model_plan_schemas_service_binding.go +model_plan_schemas_service_binding_create.go +model_plan_schemas_service_instance.go +model_platform_info.go +model_platform_info_cli_version.go +model_platform_info_links.go +model_process.go +model_process_links.go +model_process_list.go +model_process_relationships.go +model_process_scale.go +model_process_stats.go +model_process_stats_instance_ports_inner.go +model_process_stats_usage.go +model_process_update.go +model_readiness_health_check.go +model_readiness_health_check_data.go +model_resource_match_object.go +model_resource_match_request.go +model_resource_match_response.go +model_revision.go +model_revision_links.go +model_revision_processes_value.go +model_revisions_list.go +model_revisions_list_pagination.go +model_role.go +model_role_links.go +model_role_relationships.go +model_role_relationships_space.go +model_role_relationships_space_data.go +model_roles_list.go +model_route.go +model_route_links.go +model_route_list.go +model_routes_quota.go +model_rule.go +model_security_group.go +model_security_group_create.go +model_security_group_globally_enabled.go +model_security_group_links.go +model_security_group_list.go +model_security_group_relationships.go +model_security_group_update.go +model_security_group_update_globally_enabled.go +model_service_broker.go +model_service_broker_create.go +model_service_broker_links.go +model_service_broker_list.go +model_service_broker_relationships.go +model_service_broker_update.go +model_service_credential_binding.go +model_service_credential_binding_last_operation.go +model_service_credential_binding_links.go +model_service_credential_binding_relationships.go +model_service_instance.go +model_service_instance_relationships.go +model_service_offering.go +model_service_offering_create.go +model_service_offering_links.go +model_service_offering_list.go +model_service_offering_relationships.go +model_service_offering_update.go +model_service_plan.go +model_service_plan_create.go +model_service_plan_links.go +model_service_plan_list.go +model_service_plan_relationships.go +model_service_plan_update.go +model_service_plan_visibility.go +model_service_plan_visibility_apply.go +model_service_plan_visibility_space.go +model_service_plan_visibility_update.go +model_service_route_binding.go +model_service_route_binding_links.go +model_service_route_binding_relationships.go +model_service_usage_event.go +model_service_usage_event_links.go +model_service_usage_event_service_broker.go +model_service_usage_event_service_instance.go +model_services_quota.go +model_sidecar.go +model_space.go +model_space_feature.go +model_space_links.go +model_space_quota.go +model_space_quota_links.go +model_space_quota_relationships.go +model_space_relationships.go +model_space_relationships_quota.go +model_stack.go +model_task.go +model_task_links.go +model_task_result.go +model_to_one_relationship.go +model_update_organization_quota_request.go +model_update_organization_request.go +model_usage_summary.go +model_user.go +model_user_links.go +model_user_links_self.go +model_user_provided_service_instance_update.go +response.go +test/api_app_usage_events_test.go +test/api_audit_events_test.go +test/api_default_test.go +test/api_domains_test.go +utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..4bc5d61 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.9.0 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..06008c5 --- /dev/null +++ b/README.md @@ -0,0 +1,645 @@ +# Go API client for capiclient + +API specification for managing environment variable groups in Cloud Controller. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v3 +- Package version: 1.0.0 +- Generator version: 7.9.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import capiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `capiclient.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), capiclient.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `capiclient.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), capiclient.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `capiclient.ContextOperationServerIndices` and `capiclient.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), capiclient.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), capiclient.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AppUsageEventsAPI* | [**V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost**](docs/AppUsageEventsAPI.md#v3appusageeventsactionsdestructivelypurgeallandreseedpost) | **Post** /v3/app_usage_events/actions/destructively_purge_all_and_reseed | Purge and seed app usage events +*AppUsageEventsAPI* | [**V3AppUsageEventsGet**](docs/AppUsageEventsAPI.md#v3appusageeventsget) | **Get** /v3/app_usage_events | List app usage events +*AppUsageEventsAPI* | [**V3AppUsageEventsGuidGet**](docs/AppUsageEventsAPI.md#v3appusageeventsguidget) | **Get** /v3/app_usage_events/{guid} | Retrieve an app usage event +*AuditEventsAPI* | [**V3AuditEventsGet**](docs/AuditEventsAPI.md#v3auditeventsget) | **Get** /v3/audit_events | List audit events +*AuditEventsAPI* | [**V3AuditEventsGuidGet**](docs/AuditEventsAPI.md#v3auditeventsguidget) | **Get** /v3/audit_events/{guid} | Retrieve an audit event +*DefaultAPI* | [**ApplyOrganizationQuotaToOrganizations**](docs/DefaultAPI.md#applyorganizationquotatoorganizations) | **Post** /v3/organization_quotas/{quota_guid}/relationships/organizations | Apply an organization quota to organizations +*DefaultAPI* | [**AssignDefaultIsolationSegment**](docs/DefaultAPI.md#assigndefaultisolationsegment) | **Patch** /v3/organizations/{guid}/relationships/default_isolation_segment | Assign Default Isolation Segment +*DefaultAPI* | [**CreateOrganization**](docs/DefaultAPI.md#createorganization) | **Post** /v3/organizations | Create an Organization +*DefaultAPI* | [**CreateOrganizationQuota**](docs/DefaultAPI.md#createorganizationquota) | **Post** /v3/organization_quotas | Create an organization quota +*DefaultAPI* | [**DeleteOrganization**](docs/DefaultAPI.md#deleteorganization) | **Delete** /v3/organizations/{guid} | Delete an Organization +*DefaultAPI* | [**DeleteOrganizationQuota**](docs/DefaultAPI.md#deleteorganizationquota) | **Delete** /v3/organization_quotas/{guid} | Delete an organization quota +*DefaultAPI* | [**GetDefaultDomain**](docs/DefaultAPI.md#getdefaultdomain) | **Get** /v3/organizations/{guid}/domains/default | Get Default Domain +*DefaultAPI* | [**GetDefaultIsolationSegment**](docs/DefaultAPI.md#getdefaultisolationsegment) | **Get** /v3/organizations/{guid}/relationships/default_isolation_segment | Get Default Isolation Segment +*DefaultAPI* | [**GetOrganization**](docs/DefaultAPI.md#getorganization) | **Get** /v3/organizations/{guid} | Get an Organization +*DefaultAPI* | [**GetOrganizationQuota**](docs/DefaultAPI.md#getorganizationquota) | **Get** /v3/organization_quotas/{guid} | Get an organization quota +*DefaultAPI* | [**GetUsageSummary**](docs/DefaultAPI.md#getusagesummary) | **Get** /v3/organizations/{guid}/usage_summary | Get Usage Summary +*DefaultAPI* | [**ListOrganizationQuotas**](docs/DefaultAPI.md#listorganizationquotas) | **Get** /v3/organization_quotas | List organization quotas +*DefaultAPI* | [**ListOrganizations**](docs/DefaultAPI.md#listorganizations) | **Get** /v3/organizations | List Organizations +*DefaultAPI* | [**ListUsersForOrganization**](docs/DefaultAPI.md#listusersfororganization) | **Get** /v3/organizations/{guid}/users | List Users for an Organization +*DefaultAPI* | [**RootGet**](docs/DefaultAPI.md#rootget) | **Get** / | Global API Root +*DefaultAPI* | [**UpdateOrganization**](docs/DefaultAPI.md#updateorganization) | **Patch** /v3/organizations/{guid} | Update an Organization +*DefaultAPI* | [**UpdateOrganizationQuota**](docs/DefaultAPI.md#updateorganizationquota) | **Patch** /v3/organization_quotas/{guid} | Update an organization quota +*DefaultAPI* | [**V3AdminActionsClearBuildpackCachePost**](docs/DefaultAPI.md#v3adminactionsclearbuildpackcachepost) | **Post** /v3/admin/actions/clear_buildpack_cache | Clear buildpack cache +*DefaultAPI* | [**V3AppsGet**](docs/DefaultAPI.md#v3appsget) | **Get** /v3/apps | List apps +*DefaultAPI* | [**V3AppsGuidActionsClearBuildpackCachePost**](docs/DefaultAPI.md#v3appsguidactionsclearbuildpackcachepost) | **Post** /v3/apps/{guid}/actions/clear_buildpack_cache | Clear buildpack cache for application +*DefaultAPI* | [**V3AppsGuidActionsRestartPost**](docs/DefaultAPI.md#v3appsguidactionsrestartpost) | **Post** /v3/apps/{guid}/actions/restart | Restart an app +*DefaultAPI* | [**V3AppsGuidActionsStartPost**](docs/DefaultAPI.md#v3appsguidactionsstartpost) | **Post** /v3/apps/{guid}/actions/start | Start an app +*DefaultAPI* | [**V3AppsGuidActionsStopPost**](docs/DefaultAPI.md#v3appsguidactionsstoppost) | **Post** /v3/apps/{guid}/actions/stop | Stop an app +*DefaultAPI* | [**V3AppsGuidBuildsGet**](docs/DefaultAPI.md#v3appsguidbuildsget) | **Get** /v3/apps/{guid}/builds | List builds for an app +*DefaultAPI* | [**V3AppsGuidDelete**](docs/DefaultAPI.md#v3appsguiddelete) | **Delete** /v3/apps/{guid} | Delete an app +*DefaultAPI* | [**V3AppsGuidDropletsCurrentGet**](docs/DefaultAPI.md#v3appsguiddropletscurrentget) | **Get** /v3/apps/{guid}/droplets/current | Get current droplet +*DefaultAPI* | [**V3AppsGuidDropletsGet**](docs/DefaultAPI.md#v3appsguiddropletsget) | **Get** /v3/apps/{guid}/droplets | List droplets for an app +*DefaultAPI* | [**V3AppsGuidEnvGet**](docs/DefaultAPI.md#v3appsguidenvget) | **Get** /v3/apps/{guid}/env | Get environment for an app +*DefaultAPI* | [**V3AppsGuidEnvironmentVariablesGet**](docs/DefaultAPI.md#v3appsguidenvironmentvariablesget) | **Get** /v3/apps/{guid}/environment_variables | Get environment variables for an app +*DefaultAPI* | [**V3AppsGuidEnvironmentVariablesPatch**](docs/DefaultAPI.md#v3appsguidenvironmentvariablespatch) | **Patch** /v3/apps/{guid}/environment_variables | Update environment variables for an app +*DefaultAPI* | [**V3AppsGuidFeaturesGet**](docs/DefaultAPI.md#v3appsguidfeaturesget) | **Get** /v3/apps/{guid}/features | List app features +*DefaultAPI* | [**V3AppsGuidFeaturesNameGet**](docs/DefaultAPI.md#v3appsguidfeaturesnameget) | **Get** /v3/apps/{guid}/features/{name} | Get an app feature +*DefaultAPI* | [**V3AppsGuidFeaturesNamePatch**](docs/DefaultAPI.md#v3appsguidfeaturesnamepatch) | **Patch** /v3/apps/{guid}/features/{name} | Update an app feature +*DefaultAPI* | [**V3AppsGuidGet**](docs/DefaultAPI.md#v3appsguidget) | **Get** /v3/apps/{guid} | Retrieve a specific app +*DefaultAPI* | [**V3AppsGuidPatch**](docs/DefaultAPI.md#v3appsguidpatch) | **Patch** /v3/apps/{guid} | Update an app +*DefaultAPI* | [**V3AppsGuidPermissionsGet**](docs/DefaultAPI.md#v3appsguidpermissionsget) | **Get** /v3/apps/{guid}/permissions | Get permissions for an app +*DefaultAPI* | [**V3AppsGuidProcessesGet**](docs/DefaultAPI.md#v3appsguidprocessesget) | **Get** /v3/apps/{guid}/processes | List processes for app +*DefaultAPI* | [**V3AppsGuidRelationshipsCurrentDropletGet**](docs/DefaultAPI.md#v3appsguidrelationshipscurrentdropletget) | **Get** /v3/apps/{guid}/relationships/current_droplet | Get current droplet association for an app +*DefaultAPI* | [**V3AppsGuidRevisionsDeployedGet**](docs/DefaultAPI.md#v3appsguidrevisionsdeployedget) | **Get** /v3/apps/{guid}/revisions/deployed | List deployed revisions for an app +*DefaultAPI* | [**V3AppsGuidRevisionsGet**](docs/DefaultAPI.md#v3appsguidrevisionsget) | **Get** /v3/apps/{guid}/revisions | List revisions for an app +*DefaultAPI* | [**V3AppsGuidRoutesGet**](docs/DefaultAPI.md#v3appsguidroutesget) | **Get** /v3/apps/{guid}/routes | Retrieve all routes for an app +*DefaultAPI* | [**V3AppsGuidSidecarsGet**](docs/DefaultAPI.md#v3appsguidsidecarsget) | **Get** /v3/apps/{guid}/sidecars | List sidecars for an app +*DefaultAPI* | [**V3AppsGuidSidecarsPost**](docs/DefaultAPI.md#v3appsguidsidecarspost) | **Post** /v3/apps/{guid}/sidecars | Create a sidecar associated with an app +*DefaultAPI* | [**V3AppsGuidSshEnabledGet**](docs/DefaultAPI.md#v3appsguidsshenabledget) | **Get** /v3/apps/{guid}/ssh_enabled | Get SSH enabled for an app +*DefaultAPI* | [**V3AppsGuidTasksPost**](docs/DefaultAPI.md#v3appsguidtaskspost) | **Post** /v3/apps/{guid}/tasks | Create a task +*DefaultAPI* | [**V3AppsPost**](docs/DefaultAPI.md#v3appspost) | **Post** /v3/apps | Create an app +*DefaultAPI* | [**V3BuildpacksGet**](docs/DefaultAPI.md#v3buildpacksget) | **Get** /v3/buildpacks | List buildpacks +*DefaultAPI* | [**V3BuildpacksGuidPatch**](docs/DefaultAPI.md#v3buildpacksguidpatch) | **Patch** /v3/buildpacks/{guid} | Update a buildpack +*DefaultAPI* | [**V3BuildpacksGuidUploadPost**](docs/DefaultAPI.md#v3buildpacksguiduploadpost) | **Post** /v3/buildpacks/{guid}/upload | Upload buildpack bits +*DefaultAPI* | [**V3BuildpacksPost**](docs/DefaultAPI.md#v3buildpackspost) | **Post** /v3/buildpacks | Create a buildpack +*DefaultAPI* | [**V3BuildsGet**](docs/DefaultAPI.md#v3buildsget) | **Get** /v3/builds | List builds +*DefaultAPI* | [**V3BuildsGuidPatch**](docs/DefaultAPI.md#v3buildsguidpatch) | **Patch** /v3/builds/{guid} | Update a build +*DefaultAPI* | [**V3BuildsPost**](docs/DefaultAPI.md#v3buildspost) | **Post** /v3/builds | Create a build +*DefaultAPI* | [**V3DeploymentsGet**](docs/DefaultAPI.md#v3deploymentsget) | **Get** /v3/deployments | List deployments +*DefaultAPI* | [**V3DeploymentsGuidActionsCancelPost**](docs/DefaultAPI.md#v3deploymentsguidactionscancelpost) | **Post** /v3/deployments/{guid}/actions/cancel | Cancel a deployment +*DefaultAPI* | [**V3DeploymentsGuidActionsContinuePost**](docs/DefaultAPI.md#v3deploymentsguidactionscontinuepost) | **Post** /v3/deployments/{guid}/actions/continue | Continue a deployment +*DefaultAPI* | [**V3DeploymentsGuidGet**](docs/DefaultAPI.md#v3deploymentsguidget) | **Get** /v3/deployments/{guid} | Get a deployment +*DefaultAPI* | [**V3DeploymentsPost**](docs/DefaultAPI.md#v3deploymentspost) | **Post** /v3/deployments | Create a deployment +*DefaultAPI* | [**V3DropletsGet**](docs/DefaultAPI.md#v3dropletsget) | **Get** /v3/droplets | List droplets +*DefaultAPI* | [**V3DropletsGuidGet**](docs/DefaultAPI.md#v3dropletsguidget) | **Get** /v3/droplets/{guid} | Get a droplet +*DefaultAPI* | [**V3DropletsPost**](docs/DefaultAPI.md#v3dropletspost) | **Post** /v3/droplets | Create a droplet +*DefaultAPI* | [**V3EnvironmentVariableGroupsNameGet**](docs/DefaultAPI.md#v3environmentvariablegroupsnameget) | **Get** /v3/environment_variable_groups/{name} | Get an environment variable group +*DefaultAPI* | [**V3EnvironmentVariableGroupsNamePatch**](docs/DefaultAPI.md#v3environmentvariablegroupsnamepatch) | **Patch** /v3/environment_variable_groups/{name} | Update environment variable group +*DefaultAPI* | [**V3FeatureFlagsGet**](docs/DefaultAPI.md#v3featureflagsget) | **Get** /v3/feature_flags | List feature flags +*DefaultAPI* | [**V3FeatureFlagsNameGet**](docs/DefaultAPI.md#v3featureflagsnameget) | **Get** /v3/feature_flags/{name} | Get a feature flag +*DefaultAPI* | [**V3FeatureFlagsNamePatch**](docs/DefaultAPI.md#v3featureflagsnamepatch) | **Patch** /v3/feature_flags/{name} | Update a feature flag +*DefaultAPI* | [**V3Get**](docs/DefaultAPI.md#v3get) | **Get** /v3 | V3 API Root +*DefaultAPI* | [**V3InfoGet**](docs/DefaultAPI.md#v3infoget) | **Get** /v3/info | Get platform info +*DefaultAPI* | [**V3InfoUsageSummaryGet**](docs/DefaultAPI.md#v3infousagesummaryget) | **Get** /v3/info/usage_summary | Get platform usage summary +*DefaultAPI* | [**V3IsolationSegmentsGet**](docs/DefaultAPI.md#v3isolationsegmentsget) | **Get** /v3/isolation_segments | List isolation segments +*DefaultAPI* | [**V3IsolationSegmentsGuidDelete**](docs/DefaultAPI.md#v3isolationsegmentsguiddelete) | **Delete** /v3/isolation_segments/{guid} | Delete an isolation segment +*DefaultAPI* | [**V3IsolationSegmentsGuidGet**](docs/DefaultAPI.md#v3isolationsegmentsguidget) | **Get** /v3/isolation_segments/{guid} | Get an isolation segment +*DefaultAPI* | [**V3IsolationSegmentsGuidPatch**](docs/DefaultAPI.md#v3isolationsegmentsguidpatch) | **Patch** /v3/isolation_segments/{guid} | Update an isolation segment +*DefaultAPI* | [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet**](docs/DefaultAPI.md#v3isolationsegmentsguidrelationshipsorganizationsget) | **Get** /v3/isolation_segments/{guid}/relationships/organizations | List organizations relationship +*DefaultAPI* | [**V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete**](docs/DefaultAPI.md#v3isolationsegmentsguidrelationshipsorganizationsorgguiddelete) | **Delete** /v3/isolation_segments/{guid}/relationships/organizations/{org_guid} | Revoke entitlement to isolation segment for an organization +*DefaultAPI* | [**V3IsolationSegmentsGuidRelationshipsOrganizationsPost**](docs/DefaultAPI.md#v3isolationsegmentsguidrelationshipsorganizationspost) | **Post** /v3/isolation_segments/{guid}/relationships/organizations | Entitle organizations for an isolation segment +*DefaultAPI* | [**V3IsolationSegmentsGuidRelationshipsSpacesGet**](docs/DefaultAPI.md#v3isolationsegmentsguidrelationshipsspacesget) | **Get** /v3/isolation_segments/{guid}/relationships/spaces | List spaces relationship +*DefaultAPI* | [**V3IsolationSegmentsPost**](docs/DefaultAPI.md#v3isolationsegmentspost) | **Post** /v3/isolation_segments | Create an isolation segment +*DefaultAPI* | [**V3PackagesGet**](docs/DefaultAPI.md#v3packagesget) | **Get** /v3/packages | List packages +*DefaultAPI* | [**V3PackagesGuidDelete**](docs/DefaultAPI.md#v3packagesguiddelete) | **Delete** /v3/packages/{guid} | Delete a package +*DefaultAPI* | [**V3PackagesGuidDropletsGet**](docs/DefaultAPI.md#v3packagesguiddropletsget) | **Get** /v3/packages/{guid}/droplets | List droplets for a package +*DefaultAPI* | [**V3PackagesGuidGet**](docs/DefaultAPI.md#v3packagesguidget) | **Get** /v3/packages/{guid} | Get a package +*DefaultAPI* | [**V3PackagesGuidPatch**](docs/DefaultAPI.md#v3packagesguidpatch) | **Patch** /v3/packages/{guid} | Update a package +*DefaultAPI* | [**V3PackagesGuidUploadPost**](docs/DefaultAPI.md#v3packagesguiduploadpost) | **Post** /v3/packages/{guid}/upload | Upload package bits +*DefaultAPI* | [**V3PackagesPost**](docs/DefaultAPI.md#v3packagespost) | **Post** /v3/packages | Create a package +*DefaultAPI* | [**V3ProcessesGet**](docs/DefaultAPI.md#v3processesget) | **Get** /v3/processes | List processes +*DefaultAPI* | [**V3ProcessesGuidActionsScalePost**](docs/DefaultAPI.md#v3processesguidactionsscalepost) | **Post** /v3/processes/{guid}/actions/scale | Scale a process +*DefaultAPI* | [**V3ProcessesGuidInstancesIndexDelete**](docs/DefaultAPI.md#v3processesguidinstancesindexdelete) | **Delete** /v3/processes/{guid}/instances/{index} | Terminate a process instance +*DefaultAPI* | [**V3ProcessesGuidPatch**](docs/DefaultAPI.md#v3processesguidpatch) | **Patch** /v3/processes/{guid} | Update a process +*DefaultAPI* | [**V3ProcessesGuidSidecarsGet**](docs/DefaultAPI.md#v3processesguidsidecarsget) | **Get** /v3/processes/{guid}/sidecars | List sidecars for a process +*DefaultAPI* | [**V3ProcessesGuidStatsGet**](docs/DefaultAPI.md#v3processesguidstatsget) | **Get** /v3/processes/{guid}/stats | Get stats for a process +*DefaultAPI* | [**V3ResourceMatchesPost**](docs/DefaultAPI.md#v3resourcematchespost) | **Post** /v3/resource_matches | Create a resource match +*DefaultAPI* | [**V3RevisionsGuidEnvironmentVariablesGet**](docs/DefaultAPI.md#v3revisionsguidenvironmentvariablesget) | **Get** /v3/revisions/{guid}/environment_variables | Get environment variables for a revision +*DefaultAPI* | [**V3RevisionsGuidPatch**](docs/DefaultAPI.md#v3revisionsguidpatch) | **Patch** /v3/revisions/{guid} | Update a revision +*DefaultAPI* | [**V3RolesGet**](docs/DefaultAPI.md#v3rolesget) | **Get** /v3/roles | List roles +*DefaultAPI* | [**V3RolesGuidDelete**](docs/DefaultAPI.md#v3rolesguiddelete) | **Delete** /v3/roles/{guid} | Delete a role +*DefaultAPI* | [**V3RolesGuidGet**](docs/DefaultAPI.md#v3rolesguidget) | **Get** /v3/roles/{guid} | Get a role +*DefaultAPI* | [**V3RolesPost**](docs/DefaultAPI.md#v3rolespost) | **Post** /v3/roles | Create a role +*DefaultAPI* | [**V3RoutesGet**](docs/DefaultAPI.md#v3routesget) | **Get** /v3/routes | List routes +*DefaultAPI* | [**V3RoutesGuidGet**](docs/DefaultAPI.md#v3routesguidget) | **Get** /v3/routes/{guid} | Get a route +*DefaultAPI* | [**V3RoutesPost**](docs/DefaultAPI.md#v3routespost) | **Post** /v3/routes | Create a route +*DefaultAPI* | [**V3SecurityGroupsGet**](docs/DefaultAPI.md#v3securitygroupsget) | **Get** /v3/security_groups | List security groups +*DefaultAPI* | [**V3SecurityGroupsGuidDelete**](docs/DefaultAPI.md#v3securitygroupsguiddelete) | **Delete** /v3/security_groups/{guid} | Delete a security group +*DefaultAPI* | [**V3SecurityGroupsGuidGet**](docs/DefaultAPI.md#v3securitygroupsguidget) | **Get** /v3/security_groups/{guid} | Get a security group +*DefaultAPI* | [**V3SecurityGroupsGuidPatch**](docs/DefaultAPI.md#v3securitygroupsguidpatch) | **Patch** /v3/security_groups/{guid} | Update a security group +*DefaultAPI* | [**V3SecurityGroupsPost**](docs/DefaultAPI.md#v3securitygroupspost) | **Post** /v3/security_groups | Create a security group +*DefaultAPI* | [**V3ServiceBrokersGet**](docs/DefaultAPI.md#v3servicebrokersget) | **Get** /v3/service_brokers | List service brokers +*DefaultAPI* | [**V3ServiceBrokersGuidDelete**](docs/DefaultAPI.md#v3servicebrokersguiddelete) | **Delete** /v3/service_brokers/{guid} | Delete a service broker +*DefaultAPI* | [**V3ServiceBrokersGuidGet**](docs/DefaultAPI.md#v3servicebrokersguidget) | **Get** /v3/service_brokers/{guid} | Get a service broker +*DefaultAPI* | [**V3ServiceBrokersGuidPatch**](docs/DefaultAPI.md#v3servicebrokersguidpatch) | **Patch** /v3/service_brokers/{guid} | Update a service broker +*DefaultAPI* | [**V3ServiceBrokersPost**](docs/DefaultAPI.md#v3servicebrokerspost) | **Post** /v3/service_brokers | Create a service broker +*DefaultAPI* | [**V3ServiceCredentialBindingsGuidDelete**](docs/DefaultAPI.md#v3servicecredentialbindingsguiddelete) | **Delete** /v3/service_credential_bindings/{guid} | Delete a service credential binding +*DefaultAPI* | [**V3ServiceCredentialBindingsGuidDetailsGet**](docs/DefaultAPI.md#v3servicecredentialbindingsguiddetailsget) | **Get** /v3/service_credential_bindings/{guid}/details | Get a service credential binding details +*DefaultAPI* | [**V3ServiceCredentialBindingsGuidGet**](docs/DefaultAPI.md#v3servicecredentialbindingsguidget) | **Get** /v3/service_credential_bindings/{guid} | Get a service credential binding +*DefaultAPI* | [**V3ServiceCredentialBindingsGuidParametersGet**](docs/DefaultAPI.md#v3servicecredentialbindingsguidparametersget) | **Get** /v3/service_credential_bindings/{guid}/parameters | Get parameters for a service credential binding +*DefaultAPI* | [**V3ServiceCredentialBindingsGuidPatch**](docs/DefaultAPI.md#v3servicecredentialbindingsguidpatch) | **Patch** /v3/service_credential_bindings/{guid} | Update a service credential binding +*DefaultAPI* | [**V3ServiceCredentialBindingsPost**](docs/DefaultAPI.md#v3servicecredentialbindingspost) | **Post** /v3/service_credential_bindings | Create a service credential binding +*DefaultAPI* | [**V3ServiceInstancesGet**](docs/DefaultAPI.md#v3serviceinstancesget) | **Get** /v3/service_instances | Retrieve service instances +*DefaultAPI* | [**V3ServiceInstancesGuidCredentialsGet**](docs/DefaultAPI.md#v3serviceinstancesguidcredentialsget) | **Get** /v3/service_instances/{guid}/credentials | Get credentials for a user-provided service instance +*DefaultAPI* | [**V3ServiceInstancesGuidPatch**](docs/DefaultAPI.md#v3serviceinstancesguidpatch) | **Patch** /v3/service_instances/{guid} | Update a service instance +*DefaultAPI* | [**V3ServiceInstancesGuidRelationshipsSharedSpacesPost**](docs/DefaultAPI.md#v3serviceinstancesguidrelationshipssharedspacespost) | **Post** /v3/service_instances/{guid}/relationships/shared_spaces | Share a service instance to other spaces +*DefaultAPI* | [**V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete**](docs/DefaultAPI.md#v3serviceinstancesguidrelationshipssharedspacesspaceguiddelete) | **Delete** /v3/service_instances/{guid}/relationships/shared_spaces/{space_guid} | Unshare a service instance from another space +*DefaultAPI* | [**V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet**](docs/DefaultAPI.md#v3serviceinstancesguidrelationshipssharedspacesusagesummaryget) | **Get** /v3/service_instances/{guid}/relationships/shared_spaces/usage_summary | Get usage summary in shared spaces +*DefaultAPI* | [**V3ServiceOfferingsGet**](docs/DefaultAPI.md#v3serviceofferingsget) | **Get** /v3/service_offerings | List service offerings +*DefaultAPI* | [**V3ServiceOfferingsGuidDelete**](docs/DefaultAPI.md#v3serviceofferingsguiddelete) | **Delete** /v3/service_offerings/{guid} | Delete a service offering +*DefaultAPI* | [**V3ServiceOfferingsGuidGet**](docs/DefaultAPI.md#v3serviceofferingsguidget) | **Get** /v3/service_offerings/{guid} | Get a service offering +*DefaultAPI* | [**V3ServiceOfferingsGuidPatch**](docs/DefaultAPI.md#v3serviceofferingsguidpatch) | **Patch** /v3/service_offerings/{guid} | Update a service offering +*DefaultAPI* | [**V3ServiceOfferingsPost**](docs/DefaultAPI.md#v3serviceofferingspost) | **Post** /v3/service_offerings | Create a service offering +*DefaultAPI* | [**V3ServicePlansGet**](docs/DefaultAPI.md#v3serviceplansget) | **Get** /v3/service_plans | List service plans +*DefaultAPI* | [**V3ServicePlansGuidDelete**](docs/DefaultAPI.md#v3serviceplansguiddelete) | **Delete** /v3/service_plans/{guid} | Delete a service plan +*DefaultAPI* | [**V3ServicePlansGuidGet**](docs/DefaultAPI.md#v3serviceplansguidget) | **Get** /v3/service_plans/{guid} | Get a service plan +*DefaultAPI* | [**V3ServicePlansGuidPatch**](docs/DefaultAPI.md#v3serviceplansguidpatch) | **Patch** /v3/service_plans/{guid} | Update a service plan +*DefaultAPI* | [**V3ServicePlansGuidVisibilityGet**](docs/DefaultAPI.md#v3serviceplansguidvisibilityget) | **Get** /v3/service_plans/{guid}/visibility | Get a service plan visibility +*DefaultAPI* | [**V3ServicePlansGuidVisibilityOrganizationGuidDelete**](docs/DefaultAPI.md#v3serviceplansguidvisibilityorganizationguiddelete) | **Delete** /v3/service_plans/{guid}/visibility/{organization_guid} | Remove organization from a service plan visibility +*DefaultAPI* | [**V3ServicePlansGuidVisibilityPatch**](docs/DefaultAPI.md#v3serviceplansguidvisibilitypatch) | **Patch** /v3/service_plans/{guid}/visibility | Update a service plan visibility +*DefaultAPI* | [**V3ServicePlansGuidVisibilityPost**](docs/DefaultAPI.md#v3serviceplansguidvisibilitypost) | **Post** /v3/service_plans/{guid}/visibility | Apply a service plan visibility +*DefaultAPI* | [**V3ServicePlansPost**](docs/DefaultAPI.md#v3serviceplanspost) | **Post** /v3/service_plans | Create a service plan +*DefaultAPI* | [**V3ServiceRouteBindingsGet**](docs/DefaultAPI.md#v3serviceroutebindingsget) | **Get** /v3/service_route_bindings | List service route bindings +*DefaultAPI* | [**V3ServiceRouteBindingsGuidDelete**](docs/DefaultAPI.md#v3serviceroutebindingsguiddelete) | **Delete** /v3/service_route_bindings/{guid} | Delete a service route binding +*DefaultAPI* | [**V3ServiceRouteBindingsGuidGet**](docs/DefaultAPI.md#v3serviceroutebindingsguidget) | **Get** /v3/service_route_bindings/{guid} | Get a service route binding +*DefaultAPI* | [**V3ServiceRouteBindingsGuidParametersGet**](docs/DefaultAPI.md#v3serviceroutebindingsguidparametersget) | **Get** /v3/service_route_bindings/{guid}/parameters | Get parameters for a route binding +*DefaultAPI* | [**V3ServiceRouteBindingsGuidPatch**](docs/DefaultAPI.md#v3serviceroutebindingsguidpatch) | **Patch** /v3/service_route_bindings/{guid} | Update a service route binding +*DefaultAPI* | [**V3ServiceRouteBindingsPost**](docs/DefaultAPI.md#v3serviceroutebindingspost) | **Post** /v3/service_route_bindings | Create a service route binding +*DefaultAPI* | [**V3ServiceUsageEventsGet**](docs/DefaultAPI.md#v3serviceusageeventsget) | **Get** /v3/service_usage_events | List service usage events +*DefaultAPI* | [**V3ServiceUsageEventsGuidGet**](docs/DefaultAPI.md#v3serviceusageeventsguidget) | **Get** /v3/service_usage_events/{guid} | Get a service usage event +*DefaultAPI* | [**V3ServiceUsageEventsPost**](docs/DefaultAPI.md#v3serviceusageeventspost) | **Post** /v3/service_usage_events | Purge and seed service usage events +*DefaultAPI* | [**V3SidecarsGuidDelete**](docs/DefaultAPI.md#v3sidecarsguiddelete) | **Delete** /v3/sidecars/{guid} | Delete a sidecar +*DefaultAPI* | [**V3SidecarsGuidGet**](docs/DefaultAPI.md#v3sidecarsguidget) | **Get** /v3/sidecars/{guid} | Get a sidecar +*DefaultAPI* | [**V3SidecarsGuidPatch**](docs/DefaultAPI.md#v3sidecarsguidpatch) | **Patch** /v3/sidecars/{guid} | Update a sidecar +*DefaultAPI* | [**V3SpaceQuotasGet**](docs/DefaultAPI.md#v3spacequotasget) | **Get** /v3/space_quotas | List space quotas +*DefaultAPI* | [**V3SpaceQuotasGuidDelete**](docs/DefaultAPI.md#v3spacequotasguiddelete) | **Delete** /v3/space_quotas/{guid} | Delete a space quota +*DefaultAPI* | [**V3SpaceQuotasGuidGet**](docs/DefaultAPI.md#v3spacequotasguidget) | **Get** /v3/space_quotas/{guid} | Get a space quota +*DefaultAPI* | [**V3SpaceQuotasGuidPatch**](docs/DefaultAPI.md#v3spacequotasguidpatch) | **Patch** /v3/space_quotas/{guid} | Update a space quota +*DefaultAPI* | [**V3SpaceQuotasPost**](docs/DefaultAPI.md#v3spacequotaspost) | **Post** /v3/space_quotas | Create a space quota +*DefaultAPI* | [**V3SpaceQuotasQuotaGuidRelationshipsSpacesPost**](docs/DefaultAPI.md#v3spacequotasquotaguidrelationshipsspacespost) | **Post** /v3/space_quotas/{quota_guid}/relationships/spaces | Apply a space quota to spaces +*DefaultAPI* | [**V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete**](docs/DefaultAPI.md#v3spacequotasquotaguidrelationshipsspacesspaceguiddelete) | **Delete** /v3/space_quotas/{quota_guid}/relationships/spaces/{space_guid} | Remove a space quota from a space +*DefaultAPI* | [**V3SpacesGet**](docs/DefaultAPI.md#v3spacesget) | **Get** /v3/spaces | List spaces +*DefaultAPI* | [**V3SpacesGuidDelete**](docs/DefaultAPI.md#v3spacesguiddelete) | **Delete** /v3/spaces/{guid} | Delete a space +*DefaultAPI* | [**V3SpacesGuidFeaturesGet**](docs/DefaultAPI.md#v3spacesguidfeaturesget) | **Get** /v3/spaces/{guid}/features | List space features +*DefaultAPI* | [**V3SpacesGuidFeaturesNameGet**](docs/DefaultAPI.md#v3spacesguidfeaturesnameget) | **Get** /v3/spaces/{guid}/features/{name} | Get a space feature +*DefaultAPI* | [**V3SpacesGuidFeaturesPatch**](docs/DefaultAPI.md#v3spacesguidfeaturespatch) | **Patch** /v3/spaces/{guid}/features | Update space features +*DefaultAPI* | [**V3SpacesGuidGet**](docs/DefaultAPI.md#v3spacesguidget) | **Get** /v3/spaces/{guid} | Get a space +*DefaultAPI* | [**V3SpacesGuidPatch**](docs/DefaultAPI.md#v3spacesguidpatch) | **Patch** /v3/spaces/{guid} | Update a space +*DefaultAPI* | [**V3SpacesGuidRelationshipsIsolationSegmentGet**](docs/DefaultAPI.md#v3spacesguidrelationshipsisolationsegmentget) | **Get** /v3/spaces/{guid}/relationships/isolation_segment | Get assigned isolation segment +*DefaultAPI* | [**V3SpacesGuidRelationshipsIsolationSegmentPatch**](docs/DefaultAPI.md#v3spacesguidrelationshipsisolationsegmentpatch) | **Patch** /v3/spaces/{guid}/relationships/isolation_segment | Manage isolation segment +*DefaultAPI* | [**V3SpacesGuidUsersGet**](docs/DefaultAPI.md#v3spacesguidusersget) | **Get** /v3/spaces/{guid}/users | List users for a space +*DefaultAPI* | [**V3SpacesPost**](docs/DefaultAPI.md#v3spacespost) | **Post** /v3/spaces | Create a space +*DefaultAPI* | [**V3StacksGet**](docs/DefaultAPI.md#v3stacksget) | **Get** /v3/stacks | List all stacks +*DefaultAPI* | [**V3StacksGuidAppsGet**](docs/DefaultAPI.md#v3stacksguidappsget) | **Get** /v3/stacks/{guid}/apps | List apps on a stack +*DefaultAPI* | [**V3StacksGuidDelete**](docs/DefaultAPI.md#v3stacksguiddelete) | **Delete** /v3/stacks/{guid} | Delete a stack +*DefaultAPI* | [**V3StacksGuidGet**](docs/DefaultAPI.md#v3stacksguidget) | **Get** /v3/stacks/{guid} | Get a stack by GUID +*DefaultAPI* | [**V3StacksGuidPatch**](docs/DefaultAPI.md#v3stacksguidpatch) | **Patch** /v3/stacks/{guid} | Update a stack +*DefaultAPI* | [**V3StacksPost**](docs/DefaultAPI.md#v3stackspost) | **Post** /v3/stacks | Create a stack +*DefaultAPI* | [**V3TasksGet**](docs/DefaultAPI.md#v3tasksget) | **Get** /v3/tasks | List all tasks +*DefaultAPI* | [**V3TasksGuidGet**](docs/DefaultAPI.md#v3tasksguidget) | **Get** /v3/tasks/{guid} | Get a task +*DefaultAPI* | [**V3TasksGuidPatch**](docs/DefaultAPI.md#v3tasksguidpatch) | **Patch** /v3/tasks/{guid} | Update a task +*DefaultAPI* | [**V3TasksGuidPost**](docs/DefaultAPI.md#v3tasksguidpost) | **Post** /v3/tasks/{guid} | Cancel a task +*DefaultAPI* | [**V3UsersGet**](docs/DefaultAPI.md#v3usersget) | **Get** /v3/users | List users +*DefaultAPI* | [**V3UsersGuidDelete**](docs/DefaultAPI.md#v3usersguiddelete) | **Delete** /v3/users/{guid} | Delete a user +*DefaultAPI* | [**V3UsersGuidGet**](docs/DefaultAPI.md#v3usersguidget) | **Get** /v3/users/{guid} | Get a user +*DefaultAPI* | [**V3UsersGuidPatch**](docs/DefaultAPI.md#v3usersguidpatch) | **Patch** /v3/users/{guid} | Update a user +*DefaultAPI* | [**V3UsersPost**](docs/DefaultAPI.md#v3userspost) | **Post** /v3/users | Create a user +*DomainsAPI* | [**V3DomainsGet**](docs/DomainsAPI.md#v3domainsget) | **Get** /v3/domains | List domains +*DomainsAPI* | [**V3DomainsGuidDelete**](docs/DomainsAPI.md#v3domainsguiddelete) | **Delete** /v3/domains/{guid} | Delete a domain +*DomainsAPI* | [**V3DomainsGuidGet**](docs/DomainsAPI.md#v3domainsguidget) | **Get** /v3/domains/{guid} | Get a domain +*DomainsAPI* | [**V3DomainsGuidPatch**](docs/DomainsAPI.md#v3domainsguidpatch) | **Patch** /v3/domains/{guid} | Update a domain +*DomainsAPI* | [**V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete**](docs/DomainsAPI.md#v3domainsguidrelationshipssharedorganizationsorgguiddelete) | **Delete** /v3/domains/{guid}/relationships/shared_organizations/{org_guid} | Unshare a domain +*DomainsAPI* | [**V3DomainsGuidRelationshipsSharedOrganizationsPost**](docs/DomainsAPI.md#v3domainsguidrelationshipssharedorganizationspost) | **Post** /v3/domains/{guid}/relationships/shared_organizations | Share a domain +*DomainsAPI* | [**V3DomainsPost**](docs/DomainsAPI.md#v3domainspost) | **Post** /v3/domains | Create a domain + + +## Documentation For Models + + - [App](docs/App.md) + - [AppLifecycle](docs/AppLifecycle.md) + - [AppLinks](docs/AppLinks.md) + - [AppRelationships](docs/AppRelationships.md) + - [AppUsageEvent](docs/AppUsageEvent.md) + - [AppUsageEventApp](docs/AppUsageEventApp.md) + - [AppUsageEventBuildpack](docs/AppUsageEventBuildpack.md) + - [AppUsageEventInstanceCount](docs/AppUsageEventInstanceCount.md) + - [AppUsageEventLinks](docs/AppUsageEventLinks.md) + - [AppUsageEventLinksSelf](docs/AppUsageEventLinksSelf.md) + - [AppUsageEventList](docs/AppUsageEventList.md) + - [AppUsageEventListPagination](docs/AppUsageEventListPagination.md) + - [AppUsageEventListPaginationFirst](docs/AppUsageEventListPaginationFirst.md) + - [AppUsageEventListPaginationLast](docs/AppUsageEventListPaginationLast.md) + - [AppUsageEventListPaginationNext](docs/AppUsageEventListPaginationNext.md) + - [AppUsageEventMemoryInMbPerInstance](docs/AppUsageEventMemoryInMbPerInstance.md) + - [AppUsageEventOrganization](docs/AppUsageEventOrganization.md) + - [AppUsageEventProcess](docs/AppUsageEventProcess.md) + - [AppUsageEventSpace](docs/AppUsageEventSpace.md) + - [AppUsageEventState](docs/AppUsageEventState.md) + - [AppUsageEventTask](docs/AppUsageEventTask.md) + - [ApplyOrganizationQuotaToOrganizations201Response](docs/ApplyOrganizationQuotaToOrganizations201Response.md) + - [ApplyOrganizationQuotaToOrganizations201ResponseLinks](docs/ApplyOrganizationQuotaToOrganizations201ResponseLinks.md) + - [ApplyOrganizationQuotaToOrganizationsRequest](docs/ApplyOrganizationQuotaToOrganizationsRequest.md) + - [AppsQuota](docs/AppsQuota.md) + - [AuditEvent](docs/AuditEvent.md) + - [AuditEventActor](docs/AuditEventActor.md) + - [AuditEventLinks](docs/AuditEventLinks.md) + - [AuditEventLinksSelf](docs/AuditEventLinksSelf.md) + - [AuditEventList](docs/AuditEventList.md) + - [AuditEventListPagination](docs/AuditEventListPagination.md) + - [AuditEventOrganization](docs/AuditEventOrganization.md) + - [AuditEventSpace](docs/AuditEventSpace.md) + - [AuditEventTarget](docs/AuditEventTarget.md) + - [Authentication](docs/Authentication.md) + - [AuthenticationCredentials](docs/AuthenticationCredentials.md) + - [BrokerCatalog](docs/BrokerCatalog.md) + - [BrokerCatalogFeatures](docs/BrokerCatalogFeatures.md) + - [BrokerCatalogMetadata](docs/BrokerCatalogMetadata.md) + - [Buildpack](docs/Buildpack.md) + - [Cost](docs/Cost.md) + - [CreateOrganizationQuotaRequest](docs/CreateOrganizationQuotaRequest.md) + - [CreateOrganizationQuotaRequestApps](docs/CreateOrganizationQuotaRequestApps.md) + - [CreateOrganizationQuotaRequestDomains](docs/CreateOrganizationQuotaRequestDomains.md) + - [CreateOrganizationQuotaRequestRelationships](docs/CreateOrganizationQuotaRequestRelationships.md) + - [CreateOrganizationQuotaRequestRelationshipsOrganizationsInner](docs/CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md) + - [CreateOrganizationQuotaRequestRoutes](docs/CreateOrganizationQuotaRequestRoutes.md) + - [CreateOrganizationQuotaRequestServices](docs/CreateOrganizationQuotaRequestServices.md) + - [CreateOrganizationRequest](docs/CreateOrganizationRequest.md) + - [DeleteOrganizationQuota202Response](docs/DeleteOrganizationQuota202Response.md) + - [Destination](docs/Destination.md) + - [DestinationApp](docs/DestinationApp.md) + - [DestinationAppProcess](docs/DestinationAppProcess.md) + - [Domain](docs/Domain.md) + - [DomainLinks](docs/DomainLinks.md) + - [DomainRelationships](docs/DomainRelationships.md) + - [DomainRelationshipsSharedOrganizations](docs/DomainRelationshipsSharedOrganizations.md) + - [DomainsQuota](docs/DomainsQuota.md) + - [Droplet](docs/Droplet.md) + - [DropletChecksum](docs/DropletChecksum.md) + - [DropletLifecycle](docs/DropletLifecycle.md) + - [DropletLinks](docs/DropletLinks.md) + - [DropletLinksAssignCurrentDroplet](docs/DropletLinksAssignCurrentDroplet.md) + - [EnvironmentVariableGroup](docs/EnvironmentVariableGroup.md) + - [EnvironmentVariables](docs/EnvironmentVariables.md) + - [EnvironmentVariablesLinks](docs/EnvironmentVariablesLinks.md) + - [FeatureFlag](docs/FeatureFlag.md) + - [Get200Response](docs/Get200Response.md) + - [Get200ResponseLinks](docs/Get200ResponseLinks.md) + - [Get200ResponseLinksAppSsh](docs/Get200ResponseLinksAppSsh.md) + - [Get200ResponseLinksAppSshMeta](docs/Get200ResponseLinksAppSshMeta.md) + - [Get200ResponseLinksCloudControllerV2](docs/Get200ResponseLinksCloudControllerV2.md) + - [Get200ResponseLinksCloudControllerV2Meta](docs/Get200ResponseLinksCloudControllerV2Meta.md) + - [Get200ResponseLinksLogCache](docs/Get200ResponseLinksLogCache.md) + - [HealthCheck](docs/HealthCheck.md) + - [HealthCheckData](docs/HealthCheckData.md) + - [IsolationSegment](docs/IsolationSegment.md) + - [IsolationSegmentLinks](docs/IsolationSegmentLinks.md) + - [LastOperation](docs/LastOperation.md) + - [Link](docs/Link.md) + - [LinkWithMethod](docs/LinkWithMethod.md) + - [Links](docs/Links.md) + - [ListOrganizationQuotas200Response](docs/ListOrganizationQuotas200Response.md) + - [ListOrganizationQuotas200ResponsePagination](docs/ListOrganizationQuotas200ResponsePagination.md) + - [ListOrganizationQuotas200ResponsePaginationNext](docs/ListOrganizationQuotas200ResponsePaginationNext.md) + - [MaintenanceInfo](docs/MaintenanceInfo.md) + - [ManagedServiceInstanceUpdate](docs/ManagedServiceInstanceUpdate.md) + - [ManagedServiceInstanceUpdateRelationships](docs/ManagedServiceInstanceUpdateRelationships.md) + - [Metadata](docs/Metadata.md) + - [Organization](docs/Organization.md) + - [OrganizationLinks](docs/OrganizationLinks.md) + - [OrganizationQuota](docs/OrganizationQuota.md) + - [OrganizationQuotaLinks](docs/OrganizationQuotaLinks.md) + - [OrganizationQuotaRelationships](docs/OrganizationQuotaRelationships.md) + - [OrganizationRelationships](docs/OrganizationRelationships.md) + - [OrganizationVisibility](docs/OrganizationVisibility.md) + - [Package](docs/Package.md) + - [PackageData](docs/PackageData.md) + - [PackageDataChecksum](docs/PackageDataChecksum.md) + - [PackageLinks](docs/PackageLinks.md) + - [PackageLinksApp](docs/PackageLinksApp.md) + - [PackageLinksDownload](docs/PackageLinksDownload.md) + - [PackageLinksSelf](docs/PackageLinksSelf.md) + - [PackageLinksUpload](docs/PackageLinksUpload.md) + - [Pagination](docs/Pagination.md) + - [PlanSchemas](docs/PlanSchemas.md) + - [PlanSchemasServiceBinding](docs/PlanSchemasServiceBinding.md) + - [PlanSchemasServiceBindingCreate](docs/PlanSchemasServiceBindingCreate.md) + - [PlanSchemasServiceInstance](docs/PlanSchemasServiceInstance.md) + - [PlatformInfo](docs/PlatformInfo.md) + - [PlatformInfoCliVersion](docs/PlatformInfoCliVersion.md) + - [PlatformInfoLinks](docs/PlatformInfoLinks.md) + - [Process](docs/Process.md) + - [ProcessLinks](docs/ProcessLinks.md) + - [ProcessList](docs/ProcessList.md) + - [ProcessRelationships](docs/ProcessRelationships.md) + - [ProcessScale](docs/ProcessScale.md) + - [ProcessStats](docs/ProcessStats.md) + - [ProcessStatsInstancePortsInner](docs/ProcessStatsInstancePortsInner.md) + - [ProcessStatsUsage](docs/ProcessStatsUsage.md) + - [ProcessUpdate](docs/ProcessUpdate.md) + - [ReadinessHealthCheck](docs/ReadinessHealthCheck.md) + - [ReadinessHealthCheckData](docs/ReadinessHealthCheckData.md) + - [ResourceMatchObject](docs/ResourceMatchObject.md) + - [ResourceMatchRequest](docs/ResourceMatchRequest.md) + - [ResourceMatchResponse](docs/ResourceMatchResponse.md) + - [Revision](docs/Revision.md) + - [RevisionLinks](docs/RevisionLinks.md) + - [RevisionProcessesValue](docs/RevisionProcessesValue.md) + - [RevisionsList](docs/RevisionsList.md) + - [RevisionsListPagination](docs/RevisionsListPagination.md) + - [Role](docs/Role.md) + - [RoleLinks](docs/RoleLinks.md) + - [RoleRelationships](docs/RoleRelationships.md) + - [RoleRelationshipsSpace](docs/RoleRelationshipsSpace.md) + - [RoleRelationshipsSpaceData](docs/RoleRelationshipsSpaceData.md) + - [RolesList](docs/RolesList.md) + - [Route](docs/Route.md) + - [RouteLinks](docs/RouteLinks.md) + - [RouteList](docs/RouteList.md) + - [RoutesQuota](docs/RoutesQuota.md) + - [Rule](docs/Rule.md) + - [SecurityGroup](docs/SecurityGroup.md) + - [SecurityGroupCreate](docs/SecurityGroupCreate.md) + - [SecurityGroupGloballyEnabled](docs/SecurityGroupGloballyEnabled.md) + - [SecurityGroupLinks](docs/SecurityGroupLinks.md) + - [SecurityGroupList](docs/SecurityGroupList.md) + - [SecurityGroupRelationships](docs/SecurityGroupRelationships.md) + - [SecurityGroupUpdate](docs/SecurityGroupUpdate.md) + - [SecurityGroupUpdateGloballyEnabled](docs/SecurityGroupUpdateGloballyEnabled.md) + - [ServiceBroker](docs/ServiceBroker.md) + - [ServiceBrokerCreate](docs/ServiceBrokerCreate.md) + - [ServiceBrokerLinks](docs/ServiceBrokerLinks.md) + - [ServiceBrokerList](docs/ServiceBrokerList.md) + - [ServiceBrokerRelationships](docs/ServiceBrokerRelationships.md) + - [ServiceBrokerUpdate](docs/ServiceBrokerUpdate.md) + - [ServiceCredentialBinding](docs/ServiceCredentialBinding.md) + - [ServiceCredentialBindingLastOperation](docs/ServiceCredentialBindingLastOperation.md) + - [ServiceCredentialBindingLinks](docs/ServiceCredentialBindingLinks.md) + - [ServiceCredentialBindingRelationships](docs/ServiceCredentialBindingRelationships.md) + - [ServiceInstance](docs/ServiceInstance.md) + - [ServiceInstanceRelationships](docs/ServiceInstanceRelationships.md) + - [ServiceOffering](docs/ServiceOffering.md) + - [ServiceOfferingCreate](docs/ServiceOfferingCreate.md) + - [ServiceOfferingLinks](docs/ServiceOfferingLinks.md) + - [ServiceOfferingList](docs/ServiceOfferingList.md) + - [ServiceOfferingRelationships](docs/ServiceOfferingRelationships.md) + - [ServiceOfferingUpdate](docs/ServiceOfferingUpdate.md) + - [ServicePlan](docs/ServicePlan.md) + - [ServicePlanCreate](docs/ServicePlanCreate.md) + - [ServicePlanLinks](docs/ServicePlanLinks.md) + - [ServicePlanList](docs/ServicePlanList.md) + - [ServicePlanRelationships](docs/ServicePlanRelationships.md) + - [ServicePlanUpdate](docs/ServicePlanUpdate.md) + - [ServicePlanVisibility](docs/ServicePlanVisibility.md) + - [ServicePlanVisibilityApply](docs/ServicePlanVisibilityApply.md) + - [ServicePlanVisibilitySpace](docs/ServicePlanVisibilitySpace.md) + - [ServicePlanVisibilityUpdate](docs/ServicePlanVisibilityUpdate.md) + - [ServiceRouteBinding](docs/ServiceRouteBinding.md) + - [ServiceRouteBindingLinks](docs/ServiceRouteBindingLinks.md) + - [ServiceRouteBindingRelationships](docs/ServiceRouteBindingRelationships.md) + - [ServiceUsageEvent](docs/ServiceUsageEvent.md) + - [ServiceUsageEventLinks](docs/ServiceUsageEventLinks.md) + - [ServiceUsageEventServiceBroker](docs/ServiceUsageEventServiceBroker.md) + - [ServiceUsageEventServiceInstance](docs/ServiceUsageEventServiceInstance.md) + - [ServicesQuota](docs/ServicesQuota.md) + - [Sidecar](docs/Sidecar.md) + - [Space](docs/Space.md) + - [SpaceFeature](docs/SpaceFeature.md) + - [SpaceLinks](docs/SpaceLinks.md) + - [SpaceQuota](docs/SpaceQuota.md) + - [SpaceQuotaLinks](docs/SpaceQuotaLinks.md) + - [SpaceQuotaRelationships](docs/SpaceQuotaRelationships.md) + - [SpaceRelationships](docs/SpaceRelationships.md) + - [SpaceRelationshipsQuota](docs/SpaceRelationshipsQuota.md) + - [Stack](docs/Stack.md) + - [Task](docs/Task.md) + - [TaskLinks](docs/TaskLinks.md) + - [TaskResult](docs/TaskResult.md) + - [ToOneRelationship](docs/ToOneRelationship.md) + - [UpdateOrganizationQuotaRequest](docs/UpdateOrganizationQuotaRequest.md) + - [UpdateOrganizationRequest](docs/UpdateOrganizationRequest.md) + - [UsageSummary](docs/UsageSummary.md) + - [User](docs/User.md) + - [UserLinks](docs/UserLinks.md) + - [UserLinksSelf](docs/UserLinksSelf.md) + - [UserProvidedServiceInstanceUpdate](docs/UserProvidedServiceInstanceUpdate.md) + - [V3AppsGuidActionsRestartPost200Response](docs/V3AppsGuidActionsRestartPost200Response.md) + - [V3AppsGuidActionsRestartPost200ResponseLifecycle](docs/V3AppsGuidActionsRestartPost200ResponseLifecycle.md) + - [V3AppsGuidActionsRestartPost200ResponseRelationships](docs/V3AppsGuidActionsRestartPost200ResponseRelationships.md) + - [V3AppsGuidDropletsCurrentGet200Response](docs/V3AppsGuidDropletsCurrentGet200Response.md) + - [V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner](docs/V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md) + - [V3AppsGuidDropletsCurrentGet200ResponseChecksum](docs/V3AppsGuidDropletsCurrentGet200ResponseChecksum.md) + - [V3AppsGuidDropletsCurrentGet200ResponseLifecycle](docs/V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md) + - [V3AppsGuidDropletsCurrentGet200ResponseLinksValue](docs/V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md) + - [V3AppsGuidDropletsCurrentGet200ResponseMetadata](docs/V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) + - [V3AppsGuidDropletsCurrentGet200ResponseRelationships](docs/V3AppsGuidDropletsCurrentGet200ResponseRelationships.md) + - [V3AppsGuidDropletsGet200Response](docs/V3AppsGuidDropletsGet200Response.md) + - [V3AppsGuidEnvGet200Response](docs/V3AppsGuidEnvGet200Response.md) + - [V3AppsGuidEnvGet200ResponseApplicationEnvJson](docs/V3AppsGuidEnvGet200ResponseApplicationEnvJson.md) + - [V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION](docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md) + - [V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits](docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md) + - [V3AppsGuidEnvGet200ResponseSystemEnvJson](docs/V3AppsGuidEnvGet200ResponseSystemEnvJson.md) + - [V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner](docs/V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner.md) + - [V3AppsGuidEnvironmentVariablesGet200Response](docs/V3AppsGuidEnvironmentVariablesGet200Response.md) + - [V3AppsGuidEnvironmentVariablesPatchRequest](docs/V3AppsGuidEnvironmentVariablesPatchRequest.md) + - [V3AppsGuidFeaturesNamePatchRequest](docs/V3AppsGuidFeaturesNamePatchRequest.md) + - [V3AppsGuidPatchRequest](docs/V3AppsGuidPatchRequest.md) + - [V3AppsGuidPatchRequestLifecycle](docs/V3AppsGuidPatchRequestLifecycle.md) + - [V3AppsGuidPatchRequestLifecycleData](docs/V3AppsGuidPatchRequestLifecycleData.md) + - [V3AppsGuidPatchRequestMetadata](docs/V3AppsGuidPatchRequestMetadata.md) + - [V3AppsGuidPermissionsGet200Response](docs/V3AppsGuidPermissionsGet200Response.md) + - [V3AppsGuidRelationshipsCurrentDropletGet200Response](docs/V3AppsGuidRelationshipsCurrentDropletGet200Response.md) + - [V3AppsGuidSidecarsGet200Response](docs/V3AppsGuidSidecarsGet200Response.md) + - [V3AppsGuidSidecarsPostRequest](docs/V3AppsGuidSidecarsPostRequest.md) + - [V3AppsGuidSshEnabledGet200Response](docs/V3AppsGuidSshEnabledGet200Response.md) + - [V3AppsGuidTasksPostRequest](docs/V3AppsGuidTasksPostRequest.md) + - [V3AppsGuidTasksPostRequestMetadata](docs/V3AppsGuidTasksPostRequestMetadata.md) + - [V3AppsGuidTasksPostRequestTemplate](docs/V3AppsGuidTasksPostRequestTemplate.md) + - [V3AppsGuidTasksPostRequestTemplateProcess](docs/V3AppsGuidTasksPostRequestTemplateProcess.md) + - [V3AppsPostRequest](docs/V3AppsPostRequest.md) + - [V3AppsPostRequestLifecycle](docs/V3AppsPostRequestLifecycle.md) + - [V3AppsPostRequestLifecycleData](docs/V3AppsPostRequestLifecycleData.md) + - [V3AppsPostRequestRelationships](docs/V3AppsPostRequestRelationships.md) + - [V3AppsPostRequestRelationshipsSpace](docs/V3AppsPostRequestRelationshipsSpace.md) + - [V3AppsPostRequestRelationshipsSpaceData](docs/V3AppsPostRequestRelationshipsSpaceData.md) + - [V3DomainsGet200Response](docs/V3DomainsGet200Response.md) + - [V3DomainsGet200ResponsePagination](docs/V3DomainsGet200ResponsePagination.md) + - [V3DomainsGuidPatchRequest](docs/V3DomainsGuidPatchRequest.md) + - [V3DomainsGuidRelationshipsSharedOrganizationsPost200Response](docs/V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md) + - [V3DomainsGuidRelationshipsSharedOrganizationsPostRequest](docs/V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md) + - [V3DomainsPostRequest](docs/V3DomainsPostRequest.md) + - [V3DomainsPostRequestMetadata](docs/V3DomainsPostRequestMetadata.md) + - [V3DomainsPostRequestOrganization](docs/V3DomainsPostRequestOrganization.md) + - [V3DomainsPostRequestOrganizationData](docs/V3DomainsPostRequestOrganizationData.md) + - [V3DomainsPostRequestRouterGroup](docs/V3DomainsPostRequestRouterGroup.md) + - [V3DropletsPostRequest](docs/V3DropletsPostRequest.md) + - [V3DropletsPostRequestRelationships](docs/V3DropletsPostRequestRelationships.md) + - [V3DropletsPostRequestRelationshipsApp](docs/V3DropletsPostRequestRelationshipsApp.md) + - [V3DropletsPostRequestRelationshipsAppData](docs/V3DropletsPostRequestRelationshipsAppData.md) + - [V3EnvironmentVariableGroupsNamePatchRequest](docs/V3EnvironmentVariableGroupsNamePatchRequest.md) + - [V3FeatureFlagsGet200Response](docs/V3FeatureFlagsGet200Response.md) + - [V3FeatureFlagsNamePatchRequest](docs/V3FeatureFlagsNamePatchRequest.md) + - [V3Get200Response](docs/V3Get200Response.md) + - [V3Get200ResponseLinks](docs/V3Get200ResponseLinks.md) + - [V3Get200ResponseLinksServiceInstances](docs/V3Get200ResponseLinksServiceInstances.md) + - [V3IsolationSegmentsGet200Response](docs/V3IsolationSegmentsGet200Response.md) + - [V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response](docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md) + - [V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks](docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md) + - [V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated](docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) + - [V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest](docs/V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) + - [V3IsolationSegmentsGuidRelationshipsSpacesGet200Response](docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md) + - [V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks](docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md) + - [V3PackagesGet200Response](docs/V3PackagesGet200Response.md) + - [V3PackagesGet200ResponsePagination](docs/V3PackagesGet200ResponsePagination.md) + - [V3PackagesGuidDelete202Response](docs/V3PackagesGuidDelete202Response.md) + - [V3PackagesGuidPatchRequest](docs/V3PackagesGuidPatchRequest.md) + - [V3PackagesGuidUploadPostRequestResourcesInner](docs/V3PackagesGuidUploadPostRequestResourcesInner.md) + - [V3PackagesGuidUploadPostRequestResourcesInnerChecksum](docs/V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md) + - [V3PackagesPostRequest](docs/V3PackagesPostRequest.md) + - [V3PackagesPostRequestData](docs/V3PackagesPostRequestData.md) + - [V3PackagesPostRequestMetadata](docs/V3PackagesPostRequestMetadata.md) + - [V3PackagesPostRequestRelationships](docs/V3PackagesPostRequestRelationships.md) + - [V3PackagesPostRequestRelationshipsApp](docs/V3PackagesPostRequestRelationshipsApp.md) + - [V3PackagesPostRequestRelationshipsAppData](docs/V3PackagesPostRequestRelationshipsAppData.md) + - [V3RevisionsGuidPatchRequest](docs/V3RevisionsGuidPatchRequest.md) + - [V3RolesPostRequest](docs/V3RolesPostRequest.md) + - [V3RolesPostRequestRelationships](docs/V3RolesPostRequestRelationships.md) + - [V3RolesPostRequestRelationshipsUser](docs/V3RolesPostRequestRelationshipsUser.md) + - [V3RolesPostRequestRelationshipsUserData](docs/V3RolesPostRequestRelationshipsUserData.md) + - [V3RoutesGet200Response](docs/V3RoutesGet200Response.md) + - [V3RoutesGet200ResponsePagination](docs/V3RoutesGet200ResponsePagination.md) + - [V3RoutesPostRequest](docs/V3RoutesPostRequest.md) + - [V3RoutesPostRequestRelationships](docs/V3RoutesPostRequestRelationships.md) + - [V3ServiceCredentialBindingsGuidDetailsGet200Response](docs/V3ServiceCredentialBindingsGuidDetailsGet200Response.md) + - [V3ServiceCredentialBindingsGuidPatchRequest](docs/V3ServiceCredentialBindingsGuidPatchRequest.md) + - [V3ServiceCredentialBindingsPostRequest](docs/V3ServiceCredentialBindingsPostRequest.md) + - [V3ServiceCredentialBindingsPostRequestRelationships](docs/V3ServiceCredentialBindingsPostRequestRelationships.md) + - [V3ServiceInstancesGet200Response](docs/V3ServiceInstancesGet200Response.md) + - [V3ServiceInstancesGuidPatchRequest](docs/V3ServiceInstancesGuidPatchRequest.md) + - [V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest](docs/V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md) + - [V3ServiceRouteBindingsGet200Response](docs/V3ServiceRouteBindingsGet200Response.md) + - [V3ServiceRouteBindingsGuidPatchRequest](docs/V3ServiceRouteBindingsGuidPatchRequest.md) + - [V3ServiceRouteBindingsPostRequest](docs/V3ServiceRouteBindingsPostRequest.md) + - [V3ServiceUsageEventsGet200Response](docs/V3ServiceUsageEventsGet200Response.md) + - [V3SidecarsGuidPatchRequest](docs/V3SidecarsGuidPatchRequest.md) + - [V3SpaceQuotasGet200Response](docs/V3SpaceQuotasGet200Response.md) + - [V3SpaceQuotasGuidPatchRequest](docs/V3SpaceQuotasGuidPatchRequest.md) + - [V3SpaceQuotasPostRequest](docs/V3SpaceQuotasPostRequest.md) + - [V3SpaceQuotasPostRequestApps](docs/V3SpaceQuotasPostRequestApps.md) + - [V3SpaceQuotasPostRequestRelationships](docs/V3SpaceQuotasPostRequestRelationships.md) + - [V3SpaceQuotasPostRequestRoutes](docs/V3SpaceQuotasPostRequestRoutes.md) + - [V3SpaceQuotasPostRequestServices](docs/V3SpaceQuotasPostRequestServices.md) + - [V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response](docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md) + - [V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks](docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md) + - [V3SpacesGet200Response](docs/V3SpacesGet200Response.md) + - [V3SpacesGuidFeaturesGet200Response](docs/V3SpacesGuidFeaturesGet200Response.md) + - [V3SpacesGuidFeaturesPatchRequest](docs/V3SpacesGuidFeaturesPatchRequest.md) + - [V3SpacesGuidPatchRequest](docs/V3SpacesGuidPatchRequest.md) + - [V3SpacesGuidUsersGet200Response](docs/V3SpacesGuidUsersGet200Response.md) + - [V3SpacesPostRequest](docs/V3SpacesPostRequest.md) + - [V3StacksGet200Response](docs/V3StacksGet200Response.md) + - [V3StacksGuidAppsGet200Response](docs/V3StacksGuidAppsGet200Response.md) + - [V3StacksPostRequest](docs/V3StacksPostRequest.md) + - [V3TasksGet200Response](docs/V3TasksGet200Response.md) + - [V3UsersGet200Response](docs/V3UsersGet200Response.md) + - [V3UsersGuidPatchRequest](docs/V3UsersGuidPatchRequest.md) + - [V3UsersPostRequest](docs/V3UsersPostRequest.md) + - [V3UsersPostRequestMetadata](docs/V3UsersPostRequestMetadata.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### bearerAuth + +- **Type**: HTTP Bearer token authentication + +Example + +```go +auth := context.WithValue(context.Background(), capiclient.ContextAccessToken, "BEARER_TOKEN_STRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/api/openapi.yaml b/api/openapi.yaml new file mode 100644 index 0000000..dcdad7e --- /dev/null +++ b/api/openapi.yaml @@ -0,0 +1,15496 @@ +openapi: 3.0.0 +info: + description: API specification for managing environment variable groups in Cloud + Controller. + title: Cloud Controller API + version: v3 +servers: +- url: / +paths: + /: + get: + description: Returns links to the APIs available on a given Cloud Foundry deployment. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/__get_200_response' + description: OK + summary: Global API Root + /v3: + get: + description: Returns links to all the resources available on the v3 API. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_get_200_response' + description: OK + summary: V3 API Root + /v3/admin/actions/clear_buildpack_cache: + post: + description: This endpoint will delete all of the existing buildpack caches + in the blobstore. + responses: + "202": + description: The buildpack cache clearing has been accepted. + default: + description: An unexpected error. + security: + - Admin: [] + summary: Clear buildpack cache + /v3/app_usage_events: + get: + parameters: + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + type: string + style: form + - description: Filters out events before and including the event with the given + guid + explode: true + in: query + name: after_guid + required: false + schema: + type: string + style: form + - description: Comma-delimited list of usage event guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AppUsageEventList' + description: Ok + security: + - bearerAuth: [] + summary: List app usage events + tags: + - App Usage Events + x-permissions: + - All Roles + /v3/app_usage_events/actions/destructively_purge_all_and_reseed: + post: + responses: + "200": + content: + application/json: + schema: + type: object + description: Ok + security: + - bearerAuth: [] + summary: Purge and seed app usage events + tags: + - App Usage Events + x-permissions: + - Admin + /v3/app_usage_events/{guid}: + get: + parameters: + - description: Unique identifier for the event + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AppUsageEvent' + description: Ok + security: + - bearerAuth: [] + summary: Retrieve an app usage event + tags: + - App Usage Events + x-permissions: + - Admin + - Admin Read-Only + - Global Auditor + /v3/apps: + get: + description: Retrieve a list of all apps. + parameters: + - description: Page number for pagination. + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page. + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Field by which to order results. + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: Filter results by app names. + explode: true + in: query + name: names + required: false + schema: + type: string + style: form + - description: Filter results by app GUIDs. + explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - description: Filter results by organization GUIDs. + explode: true + in: query + name: organization_guids + required: false + schema: + type: string + style: form + - description: Filter results by space GUIDs. + explode: true + in: query + name: space_guids + required: false + schema: + type: string + style: form + - description: Filter results by stack names. + explode: true + in: query + name: stacks + required: false + schema: + type: string + style: form + - description: Include related resources in the response. + explode: true + in: query + name: include + required: false + schema: + type: string + style: form + - description: Filter results by lifecycle type. + explode: true + in: query + name: lifecycle_type + required: false + schema: + type: string + style: form + - description: Filter results by label selector. + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Filter results by creation timestamps. + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: Filter results by update timestamps. + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/App' + description: A JSON array of apps. + default: + description: An unexpected error. + summary: List apps + post: + description: Create a new app. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/App' + description: App created + default: + description: An unexpected error. + summary: Create an app + /v3/apps/{guid}: + delete: + description: Delete the specified app. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: App deletion accepted + headers: + Location: + explode: false + schema: + type: string + style: simple + security: + - Admin: [] + - SpaceDeveloper: [] + summary: Delete an app + get: + description: Retrieve a specific app by its GUID. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: Include related resources in the response; valid values are space + and space.organization. + explode: true + in: query + name: include + required: false + schema: + items: + enum: + - space + - space.organization + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/App' + description: The requested app. + default: + description: An unexpected error. + summary: Retrieve a specific app + patch: + description: Update an existing app by its GUID. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/App' + description: App updated + security: + - Admin: [] + - SpaceDeveloper: [] + summary: Update an app + /v3/apps/{guid}/actions/clear_buildpack_cache: + post: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted response + headers: + Location: + explode: false + schema: + type: string + style: simple + security: + - bearerAuth: [] + summary: Clear buildpack cache for application + /v3/apps/{guid}/actions/restart: + post: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__actions_restart_post_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Restart an app + /v3/apps/{guid}/actions/start: + post: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__actions_restart_post_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Start an app + /v3/apps/{guid}/actions/stop: + post: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__actions_restart_post_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Stop an app + /v3/apps/{guid}/builds: + get: + description: Retrieve all builds for the app. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + description: A JSON array of builds. + default: + description: An unexpected error. + security: + - Admin: [] + - AdminReadOnly: [] + - GlobalAuditor: [] + - OrgManager: [] + - SpaceAuditor: [] + - SpaceDeveloper: [] + - SpaceManager: [] + - SpaceSupporter: [] + summary: List builds for an app + /v3/apps/{guid}/droplets: + get: + description: Retrieve a list of droplets belonging to an app. + parameters: + - description: The guid of the app + explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + - description: Comma-delimited list of droplet guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of droplet states to filter by + explode: true + in: query + name: states + required: false + schema: + items: + type: string + type: array + style: form + - description: "If true, only include the droplet currently assigned to the\ + \ app" + explode: true + in: query + name: current + required: false + schema: + type: boolean + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__droplets_get_200_response' + description: List of droplets for an app retrieved successfully + summary: List droplets for an app + /v3/apps/{guid}/droplets/current: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get current droplet + /v3/apps/{guid}/env: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get environment for an app + /v3/apps/{guid}/environment_variables: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__environment_variables_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get environment variables for an app + patch: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__environment_variables_patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__environment_variables_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Update environment variables for an app + /v3/apps/{guid}/features: + get: + description: Retrieves the list of features for the specified app. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + description: A list of app features. + default: + description: An unexpected error. + security: + - Admin: [] + - AdminReadOnly: [] + - GlobalAuditor: [] + - OrgManager: [] + - SpaceAuditor: [] + - SpaceDeveloper: [] + - SpaceManager: [] + - SpaceSupporter: [] + summary: List app features + /v3/apps/{guid}/features/{name}: + get: + description: Retrieves a specific feature for the specified app. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: The name of the feature. + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "200": + description: The app feature. + default: + description: An unexpected error. + security: + - Admin: [] + - AdminReadOnly: [] + - GlobalAuditor: [] + - OrgManager: [] + - SpaceAuditor: [] + - SpaceDeveloper: [] + - SpaceManager: [] + - SpaceSupporter: [] + summary: Get an app feature + patch: + description: Updates a specific feature for the specified app. + parameters: + - description: The GUID of the app. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: The name of the feature. + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__features__name__patch_request' + responses: + "200": + description: The updated app feature. + default: + description: An unexpected error. + security: + - Admin: [] + - SpaceDeveloper: [] + - SpaceSupporter: [] + summary: Update an app feature + /v3/apps/{guid}/permissions: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__permissions_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get permissions for an app + /v3/apps/{guid}/processes: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: types + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessList' + description: OK + summary: List processes for app + /v3/apps/{guid}/relationships/current_droplet: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__relationships_current_droplet_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get current droplet association for an app + /v3/apps/{guid}/revisions: + get: + description: Retrieve revisions for an app the user has access to. + parameters: + - description: Unique identifier for the app + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: Comma-delimited list of revision versions to filter by + explode: true + in: query + name: versions + required: false + schema: + items: + type: string + type: array + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by. Defaults to ascending; prepend with - to sort + descending. + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: Timestamp to filter by; supports filtering with relational operators + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: Timestamp to filter by; supports filtering with relational operators + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RevisionsList' + description: OK + summary: List revisions for an app + /v3/apps/{guid}/revisions/deployed: + get: + description: Retrieve deployed revisions for an app the user has access to. + Deployed revisions are revisions that are linked to started processes in the + app. + parameters: + - description: Unique identifier for the app + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by. Defaults to ascending; prepend with - to sort + descending. + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RevisionsList' + description: OK + summary: List deployed revisions for an app + /v3/apps/{guid}/routes: + get: + description: Retrieve all routes that have destinations that point to the given + app. + parameters: + - description: The app GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: Comma-delimited list of domain guids to filter by + explode: true + in: query + name: domain_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of hostnames to filter by + explode: true + in: query + name: hosts + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: "Comma-delimited list of paths to filter by (e.g. /path1,/path2)" + explode: true + in: query + name: paths + required: false + schema: + items: + type: string + type: array + style: form + - description: "Comma-delimited list of ports to filter by (e.g. 3306,5432)" + explode: true + in: query + name: ports + required: false + schema: + items: + type: integer + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RouteList' + description: OK + security: + - bearerAuth: [] + summary: Retrieve all routes for an app + /v3/apps/{guid}/sidecars: + get: + description: Retrieves all sidecars associated with an app. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + - updated_at + - -updated_at + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__sidecars_get_200_response' + description: OK + summary: List sidecars for an app + post: + description: Creates a sidecar associated with an app. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__sidecars_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Sidecar' + description: Created + summary: Create a sidecar associated with an app + /v3/apps/{guid}/ssh_enabled: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__ssh_enabled_get_200_response' + description: Successful response + security: + - bearerAuth: [] + summary: Get SSH enabled for an app + /v3/apps/{guid}/tasks: + post: + description: Create a new task for an app. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Task' + description: Accepted + summary: Create a task + /v3/audit_events: + get: + parameters: + - description: Comma-delimited list of event types to filter by + explode: true + in: query + name: types + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of target guids to filter by. Also supports + filtering by exclusion. + explode: true + in: query + name: target_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + - -created_at + - -updated_at + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuditEventList' + description: Ok + security: + - bearerAuth: [] + summary: List audit events + tags: + - Audit Events + x-permissions: + - Admin + - Admin Read-Only + - Global Auditor + - Org Auditor + - Org Manager + - Space Auditor + - Space Developer + - Space Manager + - Space Supporter + /v3/audit_events/{guid}: + get: + parameters: + - description: Unique identifier for the event + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuditEvent' + description: Ok + security: + - bearerAuth: [] + summary: Retrieve an audit event + tags: + - Audit Events + x-permissions: + - Admin + - Admin Read-Only + - Global Auditor + - Org Auditor + - Space Auditor + - Space Developer + - Space Supporter + /v3/buildpacks: + get: + description: Retrieve a list of all buildpacks. + responses: + "200": + description: A JSON array of buildpacks. + default: + description: An unexpected error. + summary: List buildpacks + post: + description: Create a new buildpack. + requestBody: + content: + application/json: + schema: + type: object + responses: + "201": + description: The created buildpack. + default: + description: An unexpected error. + summary: Create a buildpack + /v3/buildpacks/{guid}: + patch: + description: Update an existing buildpack. + parameters: + - description: The GUID of the buildpack. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: object + responses: + "200": + description: The updated buildpack. + default: + description: An unexpected error. + security: + - Admin: [] + - SpaceDeveloper: [] + summary: Update a buildpack + /v3/buildpacks/{guid}/upload: + post: + description: Upload a zip file containing a Cloud Foundry compatible buildpack. + parameters: + - description: The GUID of the buildpack. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/_v3_buildpacks__guid__upload_post_request' + responses: + "202": + description: The accepted upload job. + default: + description: An unexpected error. + security: + - Admin: [] + summary: Upload buildpack bits + /v3/builds: + get: + description: Retrieve a list of all builds. + responses: + "200": + description: A JSON array of builds. + default: + description: An unexpected error. + summary: List builds + post: + description: Create a new build. + requestBody: + content: + application/json: + schema: + type: object + responses: + "201": + description: The created build. + default: + description: An unexpected error. + summary: Create a build + /v3/builds/{guid}: + patch: + description: Update an existing build. + parameters: + - description: The GUID of the build. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + type: object + responses: + "200": + description: The updated build. + default: + description: An unexpected error. + security: + - Admin: [] + - SpaceDeveloper: [] + - BuildStateUpdater: [] + summary: Update a build + /v3/deployments: + get: + description: Retrieve a list of all deployments. + responses: + "200": + description: A JSON array of deployments. + default: + description: An unexpected error. + summary: List deployments + post: + description: Create a new deployment. + requestBody: + content: + application/json: + schema: + type: object + responses: + "201": + description: The created deployment. + default: + description: An unexpected error. + summary: Create a deployment + /v3/deployments/{guid}: + get: + description: Retrieve a deployment. + parameters: + - description: The GUID of the deployment. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + description: The deployment. + default: + description: An unexpected error. + security: + - Admin: [] + - AdminReadOnly: [] + - GlobalAuditor: [] + - OrgManager: [] + - SpaceAuditor: [] + - SpaceDeveloper: [] + - SpaceManager: [] + - SpaceSupporter: [] + summary: Get a deployment + /v3/deployments/{guid}/actions/cancel: + post: + description: Cancel an ongoing deployment. + parameters: + - description: The GUID of the deployment. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + description: The canceled deployment. + default: + description: An unexpected error. + security: + - Admin: [] + - SpaceDeveloper: [] + - SpaceSupporter: [] + summary: Cancel a deployment + /v3/deployments/{guid}/actions/continue: + post: + description: Continue a paused deployment. + parameters: + - description: The GUID of the deployment. + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + description: The continued deployment. + default: + description: An unexpected error. + security: + - Admin: [] + - SpaceDeveloper: [] + - SpaceSupporter: [] + summary: Continue a deployment + /v3/domains: + get: + description: Retrieve all domains the user has access to. + parameters: + - description: Comma-delimited list of guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of domain names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of owning organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: List of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_domains_get_200_response' + description: List of domains + security: + - bearerAuth: [] + summary: List domains + tags: + - Domains + post: + description: Create a new domain. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_domains_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Domain' + description: Domain created successfully + security: + - bearerAuth: [] + summary: Create a domain + tags: + - Domains + /v3/domains/{guid}: + delete: + description: Delete a domain by its guid. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "202": + description: Domain deletion accepted + headers: + Location: + explode: false + schema: + format: uri + type: string + style: simple + security: + - bearerAuth: [] + summary: Delete a domain + tags: + - Domains + get: + description: Retrieve a domain by its guid. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Domain' + description: Domain details + security: + - bearerAuth: [] + summary: Get a domain + tags: + - Domains + patch: + description: Update a domain by its guid. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_domains__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Domain' + description: Domain updated successfully + security: + - bearerAuth: [] + summary: Update a domain + tags: + - Domains + /v3/domains/{guid}/relationships/shared_organizations: + post: + description: Share a domain with other organizations. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_domains__guid__relationships_shared_organizations_post_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_domains__guid__relationships_shared_organizations_post_200_response' + description: Domain shared successfully + security: + - bearerAuth: [] + summary: Share a domain + tags: + - Domains + /v3/domains/{guid}/relationships/shared_organizations/{org_guid}: + delete: + description: Unshare a domain from an organization. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + - explode: false + in: path + name: org_guid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: Domain unshared successfully + security: + - bearerAuth: [] + summary: Unshare a domain + tags: + - Domains + /v3/droplets: + get: + description: Retrieve all droplets the user has access to. + parameters: + - description: Comma-delimited list of droplet guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of droplet states to filter by + explode: true + in: query + name: states + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of app guids to filter by + explode: true + in: query + name: app_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + format: date-time + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + format: date-time + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__droplets_get_200_response' + description: List of droplets retrieved successfully + summary: List droplets + post: + description: Create a droplet without a package. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_droplets_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Droplet' + description: Droplet created successfully + summary: Create a droplet + /v3/droplets/{guid}: + get: + description: Retrieve a specific droplet. + parameters: + - description: The guid of the droplet + explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Droplet' + description: Droplet retrieved successfully + summary: Get a droplet + /v3/environment_variable_groups/{name}: + get: + description: Retrieve a specific environment variable group. + parameters: + - description: The name of the environment variable group (running or staging) + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EnvironmentVariableGroup' + description: Environment variable group retrieved successfully + summary: Get an environment variable group + patch: + description: Update the environment variable group. The variables given in the + request will be merged with the existing environment variable group. Any requested + variables with a value of null will be removed from the group. Environment + variable names may not start with VCAP_. PORT is not a valid environment variable. + parameters: + - description: The name of the environment variable group (running or staging) + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_environment_variable_groups__name__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EnvironmentVariableGroup' + description: Environment variable group updated successfully + summary: Update environment variable group + /v3/feature_flags: + get: + description: Retrieve all feature flags. + parameters: + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by. Defaults to name ascending; prepend with - + to sort descending. + explode: true + in: query + name: order_by + required: false + schema: + enum: + - name + - -name + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + format: date-time + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_feature_flags_get_200_response' + description: List of feature flags retrieved successfully + summary: List feature flags + /v3/feature_flags/{name}: + get: + description: Retrieve a specific feature flag. + parameters: + - description: The name of the feature flag + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureFlag' + description: Feature flag retrieved successfully + summary: Get a feature flag + patch: + description: Update the status or custom error message of a feature flag. + parameters: + - description: The name of the feature flag + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_feature_flags__name__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureFlag' + description: Feature flag updated successfully + summary: Update a feature flag + /v3/info: + get: + description: Retrieve Cloud Controller configuration information. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PlatformInfo' + description: Platform information retrieved successfully + summary: Get platform info + /v3/info/usage_summary: + get: + description: Retrieve a high-level summary of usage across the entire Cloud + Foundry installation. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UsageSummary' + description: Platform usage summary retrieved successfully + summary: Get platform usage summary + /v3/isolation_segments: + get: + description: Retrieve all isolation segments to which the user has access. + parameters: + - description: Comma-delimited list of isolation segment guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of isolation segment names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by; defaults to ascending. Prepend with - to sort + descending + explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + - name + - -created_at + - -updated_at + - -name + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + format: date-time + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + format: date-time + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments_get_200_response' + description: List of isolation segments retrieved successfully + summary: List isolation segments + post: + description: Create a new isolation segment. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IsolationSegment' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/IsolationSegment' + description: Isolation segment created successfully + summary: Create an isolation segment + /v3/isolation_segments/{guid}: + delete: + description: Delete an isolation segment. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: Isolation segment deleted successfully + summary: Delete an isolation segment + get: + description: Retrieve an isolation segment to which the user has access. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IsolationSegment' + description: Isolation segment retrieved successfully + summary: Get an isolation segment + patch: + description: Update the name or metadata of an isolation segment. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IsolationSegment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/IsolationSegment' + description: Isolation segment updated successfully + summary: Update an isolation segment + /v3/isolation_segments/{guid}/relationships/organizations: + get: + description: List the organizations entitled for the isolation segment. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response' + description: List of organizations retrieved successfully + summary: List organizations relationship + post: + description: Entitle the specified organizations for the isolation segment. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_post_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response' + description: Organizations entitled successfully + summary: Entitle organizations for an isolation segment + /v3/isolation_segments/{guid}/relationships/organizations/{org_guid}: + delete: + description: Revoke the entitlement for the specified organization to the isolation + segment. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: The guid of the organization + explode: false + in: path + name: org_guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: Entitlement revoked successfully + summary: Revoke entitlement to isolation segment for an organization + /v3/isolation_segments/{guid}/relationships/spaces: + get: + description: List the spaces to which the isolation segment is assigned. + parameters: + - description: The guid of the isolation segment + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_spaces_get_200_response' + description: List of spaces retrieved successfully + summary: List spaces relationship + /v3/organization_quotas: + get: + operationId: listOrganizationQuotas + parameters: + - explode: true + in: query + name: guids + required: false + schema: + description: Comma-delimited list of organization quota guids to filter + by + items: + format: uuid + type: string + type: array + style: form + - explode: true + in: query + name: names + required: false + schema: + description: Comma-delimited list of organization quota names to filter + by + items: + type: string + type: array + style: form + - explode: true + in: query + name: organization_guids + required: false + schema: + description: Comma-delimited list of organization guids to filter by + items: + format: uuid + type: string + type: array + style: form + - explode: true + in: query + name: page + required: false + schema: + description: Page to display + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + description: Number of results per page + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + description: Value to sort by; defaults to ascending. Prepend with - to + sort descending. + enum: + - created_at + - updated_at + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + description: Timestamp to filter by created_at + format: date-time + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + description: Timestamp to filter by updated_at + format: date-time + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/listOrganizationQuotas_200_response' + description: OK + summary: List organization quotas + post: + operationId: createOrganizationQuota + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createOrganizationQuota_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationQuota' + description: Created + summary: Create an organization quota + /v3/organization_quotas/{guid}: + delete: + operationId: deleteOrganizationQuota + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the organization quota + format: uuid + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteOrganizationQuota_202_response' + description: Accepted + summary: Delete an organization quota + get: + operationId: getOrganizationQuota + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the organization quota + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationQuota' + description: OK + summary: Get an organization quota + patch: + operationId: updateOrganizationQuota + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the organization quota + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateOrganizationQuota_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationQuota' + description: OK + summary: Update an organization quota + /v3/organization_quotas/{quota_guid}/relationships/organizations: + post: + operationId: applyOrganizationQuotaToOrganizations + parameters: + - explode: false + in: path + name: quota_guid + required: true + schema: + description: GUID of the organization quota + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/applyOrganizationQuotaToOrganizations_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/applyOrganizationQuotaToOrganizations_201_response' + description: Created + summary: Apply an organization quota to organizations + /v3/organizations: + get: + operationId: listOrganizations + parameters: + - explode: true + in: query + name: names + required: false + schema: + type: string + style: form + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/Organization' + type: array + description: OK + summary: List Organizations + post: + operationId: createOrganization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createOrganization_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: Created + summary: Create an Organization + /v3/organizations/{guid}: + delete: + operationId: deleteOrganization + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + type: object + description: Accepted + summary: Delete an Organization + get: + operationId: getOrganization + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: OK + summary: Get an Organization + patch: + operationId: updateOrganization + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateOrganization_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: OK + summary: Update an Organization + /v3/organizations/{guid}/domains/default: + get: + operationId: getDefaultDomain + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Get Default Domain + /v3/organizations/{guid}/relationships/default_isolation_segment: + get: + operationId: getDefaultIsolationSegment + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Get Default Isolation Segment + patch: + operationId: assignDefaultIsolationSegment + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Assign Default Isolation Segment + /v3/organizations/{guid}/usage_summary: + get: + operationId: getUsageSummary + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Get Usage Summary + /v3/organizations/{guid}/users: + get: + operationId: listUsersForOrganization + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: usernames + required: false + schema: + type: string + style: form + - explode: true + in: query + name: partial_usernames + required: false + schema: + type: string + style: form + - explode: true + in: query + name: origins + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/User' + type: array + description: OK + summary: List Users for an Organization + /v3/packages: + get: + description: Retrieve all packages the user has access to. + parameters: + - description: Comma-delimited list of package guids to filter by + explode: false + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of package states to filter by + explode: false + in: query + name: states + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of package types to filter by + explode: false + in: query + name: types + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of app guids to filter by + explode: false + in: query + name: app_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: false + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: false + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: "Value to sort by; defaults to ascending. Prepend with - to sort\ + \ descending. Valid values are created_at, updated_at" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: false + in: query + name: created_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: false + in: query + name: updated_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_packages_get_200_response' + description: A JSON array of packages. + default: + description: An unexpected error. + summary: List packages + post: + description: Create a new package. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_packages_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Package' + description: The created package. + default: + description: An unexpected error. + summary: Create a package + /v3/packages/{guid}: + delete: + description: Delete a package by its GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the package + format: uuid + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_packages__guid__delete_202_response' + description: The job to delete the package. + default: + description: An unexpected error. + summary: Delete a package + get: + description: Retrieve a package by its GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the package + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Package' + description: A package object. + default: + description: An unexpected error. + summary: Get a package + patch: + description: Update a package by its GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the package + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_packages__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Package' + description: The updated package. + default: + description: An unexpected error. + summary: Update a package + /v3/packages/{guid}/droplets: + get: + description: Retrieve a list of droplets belonging to a package. + parameters: + - description: The guid of the package + explode: false + in: path + name: guid + required: true + schema: + format: uuid + type: string + style: simple + - description: Comma-delimited list of droplet guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of droplet states to filter by + explode: true + in: query + name: states + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__droplets_get_200_response' + description: List of droplets for a package retrieved successfully + summary: List droplets for a package + /v3/packages/{guid}/upload: + post: + description: Upload a new package by its GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + description: GUID of the package + format: uuid + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/_v3_packages__guid__upload_post_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Package' + description: The uploaded package. + default: + description: An unexpected error. + summary: Upload package bits + /v3/processes: + get: + parameters: + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: types + required: false + schema: + type: string + style: form + - explode: true + in: query + name: app_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: space_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: organization_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessList' + description: OK + summary: List processes + /v3/processes/{guid}: + patch: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessUpdate' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Process' + description: OK + summary: Update a process + /v3/processes/{guid}/actions/scale: + post: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessScale' + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Process' + description: Accepted + summary: Scale a process + /v3/processes/{guid}/instances/{index}: + delete: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: index + required: true + schema: + type: integer + style: simple + responses: + "204": + description: No Content + summary: Terminate a process instance + /v3/processes/{guid}/sidecars: + get: + description: Retrieves all sidecars associated with a process. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + - updated_at + - -updated_at + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps__guid__sidecars_get_200_response' + description: OK + summary: List sidecars for a process + /v3/processes/{guid}/stats: + get: + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProcessStats' + type: array + description: OK + summary: Get stats for a process + /v3/resource_matches: + post: + description: | + This endpoint matches given resource SHA-1/file size pairs against the Cloud Controller cache and reports the subset that describes already cached files. This is usually used to avoid uploading duplicate files when pushing an app which has only been partially changed. The path and mode fields are not used when matching. + + When uploading package bits, the response from this endpoint should be used as the resources form field. As such, it is useful to include the path and mode fields for each resource even though they are not used when determining a resource match. + + Cloud Foundry operators may set minimum/maximum file sizes to match against. If the file size provided is outside this range, it will not be matched against. + + If the resource_matching feature flag is disabled, resource matching will always return an empty array. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceMatchRequest' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceMatchResponse' + description: OK + summary: Create a resource match + /v3/revisions/{guid}: + patch: + description: Update metadata for a specific revision. + parameters: + - description: Unique identifier for the revision + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_revisions__guid__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Revision' + description: OK + summary: Update a revision + /v3/revisions/{guid}/environment_variables: + get: + description: Retrieve the environment variables associated with the revision. + parameters: + - description: Unique identifier for the revision + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EnvironmentVariables' + description: OK + summary: Get environment variables for a revision + /v3/roles: + get: + description: List roles that the user has access to. + parameters: + - description: Comma-delimited list of role guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of role types to filter by + explode: true + in: query + name: types + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of user guids to filter by + explode: true + in: query + name: user_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: "Page to display, valid values are integers >= 1" + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: "Number of results per page, valid values are 1 through 5000" + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: "Value to sort by, defaults to ascending, prepend with - to sort\ + \ descending" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: Optionally include a list of unique related resources in the + response + explode: true + in: query + name: include + required: false + schema: + items: + type: string + type: array + style: form + - description: "Timestamp to filter by, supports filtering with relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + items: + type: string + type: array + style: form + - description: "Timestamp to filter by, supports filtering with relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RolesList' + description: OK + summary: List roles + post: + description: Create a new role for a user in an organization or space. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_roles_post_request' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Role' + description: Created + summary: Create a role + /v3/roles/{guid}: + delete: + description: Delete an individual role. + parameters: + - description: Unique identifier for the role + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted + headers: + Location: + description: URL to check the status of the deletion job + explode: false + schema: + type: string + style: simple + summary: Delete a role + get: + description: Get an individual role resource. + parameters: + - description: Unique identifier for the role + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: Optionally include a list of unique related resources in the + response + explode: true + in: query + name: include + required: false + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Role' + description: OK + summary: Get a role + /v3/routes: + get: + description: Retrieve all routes the user has access to. + parameters: + - description: Comma-delimited list of app guids to filter by + explode: true + in: query + name: app_guids + required: false + schema: + type: string + style: form + - description: Comma-delimited list of domain guids to filter by + explode: true + in: query + name: domain_guids + required: false + schema: + type: string + style: form + - description: Comma-delimited list of hostnames to filter by + explode: true + in: query + name: hosts + required: false + schema: + type: string + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + type: string + style: form + - description: "Comma-delimited list of paths to filter by (e.g. /path1,/path2)" + explode: true + in: query + name: paths + required: false + schema: + type: string + style: form + - description: "Comma-delimited list of ports to filter by (e.g. 3306,5432)" + explode: true + in: query + name: ports + required: false + schema: + type: string + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + type: string + style: form + - description: Comma-delimited list of service instance guids to filter by + explode: true + in: query + name: service_instance_guids + required: false + schema: + type: string + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: "Optionally include a list of unique related resources in the\ + \ response. Valid values are domain, space.organization, space" + explode: true + in: query + name: include + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_routes_get_200_response' + description: OK + summary: List routes + post: + description: Create a new route. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_routes_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Route' + description: Created + security: + - bearerAuth: [] + summary: Create a route + /v3/routes/{guid}: + get: + description: Retrieve a route by its GUID. + parameters: + - description: The route GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: "Optionally include additional related resources in the response.\ + \ Valid values are domain, space.organization, space" + explode: true + in: query + name: include + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Route' + description: OK + security: + - bearerAuth: [] + summary: Get a route + /v3/security_groups: + get: + description: Retrieves a list of security groups. + parameters: + - description: Comma-delimited list of security group guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of security group names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: "If true, only include the security groups that are enabled for\ + \ running" + explode: true + in: query + name: globally_enabled_running + required: false + schema: + type: boolean + style: form + - description: "If true, only include the security groups that are enabled for\ + \ staging" + explode: true + in: query + name: globally_enabled_staging + required: false + schema: + type: boolean + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: running_space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: staging_space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroupList' + description: OK + summary: List security groups + post: + description: Creates a new security group. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroupCreate' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroup' + description: Created + summary: Create a security group + /v3/security_groups/{guid}: + delete: + description: Deletes a security group by its GUID. + parameters: + - description: The security group GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted + summary: Delete a security group + get: + description: Retrieves a security group by its GUID. + parameters: + - description: The security group GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroup' + description: OK + summary: Get a security group + patch: + description: Updates the specified attributes of the security group. + parameters: + - description: The security group GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroupUpdate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SecurityGroup' + description: OK + summary: Update a security group + /v3/service_brokers: + get: + description: Retrieves the service brokers the user has access to. + parameters: + - description: Comma-delimited list of service broker names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Comma-delimited list of space GUIDs to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at, name" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBrokerList' + description: OK + summary: List service brokers + post: + description: Creates a new service broker and a job to synchronize the service + offerings and service plans with those in the broker’s catalog. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBrokerCreate' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBroker' + description: Accepted + headers: + Location: + description: URL to the created job + explode: false + schema: + type: string + style: simple + summary: Create a service broker + /v3/service_brokers/{guid}: + delete: + description: Creates a job to delete an existing service broker. + parameters: + - description: The service broker GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted + headers: + Location: + description: URL to the created job + explode: false + schema: + type: string + style: simple + summary: Delete a service broker + get: + description: Retrieves the service broker by GUID. + parameters: + - description: The service broker GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBroker' + description: OK + summary: Get a service broker + patch: + description: Updates a service broker. + parameters: + - description: The service broker GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBrokerUpdate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBroker' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceBroker' + description: Accepted + headers: + Location: + description: URL to the created job + explode: false + schema: + type: string + style: simple + summary: Update a service broker + /v3/service_credential_bindings: + post: + description: | + This endpoint creates a new service credential binding. Service credential bindings can be of type app or key; key is only valid for managed service instances. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_credential_bindings_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceCredentialBinding' + description: Created for User-Provided Service Instance + "202": + description: Accepted for Managed Service Instance + headers: + Location: + explode: false + schema: + format: uri + type: string + style: simple + summary: Create a service credential binding + /v3/service_credential_bindings/{guid}: + delete: + description: This endpoint deletes a service credential binding. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted for Managed Service Instance + headers: + Location: + explode: false + schema: + format: uri + type: string + style: simple + "204": + description: No Content for User-provided Service Instances + summary: Delete a service credential binding + get: + description: This endpoint retrieves the service credential binding by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: include + required: false + schema: + items: + enum: + - app + - service_instance + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceCredentialBinding' + description: OK + summary: Get a service credential binding + patch: + description: This endpoint updates a service credential binding with labels + and annotations. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_credential_bindings__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceCredentialBinding' + description: OK + summary: Update a service credential binding + /v3/service_credential_bindings/{guid}/details: + get: + description: This endpoint retrieves the service credential binding details. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_credential_bindings__guid__details_get_200_response' + description: OK + summary: Get a service credential binding details + /v3/service_credential_bindings/{guid}/parameters: + get: + description: Queries the Service Broker for the parameters associated with this + service credential binding. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + summary: Get parameters for a service credential binding + /v3/service_instances: + get: + description: "Retrieves the service instances the user has access to, including\ + \ access granted by service instance sharing." + parameters: + - description: Comma-delimited list of service instance names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service instance guids to filter by + explode: true + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter by type + explode: true + in: query + name: type + required: false + schema: + enum: + - managed + - user-provided + type: string + style: form + - description: Comma-delimited list of space guids to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization guids to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service plan guids to filter by + explode: true + in: query + name: service_plan_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service plan names to filter by + explode: true + in: query + name: service_plan_names + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: Value to sort by + explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + - name + - -created_at + - -updated_at + - -name + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Timestamp to filter by + explode: true + in: query + name: created_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + - description: Timestamp to filter by + explode: true + in: query + name: updated_ats + required: false + schema: + items: + format: date-time + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_instances_get_200_response' + description: List of service instances + summary: Retrieve service instances + /v3/service_instances/{guid}: + patch: + description: Updates a service instance with the provided attributes. + parameters: + - description: GUID of the service instance + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_instances__guid__patch_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceInstance' + description: Service instance updated + "202": + description: Service instance update initiated + headers: + Location: + description: URL of the job status + explode: false + schema: + type: string + style: simple + summary: Update a service instance + /v3/service_instances/{guid}/credentials: + get: + description: Retrieves the credentials for a user-provided service instance. + parameters: + - description: GUID of the service instance + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + type: string + type: object + description: Credentials retrieved + summary: Get credentials for a user-provided service instance + /v3/service_instances/{guid}/relationships/shared_spaces: + post: + description: Shares the service instance with the specified spaces. + parameters: + - description: GUID of the service instance + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_instances__guid__relationships_shared_spaces_post_request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_instances__guid__relationships_shared_spaces_post_request' + description: Service instance shared + summary: Share a service instance to other spaces + /v3/service_instances/{guid}/relationships/shared_spaces/usage_summary: + get: + description: Returns the number of bound apps in spaces where the service instance + has been shared to. + parameters: + - description: GUID of the service instance + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UsageSummary' + description: Usage summary retrieved + summary: Get usage summary in shared spaces + /v3/service_instances/{guid}/relationships/shared_spaces/{space_guid}: + delete: + description: Unshares the service instance from the specified space. + parameters: + - description: GUID of the service instance + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: GUID of the space + explode: false + in: path + name: space_guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: Service instance unshared + summary: Unshare a service instance from another space + /v3/service_offerings: + get: + description: Retrieves the service offerings the user has access to. + parameters: + - description: Comma-delimited list of names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter by the available property; valid values are true or false + explode: true + in: query + name: available + required: false + schema: + type: boolean + style: form + - description: Comma-delimited list of service broker GUIDs to filter by + explode: true + in: query + name: service_broker_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service broker names to filter by + explode: true + in: query + name: service_broker_names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space GUIDs to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization GUIDs to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at, name" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOfferingList' + description: OK + summary: List service offerings + post: + description: Creates a new service offering. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOfferingCreate' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOffering' + description: Created + summary: Create a service offering + /v3/service_offerings/{guid}: + delete: + description: Deletes a service offering. + parameters: + - description: The service offering GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: "If true, any service plans, instances, and bindings associated\ + \ with this service offering will also be deleted" + explode: true + in: query + name: purge + required: false + schema: + type: boolean + style: form + responses: + "204": + description: No Content + summary: Delete a service offering + get: + description: Retrieves the service offering by GUID. + parameters: + - description: The service offering GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOffering' + description: OK + summary: Get a service offering + patch: + description: Updates a service offering. + parameters: + - description: The service offering GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOfferingUpdate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceOffering' + description: OK + summary: Update a service offering + /v3/service_plans: + get: + description: Retrieves the service plans the user has access to. + parameters: + - description: Comma-delimited list of names to filter by + explode: true + in: query + name: names + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter by the available property; valid values are true or false + explode: true + in: query + name: available + required: false + schema: + type: boolean + style: form + - description: Comma-delimited list of IDs provided by the service broker for + the service plan to filter by + explode: true + in: query + name: broker_catalog_ids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of space GUIDs to filter by + explode: true + in: query + name: space_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of organization GUIDs to filter by + explode: true + in: query + name: organization_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service broker GUIDs to filter by + explode: true + in: query + name: service_broker_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service broker names to filter by + explode: true + in: query + name: service_broker_names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service Offering GUIDs to filter by + explode: true + in: query + name: service_offering_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service Offering names to filter by + explode: true + in: query + name: service_offering_names + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of service Instance GUIDs to filter by + explode: true + in: query + name: service_instance_guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Optionally include a list of related resources in the response; + valid values are space.organization and service_offering + explode: true + in: query + name: include + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + type: integer + style: form + - description: Number of results per page; valid values are 1 through 5000 + explode: true + in: query + name: per_page + required: false + schema: + type: integer + style: form + - description: "Value to sort by. Defaults to ascending; prepend with - to sort\ + \ descending. Valid values are created_at, updated_at, name" + explode: true + in: query + name: order_by + required: false + schema: + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: Allowed values for fields + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanList' + description: OK + summary: List service plans + post: + description: Creates a new service plan. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanCreate' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlan' + description: Created + summary: Create a service plan + /v3/service_plans/{guid}: + delete: + description: Deletes a service plan. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: "If true, any service plans, instances, and bindings associated\ + \ with this service plan will also be deleted" + explode: true + in: query + name: purge + required: false + schema: + type: boolean + style: form + responses: + "204": + description: No Content + summary: Delete a service plan + get: + description: Retrieves the service plan by GUID. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlan' + description: OK + summary: Get a service plan + patch: + description: Updates a service plan. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanUpdate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlan' + description: OK + summary: Update a service plan + /v3/service_plans/{guid}/visibility: + get: + description: Retrieves the service plan visibility for a given plan. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanVisibility' + description: OK + summary: Get a service plan visibility + patch: + description: Updates a service plan visibility. Replaces the existing list of + organizations when the service plan is organization visible. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanVisibilityUpdate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanVisibility' + description: OK + summary: Update a service plan visibility + post: + description: Applies a service plan visibility. Appends to the existing list + of organizations when the service plan is organization visible. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanVisibilityApply' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePlanVisibility' + description: OK + summary: Apply a service plan visibility + /v3/service_plans/{guid}/visibility/{organization_guid}: + delete: + description: Removes an organization from a service plan visibility list of + organizations. Defined only for service plans which are organization-restricted. + parameters: + - description: The service plan GUID + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - description: The organization GUID + explode: false + in: path + name: organization_guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove organization from a service plan visibility + /v3/service_route_bindings: + get: + description: Retrieves the service route bindings the user has access to. + parameters: + - explode: false + in: query + name: route_guids + required: false + schema: + items: + type: string + type: array + style: form + - explode: false + in: query + name: service_instance_guids + required: false + schema: + items: + type: string + type: array + style: form + - explode: false + in: query + name: service_instance_names + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: false + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + - explode: false + in: query + name: include + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + - -created_at + - -updated_at + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_route_bindings_get_200_response' + description: OK + summary: List service route bindings + post: + description: | + Creates a new route service binding. The service instance and the route must be in the same space. + To bind a route to a user-provided service instance, the service instance must have the route_service_url property set. + To bind a route to a managed service instance, the service offering must be bindable, and the service offering must have route_forwarding set in the requires property. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_route_bindings_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceRouteBinding' + description: Created for User-Provided Service Instance + "202": + description: Accepted for Managed Service Instance + headers: + Location: + explode: false + schema: + format: uri + type: string + style: simple + summary: Create a service route binding + /v3/service_route_bindings/{guid}: + delete: + description: | + Deletes a service route binding. When deleting route bindings originating from user-provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted for Managed Service Instance + headers: + Location: + explode: false + schema: + format: uri + type: string + style: simple + "204": + description: No Content for User-provided Service Instances + summary: Delete a service route binding + get: + description: Retrieves the service route binding by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: include + required: false + schema: + items: + enum: + - route + - service_instance + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceRouteBinding' + description: OK + summary: Get a service route binding + patch: + description: Updates a service route binding with labels and annotations. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_route_bindings__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceRouteBinding' + description: OK + summary: Update a service route binding + /v3/service_route_bindings/{guid}/parameters: + get: + description: Queries the Service Broker for the parameters associated with this + service route binding. This endpoint is not available for User-Provided Service + Instances. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + additionalProperties: + type: string + type: object + description: OK + summary: Get parameters for a route binding + /v3/service_usage_events: + get: + description: Retrieve all service usage events the user has access to. + parameters: + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + type: string + style: form + - explode: true + in: query + name: after_guid + required: false + schema: + type: string + style: form + - explode: false + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - explode: false + in: query + name: service_instance_types + required: false + schema: + items: + enum: + - managed_service_instance + - user_provided_service_instance + type: string + type: array + style: form + - explode: false + in: query + name: service_offering_guids + required: false + schema: + items: + type: string + type: array + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_service_usage_events_get_200_response' + description: OK + summary: List service usage events + post: + description: | + Destroys all existing events. Populates new usage events, one for each existing service instance. + responses: + "200": + description: OK + summary: Purge and seed service usage events + /v3/service_usage_events/{guid}: + get: + description: Retrieve a service usage event by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceUsageEvent' + description: OK + summary: Get a service usage event + /v3/sidecars/{guid}: + delete: + description: Deletes a sidecar by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete a sidecar + get: + description: Retrieve a sidecar by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Sidecar' + description: OK + summary: Get a sidecar + patch: + description: Updates the attributes of a sidecar. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_sidecars__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Sidecar' + description: OK + summary: Update a sidecar + /v3/space_quotas: + get: + description: List all space quota resources that the user has permission to + view. + parameters: + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: names + required: false + schema: + type: string + style: form + - explode: true + in: query + name: organization_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: space_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_space_quotas_get_200_response' + description: OK + summary: List space quotas + post: + description: Create a new space quota scoped to a specific organization. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_space_quotas_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SpaceQuota' + description: Created + summary: Create a space quota + /v3/space_quotas/{guid}: + delete: + description: Delete a space quota by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted + summary: Delete a space quota + get: + description: Retrieve a space quota by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SpaceQuota' + description: OK + summary: Get a space quota + patch: + description: Update the specified parameters of a space quota. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_space_quotas__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SpaceQuota' + description: OK + summary: Update a space quota + /v3/space_quotas/{quota_guid}/relationships/spaces: + post: + description: Apply a space quota to one or more spaces. + parameters: + - explode: false + in: path + name: quota_guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_post_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_space_quotas__quota_guid__relationships_spaces_post_200_response' + description: OK + summary: Apply a space quota to spaces + /v3/space_quotas/{quota_guid}/relationships/spaces/{space_guid}: + delete: + description: Remove a space quota from a space. + parameters: + - explode: false + in: path + name: quota_guid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: space_guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove a space quota from a space + /v3/spaces: + get: + description: Retrieve all spaces the user has access to. + parameters: + - explode: true + in: query + name: names + required: false + schema: + type: string + style: form + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: organization_guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + - updated_at + - -updated_at + - name + - -name + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: include + required: false + schema: + enum: + - organization + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces_get_200_response' + description: OK + summary: List spaces + post: + description: Create a space. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Space' + description: Created + summary: Create a space + /v3/spaces/{guid}: + delete: + description: Delete a space by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: Accepted + summary: Delete a space + get: + description: Retrieve a space by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Space' + description: OK + summary: Get a space + patch: + description: Update a space. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Space' + description: OK + summary: Update a space + /v3/spaces/{guid}/features: + get: + description: "Retrieve the list of features for the specified space. Currently,\ + \ the only feature on spaces is the SSH feature." + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces__guid__features_get_200_response' + description: OK + summary: List space features + patch: + description: Update a space feature. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces__guid__features_patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SpaceFeature' + description: OK + summary: Update space features + /v3/spaces/{guid}/features/{name}: + get: + description: Retrieve a space feature by name. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SpaceFeature' + description: OK + summary: Get a space feature + /v3/spaces/{guid}/relationships/isolation_segment: + get: + description: Retrieve the isolation segment assigned to the space. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + description: OK + summary: Get assigned isolation segment + patch: + description: Assign or unassign an isolation segment to a space. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + description: OK + summary: Manage isolation segment + /v3/spaces/{guid}/users: + get: + description: Retrieve all users with a role in the specified space. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: guids + required: false + schema: + type: string + style: form + - explode: true + in: query + name: usernames + required: false + schema: + type: string + style: form + - explode: true + in: query + name: partial_usernames + required: false + schema: + type: string + style: form + - explode: true + in: query + name: origins + required: false + schema: + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - -created_at + - updated_at + - -updated_at + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_spaces__guid__users_get_200_response' + description: OK + summary: List users for a space + /v3/stacks: + get: + description: Retrieve all stacks. + parameters: + - explode: true + in: query + name: names + required: false + schema: + description: Comma-delimited list of stack names to filter by + type: string + style: form + - explode: true + in: query + name: default + required: false + schema: + description: "If true, only return the default stack" + type: boolean + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + default: 50 + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + description: Value to sort by. Defaults to ascending; prepend with - to + sort descending + enum: + - created_at + - updated_at + - name + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + description: A query string containing a list of label selector requirements + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + description: Timestamp to filter by. Supports filtering with relational + operators + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + description: Timestamp to filter by. Supports filtering with relational + operators + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_stacks_get_200_response' + description: OK + summary: List all stacks + post: + description: Create a new stack. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_stacks_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Stack' + description: Created + summary: Create a stack + /v3/stacks/{guid}: + delete: + description: Delete a stack by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete a stack + get: + description: Retrieve a stack by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Stack' + description: OK + summary: Get a stack by GUID + patch: + description: Update the specified parameters of a stack. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_revisions__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Stack' + description: OK + summary: Update a stack + /v3/stacks/{guid}/apps: + get: + description: Retrieve all apps using a given stack. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + default: 50 + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + description: Value to sort by. Defaults to ascending; prepend with - to + sort descending + enum: + - created_at + - updated_at + - name + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + description: A query string containing a list of label selector requirements + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + description: Timestamp to filter by. Supports filtering with relational + operators + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + description: Timestamp to filter by. Supports filtering with relational + operators + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_stacks__guid__apps_get_200_response' + description: OK + summary: List apps on a stack + /v3/tasks: + get: + description: Retrieve all tasks the user has access to. + parameters: + - explode: true + in: query + name: guids + required: false + schema: + description: Comma-delimited list of task guids to filter by + type: string + style: form + - explode: true + in: query + name: names + required: false + schema: + description: Comma-delimited list of task names to filter by + type: string + style: form + - explode: true + in: query + name: states + required: false + schema: + description: Comma-delimited list of task states to filter by + type: string + style: form + - explode: true + in: query + name: app_guids + required: false + schema: + description: Comma-delimited list of app guids to filter by + type: string + style: form + - explode: true + in: query + name: space_guids + required: false + schema: + description: Comma-delimited list of space guids to filter by + type: string + style: form + - explode: true + in: query + name: organization_guids + required: false + schema: + description: Comma-delimited list of organization guids to filter by + type: string + style: form + - explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: per_page + required: false + schema: + default: 50 + maximum: 5000 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: order_by + required: false + schema: + description: Value to sort by. Defaults to ascending; prepend with - to + sort descending + enum: + - created_at + - updated_at + type: string + style: form + - explode: true + in: query + name: label_selector + required: false + schema: + description: A query string containing a list of label selector requirements + type: string + style: form + - explode: true + in: query + name: created_ats + required: false + schema: + description: Timestamp to filter by + type: string + style: form + - explode: true + in: query + name: updated_ats + required: false + schema: + description: Timestamp to filter by + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_tasks_get_200_response' + description: OK + summary: List all tasks + /v3/tasks/{guid}: + get: + description: Retrieve a specific task by GUID. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Task' + description: OK + summary: Get a task + patch: + description: Update the specified parameters of a task. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_revisions__guid__patch_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Task' + description: OK + summary: Update a task + post: + description: Cancels a running task. + parameters: + - explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Task' + description: Accepted + summary: Cancel a task + /v3/users: + get: + description: Retrieve all users that the current user can see. + parameters: + - description: Comma-delimited list of user guids to filter by + explode: false + in: query + name: guids + required: false + schema: + items: + type: string + type: array + style: form + - description: Comma-delimited list of usernames to filter by. Mutually exclusive + with partial_usernames + explode: false + in: query + name: usernames + required: false + schema: + items: + type: string + type: array + style: form + - description: "Comma-delimited list of strings to search by. When using this\ + \ query parameter, all the users that contain the string provided in their\ + \ username will be returned. Mutually exclusive with usernames" + explode: false + in: query + name: partial_usernames + required: false + schema: + items: + type: string + type: array + style: form + - description: "Comma-delimited list of user origins (user stores) to filter\ + \ by, for example, users authenticated by UAA have the origin “uaa”; users\ + \ authenticated by an LDAP provider have the origin “ldap”; when filtering\ + \ by origins, usernames must be included" + explode: false + in: query + name: origins + required: false + schema: + items: + type: string + type: array + style: form + - description: Page to display; valid values are integers >= 1 + explode: true + in: query + name: page + required: false + schema: + minimum: 1 + type: integer + style: form + - description: Number of results per page + explode: true + in: query + name: per_page + required: false + schema: + maximum: 5000 + minimum: 1 + type: integer + style: form + - description: Value to sort by. Defaults to ascending; prepend with - to sort + descending + explode: true + in: query + name: order_by + required: false + schema: + enum: + - created_at + - updated_at + type: string + style: form + - description: A query string containing a list of label selector requirements + explode: true + in: query + name: label_selector + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: created_ats + required: false + schema: + type: string + style: form + - description: "Timestamp to filter by. When filtering on equality, several\ + \ comma-delimited timestamps may be passed. Also supports filtering with\ + \ relational operators" + explode: true + in: query + name: updated_ats + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_users_get_200_response' + description: List of users + security: + - bearerAuth: [] + summary: List users + post: + description: Creates a user in the Cloud Controller database. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_users_post_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: User created successfully + security: + - bearerAuth: [] + summary: Create a user + /v3/users/{guid}: + delete: + description: Delete a user by GUID. + parameters: + - description: Unique identifier for the user + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "202": + description: User deletion accepted + headers: + Location: + explode: false + schema: + description: URL to the job monitoring the deletion + type: string + style: simple + security: + - bearerAuth: [] + summary: Delete a user + get: + description: Retrieve a user by GUID. + parameters: + - description: Unique identifier for the user + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: User details + security: + - bearerAuth: [] + summary: Get a user + patch: + description: Update a user’s metadata. + parameters: + - description: Unique identifier for the user + explode: false + in: path + name: guid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_v3_users__guid__patch_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/User' + description: User updated successfully + security: + - bearerAuth: [] + summary: Update a user +components: + schemas: + App: + example: + lifecycle: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: buildpack + relationships: + current_droplet: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + space: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + processes: https://openapi-generator.tech + droplets: https://openapi-generator.tech + start: https://openapi-generator.tech + current_droplet: https://openapi-generator.tech + packages: https://openapi-generator.tech + space: https://openapi-generator.tech + environment_variables: https://openapi-generator.tech + features: https://openapi-generator.tech + stop: https://openapi-generator.tech + deployed_revisions: https://openapi-generator.tech + self: https://openapi-generator.tech + revisions: https://openapi-generator.tech + tasks: https://openapi-generator.tech + state: STOPPED + properties: + created_at: + description: The time with zone when the object was created + format: date-time + type: string + guid: + description: Unique identifier for the app + format: uuid + type: string + lifecycle: + $ref: '#/components/schemas/App_lifecycle' + links: + $ref: '#/components/schemas/App_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + description: Name of the app + type: string + relationships: + $ref: '#/components/schemas/App_relationships' + state: + description: Current desired state of the app + enum: + - STOPPED + - STARTED + type: string + updated_at: + description: The time with zone when the object was last updated + format: date-time + type: string + required: + - created_at + - guid + - lifecycle + - links + - metadata + - name + - relationships + - state + - updated_at + type: object + AppUsageEvent: + example: + app: + name: name + guid: guid + process: + guid: guid + type: type + created_at: 2000-01-23T04:56:07.000+00:00 + buildpack: + name: name + guid: guid + memory_in_mb_per_instance: + current: 5 + previous: 2 + space: + name: name + guid: guid + task: + name: name + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + state: + current: current + previous: previous + instance_count: + current: 1 + previous: 5 + properties: + app: + $ref: '#/components/schemas/AppUsageEvent_app' + buildpack: + $ref: '#/components/schemas/AppUsageEvent_buildpack' + created_at: + description: The time with zone when the event occurred + format: date-time + type: string + guid: + description: Unique identifier for the event + format: uuid + type: string + instance_count: + $ref: '#/components/schemas/AppUsageEvent_instance_count' + links: + $ref: '#/components/schemas/AppUsageEvent_links' + memory_in_mb_per_instance: + $ref: '#/components/schemas/AppUsageEvent_memory_in_mb_per_instance' + organization: + $ref: '#/components/schemas/AppUsageEvent_organization' + process: + $ref: '#/components/schemas/AppUsageEvent_process' + space: + $ref: '#/components/schemas/AppUsageEvent_space' + state: + $ref: '#/components/schemas/AppUsageEvent_state' + task: + $ref: '#/components/schemas/AppUsageEvent_task' + updated_at: + description: "Identical to created_at (events are created, never updated)" + format: date-time + type: string + type: object + AppUsageEventList: + example: + pagination: + next: + href: http://example.com/aeiou + last: + href: http://example.com/aeiou + previous: "{}" + total_pages: 0 + first: + href: http://example.com/aeiou + total_results: 6 + resources: + - app: + name: name + guid: guid + process: + guid: guid + type: type + created_at: 2000-01-23T04:56:07.000+00:00 + buildpack: + name: name + guid: guid + memory_in_mb_per_instance: + current: 5 + previous: 2 + space: + name: name + guid: guid + task: + name: name + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + state: + current: current + previous: previous + instance_count: + current: 1 + previous: 5 + - app: + name: name + guid: guid + process: + guid: guid + type: type + created_at: 2000-01-23T04:56:07.000+00:00 + buildpack: + name: name + guid: guid + memory_in_mb_per_instance: + current: 5 + previous: 2 + space: + name: name + guid: guid + task: + name: name + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + state: + current: current + previous: previous + instance_count: + current: 1 + previous: 5 + properties: + pagination: + $ref: '#/components/schemas/AppUsageEventList_pagination' + resources: + items: + $ref: '#/components/schemas/AppUsageEvent' + type: array + type: object + AppsQuota: + example: + total_memory_in_mb: 7 + log_rate_limit_in_bytes_per_second: 1 + per_app_tasks: 5 + total_instances: 2 + per_process_memory_in_mb: 5 + properties: + log_rate_limit_in_bytes_per_second: + description: Total log rate limit allowed for all the started processes + and running tasks in an organization + nullable: true + type: integer + per_app_tasks: + description: Maximum number of running tasks in an organization + nullable: true + type: integer + per_process_memory_in_mb: + description: Maximum memory for a single process or task + nullable: true + type: integer + total_instances: + description: Total instances of all the started processes allowed in an + organization + nullable: true + type: integer + total_memory_in_mb: + description: Total memory allowed for all the started processes and running + tasks in an organization + nullable: true + type: integer + type: object + AuditEvent: + example: + actor: + name: name + guid: guid + type: type + data: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + type: type + space: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + target: + name: name + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + type: type + properties: + actor: + $ref: '#/components/schemas/AuditEvent_actor' + created_at: + description: The time with zone when the object was created + format: date-time + type: string + data: + description: Additional information about event + type: object + guid: + description: Unique identifier for the event + format: uuid + type: string + links: + $ref: '#/components/schemas/AuditEvent_links' + organization: + $ref: '#/components/schemas/AuditEvent_organization' + space: + $ref: '#/components/schemas/AuditEvent_space' + target: + $ref: '#/components/schemas/AuditEvent_target' + type: + description: The type of the event + type: string + updated_at: + description: The time with zone when the object was last updated + format: date-time + type: string + type: object + AuditEventList: + example: + pagination: + next: "{}" + last: + href: http://example.com/aeiou + previous: "{}" + total_pages: 0 + first: + href: http://example.com/aeiou + total_results: 6 + resources: + - actor: + name: name + guid: guid + type: type + data: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + type: type + space: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + target: + name: name + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + type: type + - actor: + name: name + guid: guid + type: type + data: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: + href: http://example.com/aeiou + type: type + space: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + target: + name: name + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + type: type + properties: + pagination: + $ref: '#/components/schemas/AuditEventList_pagination' + resources: + items: + $ref: '#/components/schemas/AuditEvent' + type: array + type: object + Authentication: + example: + credentials: + password: password + username: username + type: type + properties: + credentials: + $ref: '#/components/schemas/Authentication_credentials' + type: + description: Type of the authentication mechanisms. Valid value is basic. + type: string + type: object + BrokerCatalog: + example: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + properties: + features: + $ref: '#/components/schemas/BrokerCatalog_features' + id: + type: string + maximum_polling_duration: + nullable: true + type: integer + metadata: + $ref: '#/components/schemas/BrokerCatalog_metadata' + type: object + Buildpack: + example: + buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + properties: + buildpack_name: + type: string + detect_output: + type: string + name: + type: string + version: + type: string + type: object + Cost: + example: + amount: 0.8008281904610115 + unit: unit + currency: currency + properties: + amount: + type: number + currency: + type: string + unit: + type: string + type: object + Destination: + example: + app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + properties: + app: + $ref: '#/components/schemas/Destination_app' + guid: + type: string + port: + type: integer + protocol: + nullable: true + type: string + weight: + nullable: true + type: integer + type: object + Domain: + example: + relationships: + organization: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + shared_organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + internal: true + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + supported_protocols: + - supported_protocols + - supported_protocols + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + organization: + href: href + self: + href: href + shared_organizations: + href: href + route_reservations: + href: href + router_group: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + created_at: + format: date-time + type: string + guid: + format: uuid + type: string + internal: + type: boolean + links: + $ref: '#/components/schemas/Domain_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/Domain_relationships' + router_group: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app_data' + supported_protocols: + items: + type: string + type: array + updated_at: + format: date-time + type: string + type: object + DomainsQuota: + example: + total_domains: 9 + properties: + total_domains: + description: Total number of domains that can be scoped to an organization + nullable: true + type: integer + type: object + Droplet: + example: + image: image + metadata: + annotations: "{}" + labels: "{}" + stack: stack + process_types: + key: process_types + created_at: 2000-01-23T04:56:07.000+00:00 + error: error + execution_metadata: execution_metadata + buildpacks: + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + lifecycle: + data: "{}" + type: buildpack + relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2000-01-23T04:56:07.000+00:00 + checksum: + type: sha256 + value: value + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + assign_current_droplet: + method: method + href: https://openapi-generator.tech + download: + href: https://openapi-generator.tech + package: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: AWAITING_UPLOAD + properties: + buildpacks: + items: + $ref: '#/components/schemas/Buildpack' + type: array + checksum: + $ref: '#/components/schemas/Droplet_checksum' + created_at: + format: date-time + type: string + error: + type: string + execution_metadata: + type: string + guid: + format: uuid + type: string + image: + type: string + lifecycle: + $ref: '#/components/schemas/Droplet_lifecycle' + links: + $ref: '#/components/schemas/Droplet_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + process_types: + additionalProperties: + type: string + type: object + relationships: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships' + stack: + type: string + state: + enum: + - AWAITING_UPLOAD + - PROCESSING_UPLOAD + - STAGED + - COPYING + - FAILED + - EXPIRED + type: string + updated_at: + format: date-time + type: string + type: object + EnvironmentVariableGroup: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + var: + key: var + name: name + links: + self: + href: https://openapi-generator.tech + properties: + links: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_spaces_get_200_response_links' + name: + type: string + updated_at: + format: date-time + type: string + var: + additionalProperties: + type: string + type: object + type: object + EnvironmentVariables: + example: + var: + key: var + links: + app: + href: href + self: + href: href + revision: + href: href + properties: + links: + $ref: '#/components/schemas/EnvironmentVariables_links' + var: + additionalProperties: + type: string + type: object + type: object + FeatureFlag: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + links: + self: + href: https://openapi-generator.tech + custom_error_message: custom_error_message + enabled: true + properties: + custom_error_message: + type: string + enabled: + type: boolean + links: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_spaces_get_200_response_links' + name: + type: string + updated_at: + format: date-time + type: string + type: object + HealthCheck: + example: + data: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + type: type + properties: + data: + $ref: '#/components/schemas/HealthCheck_data' + type: + type: string + type: object + IsolationSegment: + example: + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organizations: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/IsolationSegment_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + type: string + updated_at: + format: date-time + type: string + type: object + LastOperation: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: state + type: type + properties: + created_at: + format: date-time + type: string + description: + type: string + state: + type: string + type: + type: string + updated_at: + format: date-time + type: string + type: object + Link: + example: + method: method + href: https://openapi-generator.tech + properties: + href: + format: uri + type: string + method: + nullable: true + type: string + required: + - href + type: object + LinkWithMethod: + allOf: + - $ref: '#/components/schemas/Link' + - properties: + method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + required: + - method + type: object + Links: + example: + service_credential_bindings: + method: method + href: https://openapi-generator.tech + service_plan: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + shared_spaces: + method: method + href: https://openapi-generator.tech + service_route_bindings: + method: method + href: https://openapi-generator.tech + parameters: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + properties: + parameters: + $ref: '#/components/schemas/Link' + self: + $ref: '#/components/schemas/Link' + service_credential_bindings: + $ref: '#/components/schemas/Link' + service_plan: + $ref: '#/components/schemas/Link' + service_route_bindings: + $ref: '#/components/schemas/Link' + shared_spaces: + $ref: '#/components/schemas/Link' + space: + $ref: '#/components/schemas/Link' + type: object + MaintenanceInfo: + example: + description: description + version: version + properties: + description: + type: string + version: + type: string + type: object + ManagedServiceInstanceUpdate: + properties: + maintenance_info: + $ref: '#/components/schemas/__get_200_response_links_cloud_controller_v2_meta' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + parameters: + type: object + relationships: + $ref: '#/components/schemas/ManagedServiceInstanceUpdate_relationships' + tags: + items: + type: string + type: array + type: object + Metadata: + example: + annotations: "{}" + labels: "{}" + properties: + annotations: + type: object + labels: + type: object + type: object + Organization: + example: + relationships: + quota: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + quota: https://openapi-generator.tech + domains: https://openapi-generator.tech + self: https://openapi-generator.tech + default_domain: https://openapi-generator.tech + suspended: true + properties: + created_at: + format: date-time + type: string + guid: + format: uuid + type: string + links: + $ref: '#/components/schemas/Organization_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/Organization_relationships' + suspended: + type: boolean + updated_at: + format: date-time + type: string + type: object + OrganizationQuota: + example: + relationships: + organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + routes: + total_reserved_ports: 3 + total_routes: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + domains: + total_domains: 9 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 4 + total_service_keys: 7 + apps: + total_memory_in_mb: 7 + log_rate_limit_in_bytes_per_second: 1 + per_app_tasks: 5 + total_instances: 2 + per_process_memory_in_mb: 5 + properties: + apps: + $ref: '#/components/schemas/AppsQuota' + created_at: + description: The time with zone when the organization quota was created + format: date-time + type: string + domains: + $ref: '#/components/schemas/DomainsQuota' + guid: + description: Unique identifier for the organization quota + format: uuid + type: string + links: + $ref: '#/components/schemas/OrganizationQuota_links' + name: + description: Name of the quota + type: string + relationships: + $ref: '#/components/schemas/OrganizationQuota_relationships' + routes: + $ref: '#/components/schemas/RoutesQuota' + services: + $ref: '#/components/schemas/ServicesQuota' + updated_at: + description: The time with zone when the organization quota was last updated + format: date-time + type: string + type: object + OrganizationVisibility: + example: + name: name + guid: guid + properties: + guid: + description: Unique identifier for the organization where the plan is available + type: string + name: + description: Name of the organization where the plan is available + type: string + type: object + Package: + example: + relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: "{}" + labels: "{}" + data: + image: image + password: password + checksum: + type: type + value: value + error: error + username: username + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + download: + method: method + href: https://openapi-generator.tech + upload: + method: method + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: state + type: type + properties: + created_at: + description: The time with zone when the object was created + format: date-time + type: string + data: + $ref: '#/components/schemas/Package_data' + guid: + description: Unique identifier for the package + format: uuid + type: string + links: + $ref: '#/components/schemas/Package_links' + metadata: + $ref: '#/components/schemas/_v3_packages_post_request_metadata' + relationships: + $ref: '#/components/schemas/_v3_packages_post_request_relationships' + state: + description: "State of the package; valid states are AWAITING_UPLOAD, PROCESSING_UPLOAD,\ + \ READY, FAILED, COPYING, EXPIRED" + type: string + type: + description: "Package type; valid values are bits, docker" + type: string + updated_at: + description: The time with zone when the object was last updated + format: date-time + type: string + required: + - created_at + - guid + - state + - type + - updated_at + type: object + Pagination: + example: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + properties: + first: + $ref: '#/components/schemas/Link' + last: + $ref: '#/components/schemas/Link' + next: + $ref: '#/components/schemas/Link' + previous: + $ref: '#/components/schemas/listOrganizationQuotas_200_response_pagination_next' + total_pages: + type: integer + total_results: + type: integer + type: object + PlanSchemas: + example: + service_binding: + create: + parameters: "{}" + service_instance: + create: + parameters: "{}" + update: + parameters: "{}" + properties: + service_binding: + $ref: '#/components/schemas/PlanSchemas_service_binding' + service_instance: + $ref: '#/components/schemas/PlanSchemas_service_instance' + type: object + PlatformInfo: + example: + build: build + custom: + key: custom + name: name + description: description + cli_version: + minimum: minimum + recommended: recommended + links: + self: + href: https://openapi-generator.tech + support: + href: https://openapi-generator.tech + version: 0 + properties: + build: + type: string + cli_version: + $ref: '#/components/schemas/PlatformInfo_cli_version' + custom: + additionalProperties: + type: string + type: object + description: + type: string + links: + $ref: '#/components/schemas/PlatformInfo_links' + name: + type: string + version: + type: integer + type: object + Process: + example: + metadata: + annotations: "{}" + labels: "{}" + instances: 5 + created_at: 2000-01-23T04:56:07.000+00:00 + health_check: + data: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + type: type + type: type + version: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 7 + relationships: + app: + data: + guid: guid + revision: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + method: method + href: https://openapi-generator.tech + stats: + method: method + href: https://openapi-generator.tech + scale: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + readiness_health_check: + data: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + type: type + properties: + command: + nullable: true + type: string + created_at: + format: date-time + type: string + disk_in_mb: + type: integer + guid: + format: uuid + type: string + health_check: + $ref: '#/components/schemas/HealthCheck' + instances: + type: integer + links: + $ref: '#/components/schemas/Process_links' + log_rate_limit_in_bytes_per_second: + type: integer + memory_in_mb: + type: integer + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + readiness_health_check: + $ref: '#/components/schemas/ReadinessHealthCheck' + relationships: + $ref: '#/components/schemas/Process_relationships' + type: + type: string + updated_at: + format: date-time + type: string + version: + format: uuid + type: string + type: object + ProcessList: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - metadata: + annotations: "{}" + labels: "{}" + instances: 5 + created_at: 2000-01-23T04:56:07.000+00:00 + health_check: + data: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + type: type + type: type + version: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 7 + relationships: + app: + data: + guid: guid + revision: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + method: method + href: https://openapi-generator.tech + stats: + method: method + href: https://openapi-generator.tech + scale: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + readiness_health_check: + data: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + type: type + - metadata: + annotations: "{}" + labels: "{}" + instances: 5 + created_at: 2000-01-23T04:56:07.000+00:00 + health_check: + data: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + type: type + type: type + version: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 7 + relationships: + app: + data: + guid: guid + revision: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + method: method + href: https://openapi-generator.tech + stats: + method: method + href: https://openapi-generator.tech + scale: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + readiness_health_check: + data: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + type: type + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Process' + type: array + type: object + ProcessScale: + example: + log_rate_limit_in_bytes_per_second: 1 + instances: 6 + disk_in_mb: 0 + memory_in_mb: 5 + properties: + disk_in_mb: + type: integer + instances: + type: integer + log_rate_limit_in_bytes_per_second: + type: integer + memory_in_mb: + type: integer + type: object + ProcessStats: + example: + mem_quota: 3 + usage: + disk: 7 + mem: 1 + cpu: 4.145608029883936 + time: 2000-01-23T04:56:07.000+00:00 + log_rate: 1 + index: 1 + type: type + isolation_segment: isolation_segment + log_rate_limit: 9 + uptime: 2 + host: host + disk_quota: 0 + details: details + instance_ports: + - external: 5 + internal: 2 + internal_tls_proxy_port: 7 + external_tls_proxy_port: 5 + - external: 5 + internal: 2 + internal_tls_proxy_port: 7 + external_tls_proxy_port: 5 + state: state + fds_quota: 6 + instance_internal_ip: instance_internal_ip + properties: + details: + nullable: true + type: string + disk_quota: + nullable: true + type: integer + fds_quota: + type: integer + host: + type: string + index: + type: integer + instance_internal_ip: + type: string + instance_ports: + items: + $ref: '#/components/schemas/ProcessStats_instance_ports_inner' + type: array + isolation_segment: + nullable: true + type: string + log_rate_limit: + nullable: true + type: integer + mem_quota: + nullable: true + type: integer + state: + type: string + type: + type: string + uptime: + type: integer + usage: + $ref: '#/components/schemas/ProcessStats_usage' + type: object + ProcessUpdate: + example: + metadata: + annotations: "{}" + labels: "{}" + readiness_health_check: + data: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + type: type + health_check: + data: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + type: type + command: command + properties: + command: + nullable: true + type: string + health_check: + $ref: '#/components/schemas/HealthCheck' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + readiness_health_check: + $ref: '#/components/schemas/ReadinessHealthCheck' + type: object + ReadinessHealthCheck: + example: + data: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + type: type + properties: + data: + $ref: '#/components/schemas/ReadinessHealthCheck_data' + type: + type: string + type: object + ResourceMatchObject: + example: + mode: mode + path: path + checksum: + value: value + size_in_bytes: 0 + properties: + checksum: + $ref: '#/components/schemas/_v3_packages__guid__upload_post_request_resources_inner_checksum' + mode: + type: string + path: + type: string + size_in_bytes: + type: integer + type: object + ResourceMatchRequest: + example: + resources: + - mode: mode + path: path + checksum: + value: value + size_in_bytes: 0 + - mode: mode + path: path + checksum: + value: value + size_in_bytes: 0 + properties: + resources: + items: + $ref: '#/components/schemas/ResourceMatchObject' + type: array + type: object + ResourceMatchResponse: + example: + resources: + - mode: mode + path: path + checksum: + value: value + size_in_bytes: 0 + - mode: mode + path: path + checksum: + value: value + size_in_bytes: 0 + properties: + resources: + items: + $ref: '#/components/schemas/ResourceMatchObject' + type: array + type: object + Revision: + example: + relationships: + app: + data: + guid: guid + sidecars: + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + metadata: + annotations: + key: annotations + labels: + key: labels + processes: + key: + command: command + deployable: true + droplet: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: guid + links: + app: + href: href + environment_variables: + href: href + self: + href: href + version: 5 + properties: + created_at: + format: date-time + type: string + deployable: + type: boolean + description: + type: string + droplet: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + guid: + type: string + links: + $ref: '#/components/schemas/Revision_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + processes: + additionalProperties: + $ref: '#/components/schemas/Revision_processes_value' + type: object + relationships: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_relationships' + sidecars: + items: + $ref: '#/components/schemas/Sidecar' + type: array + updated_at: + format: date-time + type: string + version: + type: integer + type: object + RevisionsList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - relationships: + app: + data: + guid: guid + sidecars: + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + metadata: + annotations: + key: annotations + labels: + key: labels + processes: + key: + command: command + deployable: true + droplet: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: guid + links: + app: + href: href + environment_variables: + href: href + self: + href: href + version: 5 + - relationships: + app: + data: + guid: guid + sidecars: + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + metadata: + annotations: + key: annotations + labels: + key: labels + processes: + key: + command: command + deployable: true + droplet: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: guid + links: + app: + href: href + environment_variables: + href: href + self: + href: href + version: 5 + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/Revision' + type: array + type: object + Role: + example: + relationships: + organization: + data: + guid: guid + user: + data: + origin: origin + guid: guid + username: username + space: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: + href: href + self: + href: href + user: + href: href + type: type + properties: + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/Role_links' + relationships: + $ref: '#/components/schemas/Role_relationships' + type: + type: string + updated_at: + format: date-time + type: string + type: object + RolesList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - relationships: + organization: + data: + guid: guid + user: + data: + origin: origin + guid: guid + username: username + space: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: + href: href + self: + href: href + user: + href: href + type: type + - relationships: + organization: + data: + guid: guid + user: + data: + origin: origin + guid: guid + username: username + space: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: + href: href + self: + href: href + user: + href: href + type: type + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/Role' + type: array + type: object + Route: + example: + path: path + relationships: + domain: + data: + guid: guid + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + protocol: protocol + updated_at: 2000-01-23T04:56:07.000+00:00 + port: 5 + destinations: + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + host: host + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + url: url + properties: + created_at: + format: date-time + type: string + destinations: + items: + $ref: '#/components/schemas/Destination' + type: array + guid: + type: string + host: + nullable: true + type: string + links: + $ref: '#/components/schemas/Route_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + path: + nullable: true + type: string + port: + nullable: true + type: integer + protocol: + type: string + relationships: + $ref: '#/components/schemas/_v3_routes_post_request_relationships' + updated_at: + format: date-time + type: string + url: + type: string + type: object + RouteList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - path: path + relationships: + domain: + data: + guid: guid + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + protocol: protocol + updated_at: 2000-01-23T04:56:07.000+00:00 + port: 5 + destinations: + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + host: host + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + url: url + - path: path + relationships: + domain: + data: + guid: guid + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + protocol: protocol + updated_at: 2000-01-23T04:56:07.000+00:00 + port: 5 + destinations: + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + host: host + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + url: url + properties: + pagination: + $ref: '#/components/schemas/_v3_routes_get_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/Route' + type: array + type: object + RoutesQuota: + example: + total_reserved_ports: 3 + total_routes: 2 + properties: + total_reserved_ports: + description: Total number of ports that are reservable by routes in an organization + nullable: true + type: integer + total_routes: + description: Total number of routes allowed in an organization + nullable: true + type: integer + type: object + Rule: + example: + protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + properties: + code: + nullable: true + type: integer + description: + nullable: true + type: string + destination: + type: string + log: + nullable: true + type: boolean + ports: + nullable: true + type: string + protocol: + type: string + type: + nullable: true + type: integer + type: object + SecurityGroup: + example: + globally_enabled: + running: true + staging: true + relationships: + staging_spaces: + data: + - guid: guid + - guid: guid + running_spaces: + data: + - guid: guid + - guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + rules: + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + properties: + created_at: + format: date-time + type: string + globally_enabled: + $ref: '#/components/schemas/SecurityGroup_globally_enabled' + guid: + type: string + links: + $ref: '#/components/schemas/SecurityGroup_links' + name: + type: string + relationships: + $ref: '#/components/schemas/SecurityGroup_relationships' + rules: + items: + $ref: '#/components/schemas/Rule' + type: array + updated_at: + format: date-time + type: string + type: object + SecurityGroupCreate: + example: + globally_enabled: + running: true + staging: true + name: name + rules: + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + properties: + globally_enabled: + $ref: '#/components/schemas/SecurityGroup_globally_enabled' + name: + type: string + rules: + items: + $ref: '#/components/schemas/Rule' + type: array + type: object + SecurityGroupList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - globally_enabled: + running: true + staging: true + relationships: + staging_spaces: + data: + - guid: guid + - guid: guid + running_spaces: + data: + - guid: guid + - guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + rules: + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - globally_enabled: + running: true + staging: true + relationships: + staging_spaces: + data: + - guid: guid + - guid: guid + running_spaces: + data: + - guid: guid + - guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + rules: + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/SecurityGroup' + type: array + type: object + SecurityGroupUpdate: + example: + globally_enabled: + running: true + staging: true + name: name + rules: + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + - protocol: protocol + code: 0 + log: true + destination: destination + description: description + ports: ports + type: 6 + properties: + globally_enabled: + $ref: '#/components/schemas/SecurityGroupUpdate_globally_enabled' + name: + nullable: true + type: string + rules: + items: + $ref: '#/components/schemas/Rule' + nullable: true + type: array + type: object + ServiceBroker: + example: + relationships: + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + service_offerings: + href: href + space: + href: href + url: url + properties: + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/ServiceBroker_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceBroker_relationships' + updated_at: + format: date-time + type: string + url: + type: string + type: object + ServiceBrokerCreate: + example: + relationships: + space: + data: + guid: guid + name: name + url: url + authentication: + credentials: + password: password + username: username + type: type + properties: + authentication: + $ref: '#/components/schemas/Authentication' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceBroker_relationships' + url: + type: string + type: object + ServiceBrokerList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - relationships: + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + service_offerings: + href: href + space: + href: href + url: url + - relationships: + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: href + service_offerings: + href: href + space: + href: href + url: url + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/ServiceBroker' + type: array + type: object + ServiceBrokerUpdate: + example: + metadata: + annotations: "{}" + labels: "{}" + name: name + url: url + authentication: + credentials: + password: password + username: username + type: type + properties: + authentication: + $ref: '#/components/schemas/Authentication' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + url: + type: string + type: object + ServiceCredentialBinding: + example: + relationships: + app: + data: + guid: guid + service_instance: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + app: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + details: + href: https://openapi-generator.tech + service_instance: + href: https://openapi-generator.tech + parameters: + href: https://openapi-generator.tech + type: app + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: initial + type: create + properties: + created_at: + format: date-time + type: string + guid: + type: string + last_operation: + $ref: '#/components/schemas/ServiceCredentialBinding_last_operation' + links: + $ref: '#/components/schemas/ServiceCredentialBinding_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceCredentialBinding_relationships' + type: + enum: + - app + - key + type: string + updated_at: + format: date-time + type: string + type: object + ServiceInstance: + example: + upgrade_available: true + metadata: + annotations: "{}" + labels: "{}" + created_at: 2000-01-23T04:56:07.000+00:00 + type: managed + tags: + - tags + - tags + relationships: + service_plan: + data: + guid: guid + space: + data: + guid: guid + maintenance_info: + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_credential_bindings: + method: method + href: https://openapi-generator.tech + service_plan: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + shared_spaces: + method: method + href: https://openapi-generator.tech + service_route_bindings: + method: method + href: https://openapi-generator.tech + parameters: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + dashboard_url: dashboard_url + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: state + type: type + properties: + created_at: + format: date-time + type: string + dashboard_url: + type: string + guid: + type: string + last_operation: + $ref: '#/components/schemas/LastOperation' + links: + $ref: '#/components/schemas/Links' + maintenance_info: + $ref: '#/components/schemas/__get_200_response_links_cloud_controller_v2_meta' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceInstance_relationships' + tags: + items: + type: string + type: array + type: + enum: + - managed + - user-provided + type: string + updated_at: + format: date-time + type: string + upgrade_available: + type: boolean + type: object + ServiceOffering: + example: + shareable: true + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + documentation_url: documentation_url + tags: + - tags + - tags + relationships: + service_broker: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_broker: + href: href + service_plans: + href: href + self: + href: href + requires: + - requires + - requires + properties: + available: + type: boolean + broker_catalog: + $ref: '#/components/schemas/BrokerCatalog' + created_at: + format: date-time + type: string + description: + type: string + documentation_url: + type: string + guid: + type: string + links: + $ref: '#/components/schemas/ServiceOffering_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceOffering_relationships' + requires: + items: + type: string + type: array + shareable: + type: boolean + tags: + items: + type: string + type: array + updated_at: + format: date-time + type: string + type: object + ServiceOfferingCreate: + example: + shareable: true + relationships: + service_broker: + data: + guid: guid + available: true + name: name + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + documentation_url: documentation_url + requires: + - requires + - requires + tags: + - tags + - tags + properties: + available: + type: boolean + broker_catalog: + $ref: '#/components/schemas/BrokerCatalog' + description: + type: string + documentation_url: + type: string + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceOffering_relationships' + requires: + items: + type: string + type: array + shareable: + type: boolean + tags: + items: + type: string + type: array + type: object + ServiceOfferingList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - shareable: true + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + documentation_url: documentation_url + tags: + - tags + - tags + relationships: + service_broker: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_broker: + href: href + service_plans: + href: href + self: + href: href + requires: + - requires + - requires + - shareable: true + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + documentation_url: documentation_url + tags: + - tags + - tags + relationships: + service_broker: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_broker: + href: href + service_plans: + href: href + self: + href: href + requires: + - requires + - requires + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/ServiceOffering' + type: array + type: object + ServiceOfferingUpdate: + example: + shareable: true + relationships: + service_broker: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + available: true + name: name + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + documentation_url: documentation_url + requires: + - requires + - requires + tags: + - tags + - tags + properties: + available: + type: boolean + broker_catalog: + $ref: '#/components/schemas/BrokerCatalog' + description: + type: string + documentation_url: + type: string + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServiceOffering_relationships' + requires: + items: + type: string + type: array + shareable: + type: boolean + tags: + items: + type: string + type: array + type: object + ServicePlan: + example: + costs: + - amount: 0.8008281904610115 + unit: unit + currency: currency + - amount: 0.8008281904610115 + unit: unit + currency: currency + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + relationships: + service_offering: + data: + guid: guid + maintenance_info: + description: description + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + schemas: + service_binding: + create: + parameters: "{}" + service_instance: + create: + parameters: "{}" + update: + parameters: "{}" + name: name + guid: guid + links: + visibility: + href: href + self: + href: href + service_offering: + href: href + free: true + visibility_type: visibility_type + properties: + available: + type: boolean + broker_catalog: + $ref: '#/components/schemas/BrokerCatalog' + costs: + items: + $ref: '#/components/schemas/Cost' + type: array + created_at: + format: date-time + type: string + description: + type: string + free: + type: boolean + guid: + type: string + links: + $ref: '#/components/schemas/ServicePlan_links' + maintenance_info: + $ref: '#/components/schemas/MaintenanceInfo' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/ServicePlan_relationships' + schemas: + $ref: '#/components/schemas/PlanSchemas' + updated_at: + format: date-time + type: string + visibility_type: + description: "Denotes the visibility of the plan; can be public, admin,\ + \ organization, space" + type: string + type: object + ServicePlanCreate: + example: + costs: + - amount: 0.8008281904610115 + unit: unit + currency: currency + - amount: 0.8008281904610115 + unit: unit + currency: currency + relationships: + service_offering: + data: + guid: guid + schemas: + service_binding: + create: + parameters: "{}" + service_instance: + create: + parameters: "{}" + update: + parameters: "{}" + available: true + name: name + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + free: true + visibility_type: visibility_type + properties: + available: + type: boolean + broker_catalog: + $ref: '#/components/schemas/BrokerCatalog' + costs: + items: + $ref: '#/components/schemas/Cost' + type: array + description: + type: string + free: + type: boolean + name: + type: string + relationships: + $ref: '#/components/schemas/ServicePlan_relationships' + schemas: + $ref: '#/components/schemas/PlanSchemas' + visibility_type: + type: string + type: object + ServicePlanList: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - costs: + - amount: 0.8008281904610115 + unit: unit + currency: currency + - amount: 0.8008281904610115 + unit: unit + currency: currency + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + relationships: + service_offering: + data: + guid: guid + maintenance_info: + description: description + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + schemas: + service_binding: + create: + parameters: "{}" + service_instance: + create: + parameters: "{}" + update: + parameters: "{}" + name: name + guid: guid + links: + visibility: + href: href + self: + href: href + service_offering: + href: href + free: true + visibility_type: visibility_type + - costs: + - amount: 0.8008281904610115 + unit: unit + currency: currency + - amount: 0.8008281904610115 + unit: unit + currency: currency + metadata: + annotations: "{}" + labels: "{}" + available: true + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + broker_catalog: + features: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + metadata: + shareable: true + id: id + maximum_polling_duration: 0 + relationships: + service_offering: + data: + guid: guid + maintenance_info: + description: description + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + schemas: + service_binding: + create: + parameters: "{}" + service_instance: + create: + parameters: "{}" + update: + parameters: "{}" + name: name + guid: guid + links: + visibility: + href: href + self: + href: href + service_offering: + href: href + free: true + visibility_type: visibility_type + properties: + pagination: + $ref: '#/components/schemas/RevisionsList_pagination' + resources: + items: + $ref: '#/components/schemas/ServicePlan' + type: array + type: object + ServicePlanUpdate: + example: + metadata: + annotations: "{}" + labels: "{}" + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + type: object + ServicePlanVisibility: + example: + organizations: + - name: name + guid: guid + - name: name + guid: guid + type: type + space: + name: name + guid: guid + properties: + organizations: + items: + $ref: '#/components/schemas/OrganizationVisibility' + type: array + space: + $ref: '#/components/schemas/ServicePlanVisibility_space' + type: + description: "Denotes the visibility of the plan; can be public, admin,\ + \ organization, space" + type: string + type: object + ServicePlanVisibilityApply: + example: + organizations: + - guid: guid + - guid: guid + type: type + properties: + organizations: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + type: + description: "Denotes the visibility of the plan; can be public, admin,\ + \ organization" + type: string + type: object + ServicePlanVisibilityUpdate: + example: + organizations: + - guid: guid + - guid: guid + type: type + properties: + organizations: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + type: + description: "Denotes the visibility of the plan; can be public, admin,\ + \ organization" + type: string + type: object + ServiceRouteBinding: + example: + relationships: + route: + data: + guid: guid + service_instance: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + route_service_url: route_service_url + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + route: https://openapi-generator.tech + self: https://openapi-generator.tech + service_instance: https://openapi-generator.tech + parameters: https://openapi-generator.tech + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: initial + type: create + properties: + created_at: + format: date-time + type: string + guid: + type: string + last_operation: + $ref: '#/components/schemas/ServiceCredentialBinding_last_operation' + links: + $ref: '#/components/schemas/ServiceRouteBinding_links' + metadata: + $ref: '#/components/schemas/Metadata' + relationships: + $ref: '#/components/schemas/ServiceRouteBindingRelationships' + route_service_url: + type: string + updated_at: + format: date-time + type: string + type: object + ServiceRouteBindingRelationships: + example: + route: + data: + guid: guid + service_instance: + data: + guid: guid + properties: + route: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + service_instance: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + ServiceUsageEvent: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + service_plan: + name: name + guid: guid + service_broker: + name: name + guid: guid + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: https://openapi-generator.tech + state: state + service_instance: + name: name + guid: guid + type: type + service_offering: + name: name + guid: guid + space: + name: name + guid: guid + properties: + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/ServiceUsageEvent_links' + organization: + $ref: '#/components/schemas/Role_relationships_space_data' + service_broker: + $ref: '#/components/schemas/ServiceUsageEvent_service_broker' + service_instance: + $ref: '#/components/schemas/ServiceUsageEvent_service_instance' + service_offering: + $ref: '#/components/schemas/ServiceUsageEvent_service_broker' + service_plan: + $ref: '#/components/schemas/ServiceUsageEvent_service_broker' + space: + $ref: '#/components/schemas/ServiceUsageEvent_service_broker' + state: + nullable: true + type: string + updated_at: + format: date-time + type: string + type: object + ServicesQuota: + example: + paid_services_allowed: true + total_service_instances: 4 + total_service_keys: 7 + properties: + paid_services_allowed: + description: Specifies whether instances of paid service plans can be created + type: boolean + total_service_instances: + description: Total number of service instances allowed in an organization + nullable: true + type: integer + total_service_keys: + description: Total number of service keys allowed in an organization + nullable: true + type: integer + type: object + Sidecar: + example: + relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + properties: + command: + type: string + created_at: + format: date-time + type: string + guid: + type: string + memory_in_mb: + type: integer + name: + type: string + origin: + type: string + process_types: + items: + type: string + type: array + relationships: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_relationships' + updated_at: + format: date-time + type: string + type: object + Space: + example: + relationships: + organization: + data: + guid: guid + quota: + data: "{}" + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/Space_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/Space_relationships' + updated_at: + format: date-time + type: string + type: object + SpaceFeature: + example: + name: name + description: description + enabled: true + properties: + description: + type: string + enabled: + type: boolean + name: + type: string + type: object + SpaceQuota: + example: + relationships: + organization: + data: + guid: guid + spaces: + data: + - guid: guid + - guid: guid + routes: + total_reserved_ports: 2 + total_routes: 7 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: https://openapi-generator.tech + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 9 + total_service_keys: 3 + apps: + total_memory_in_mb: 5 + log_rate_limit_in_bytes_per_second: 0 + per_app_tasks: 6 + total_instances: 5 + per_process_memory_in_mb: 1 + properties: + apps: + $ref: '#/components/schemas/_v3_space_quotas_post_request_apps' + created_at: + format: date-time + type: string + guid: + type: string + links: + $ref: '#/components/schemas/SpaceQuota_links' + name: + type: string + relationships: + $ref: '#/components/schemas/SpaceQuota_relationships' + routes: + $ref: '#/components/schemas/_v3_space_quotas_post_request_routes' + services: + $ref: '#/components/schemas/_v3_space_quotas_post_request_services' + updated_at: + format: date-time + type: string + type: object + Stack: + example: + build_rootfs_image: build_rootfs_image + default: true + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + run_rootfs_image: run_rootfs_image + properties: + build_rootfs_image: + type: string + created_at: + format: date-time + type: string + default: + type: boolean + description: + type: string + guid: + format: uuid + type: string + links: + $ref: '#/components/schemas/ServiceUsageEvent_links' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + type: string + run_rootfs_image: + type: string + updated_at: + format: date-time + type: string + type: object + Task: + example: + metadata: + annotations: + key: annotations + labels: + key: labels + created_at: 2000-01-23T04:56:07.000+00:00 + droplet_guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 1 + result: + failure_reason: failure_reason + relationships: + app: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 6 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + name: name + sequence_id: 5 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: https://openapi-generator.tech + cancel: https://openapi-generator.tech + droplet: https://openapi-generator.tech + self: https://openapi-generator.tech + state: PENDING + properties: + command: + type: string + created_at: + format: date-time + type: string + disk_in_mb: + type: integer + droplet_guid: + format: uuid + type: string + guid: + format: uuid + type: string + links: + $ref: '#/components/schemas/Task_links' + log_rate_limit_in_bytes_per_second: + type: integer + memory_in_mb: + type: integer + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_relationships' + result: + $ref: '#/components/schemas/Task_result' + sequence_id: + type: integer + state: + enum: + - PENDING + - RUNNING + - SUCCEEDED + - CANCELING + - FAILED + type: string + updated_at: + format: date-time + type: string + type: object + ToOneRelationship: + example: + data: + guid: guid + properties: + data: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: object + UsageSummary: + example: + usage_summary: + - "{}" + - "{}" + links: + self: + href: https://openapi-generator.tech + properties: + links: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_spaces_get_200_response_links' + usage_summary: + items: + properties: + bound_app_count: + type: integer + space: + $ref: '#/components/schemas/Space' + type: object + properties: + memory_in_mb: + description: Sum of memory usage of all tasks in the RUNNING state and + all process instances in the STARTED state + type: integer + started_instances: + description: Total number of process instances in the STARTED state + type: integer + type: array + type: object + User: + example: + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + presentation_name: presentation_name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: https://openapi-generator.tech + username: username + properties: + created_at: + description: The time with zone when the object was created + format: date-time + type: string + guid: + description: Unique identifier for the user + type: string + links: + $ref: '#/components/schemas/User_links' + metadata: + $ref: '#/components/schemas/_v3_users_post_request_metadata' + origin: + description: The identity provider for the UAA user; will be null for UAA + clients + nullable: true + type: string + presentation_name: + description: "The name displayed for the user; for UAA users, this is the\ + \ same as the username. For UAA clients, this is the UAA client ID" + type: string + updated_at: + description: The time with zone when the object was last updated + format: date-time + type: string + username: + description: The name registered in UAA; will be null for UAA clients and + non-UAA users + nullable: true + type: string + type: object + UserProvidedServiceInstanceUpdate: + properties: + credentials: + type: object + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + route_service_url: + type: string + syslog_drain_url: + type: string + tags: + items: + type: string + type: array + type: object + __get_200_response_links_app_ssh_meta: + example: + host_key_fingerprint: host_key_fingerprint + oauth_client: oauth_client + properties: + host_key_fingerprint: + type: string + oauth_client: + type: string + type: object + __get_200_response_links_app_ssh: + example: + meta: + host_key_fingerprint: host_key_fingerprint + oauth_client: oauth_client + href: href + properties: + href: + type: string + meta: + $ref: '#/components/schemas/__get_200_response_links_app_ssh_meta' + type: object + __get_200_response_links_cloud_controller_v2_meta: + example: + version: version + properties: + version: + type: string + type: object + __get_200_response_links_cloud_controller_v2: + example: + meta: + version: version + href: href + properties: + href: + type: string + meta: + $ref: '#/components/schemas/__get_200_response_links_cloud_controller_v2_meta' + type: object + __get_200_response_links_log_cache: + example: + href: href + properties: + href: + type: string + type: object + __get_200_response_links: + example: + log_cache: + href: href + credhub: "{}" + network_policy_v0: + href: href + network_policy_v1: + href: href + login: + href: href + routing: + href: href + uaa: + href: href + app_ssh: + meta: + host_key_fingerprint: host_key_fingerprint + oauth_client: oauth_client + href: href + cloud_controller_v3: + meta: + version: version + href: href + logging: + href: href + self: + href: href + cloud_controller_v2: + meta: + version: version + href: href + log_stream: + href: href + properties: + app_ssh: + $ref: '#/components/schemas/__get_200_response_links_app_ssh' + cloud_controller_v2: + $ref: '#/components/schemas/__get_200_response_links_cloud_controller_v2' + cloud_controller_v3: + $ref: '#/components/schemas/__get_200_response_links_cloud_controller_v2' + credhub: + nullable: true + type: object + log_cache: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + log_stream: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + logging: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + login: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + network_policy_v0: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + network_policy_v1: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + routing: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + uaa: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + __get_200_response: + example: + links: + log_cache: + href: href + credhub: "{}" + network_policy_v0: + href: href + network_policy_v1: + href: href + login: + href: href + routing: + href: href + uaa: + href: href + app_ssh: + meta: + host_key_fingerprint: host_key_fingerprint + oauth_client: oauth_client + href: href + cloud_controller_v3: + meta: + version: version + href: href + logging: + href: href + self: + href: href + cloud_controller_v2: + meta: + version: version + href: href + log_stream: + href: href + properties: + links: + $ref: '#/components/schemas/__get_200_response_links' + type: object + _v3_get_200_response_links_service_instances: + example: + href: href + nullable: true + properties: + href: + type: string + type: object + _v3_get_200_response_links: + example: + roles: + href: href + service_instances: + href: href + service_offerings: + href: href + organization_quotas: + href: href + environment_variable_groups: + href: href + buildpacks: + href: href + routes: + href: href + service_usage_events: + href: href + app_usage_events: + href: href + resource_matches: + href: href + builds: + href: href + tasks: + href: href + apps: + href: href + info: + href: href + processes: + href: href + droplets: + href: href + stacks: + href: href + domains: + href: href + audit_events: + href: href + packages: + href: href + users: + href: href + security_groups: + href: href + space_quotas: + href: href + deployments: + href: href + feature_flags: + href: href + isolation_segments: + href: href + organizations: + href: href + service_plans: + href: href + spaces: + href: href + self: + href: href + service_brokers: + href: href + properties: + app_usage_events: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + apps: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + audit_events: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + buildpacks: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + builds: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + deployments: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + domains: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + droplets: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + environment_variable_groups: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + feature_flags: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + info: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + isolation_segments: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + organization_quotas: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + organizations: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + packages: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + processes: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + resource_matches: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + roles: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + routes: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + security_groups: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_brokers: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_instances: + $ref: '#/components/schemas/_v3_get_200_response_links_service_instances' + service_offerings: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_plans: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_usage_events: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + space_quotas: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + spaces: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + stacks: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + tasks: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + users: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + _v3_get_200_response: + example: + links: + roles: + href: href + service_instances: + href: href + service_offerings: + href: href + organization_quotas: + href: href + environment_variable_groups: + href: href + buildpacks: + href: href + routes: + href: href + service_usage_events: + href: href + app_usage_events: + href: href + resource_matches: + href: href + builds: + href: href + tasks: + href: href + apps: + href: href + info: + href: href + processes: + href: href + droplets: + href: href + stacks: + href: href + domains: + href: href + audit_events: + href: href + packages: + href: href + users: + href: href + security_groups: + href: href + space_quotas: + href: href + deployments: + href: href + feature_flags: + href: href + isolation_segments: + href: href + organizations: + href: href + service_plans: + href: href + spaces: + href: href + self: + href: href + service_brokers: + href: href + properties: + links: + $ref: '#/components/schemas/_v3_get_200_response_links' + type: object + _v3_apps_post_request_lifecycle_data: + description: Lifecycle data. + properties: + buildpacks: + description: List of buildpacks. + items: + type: string + type: array + type: object + _v3_apps_post_request_lifecycle: + description: Lifecycle of the app. + properties: + data: + $ref: '#/components/schemas/_v3_apps_post_request_lifecycle_data' + type: + description: Type of lifecycle. + enum: + - buildpack + - docker + type: string + type: object + _v3_apps_post_request_relationships_space_data: + example: + guid: guid + properties: + guid: + type: string + type: object + _v3_apps_post_request_relationships_space: + example: + data: + guid: guid + properties: + data: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: object + _v3_apps_post_request_relationships: + description: Relationships of the app. + properties: + space: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + _v3_apps_post_request: + properties: + environment_variables: + description: Environment variables for the app. + type: object + lifecycle: + $ref: '#/components/schemas/_v3_apps_post_request_lifecycle' + metadata: + description: Metadata of the app. + type: object + name: + description: Name of the app. + type: string + relationships: + $ref: '#/components/schemas/_v3_apps_post_request_relationships' + space_guid: + description: GUID of the space. + type: string + state: + description: Desired state of the app. + enum: + - STARTED + - STOPPED + type: string + required: + - name + - space_guid + type: object + _v3_apps__guid__patch_request_lifecycle_data: + example: + buildpacks: + - buildpacks + - buildpacks + stack: stack + properties: + buildpacks: + items: + type: string + type: array + stack: + type: string + type: object + _v3_apps__guid__patch_request_lifecycle: + description: "Lifecycle to be used when updating the app; note: data is a required\ + \ field in lifecycle if lifecycle is updated" + properties: + data: + $ref: '#/components/schemas/_v3_apps__guid__patch_request_lifecycle_data' + type: + type: string + type: object + _v3_apps__guid__patch_request_metadata: + properties: + annotations: + description: Annotations applied to the app + type: object + labels: + description: Labels applied to the app + type: object + type: object + _v3_apps__guid__patch_request: + properties: + lifecycle: + $ref: '#/components/schemas/_v3_apps__guid__patch_request_lifecycle' + metadata: + $ref: '#/components/schemas/_v3_apps__guid__patch_request_metadata' + name: + description: Name of the app + type: string + type: object + _v3_apps__guid__actions_restart_post_200_response_lifecycle: + example: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: type + properties: + data: + $ref: '#/components/schemas/_v3_apps__guid__patch_request_lifecycle_data' + type: + type: string + type: object + _v3_apps__guid__actions_restart_post_200_response_relationships: + example: + current_droplet: + data: + guid: guid + space: + data: + guid: guid + properties: + current_droplet: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + space: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + _v3_apps__guid__actions_restart_post_200_response: + example: + lifecycle: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: type + relationships: + current_droplet: + data: + guid: guid + space: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + key: + href: href + state: state + properties: + created_at: + format: date-time + type: string + guid: + type: string + lifecycle: + $ref: '#/components/schemas/_v3_apps__guid__actions_restart_post_200_response_lifecycle' + links: + additionalProperties: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + name: + type: string + relationships: + $ref: '#/components/schemas/_v3_apps__guid__actions_restart_post_200_response_relationships' + state: + type: string + updated_at: + format: date-time + type: string + type: object + _v3_apps__guid__droplets_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - image: image + metadata: + annotations: "{}" + labels: "{}" + stack: stack + process_types: + key: process_types + created_at: 2000-01-23T04:56:07.000+00:00 + error: error + execution_metadata: execution_metadata + buildpacks: + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + lifecycle: + data: "{}" + type: buildpack + relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2000-01-23T04:56:07.000+00:00 + checksum: + type: sha256 + value: value + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + assign_current_droplet: + method: method + href: https://openapi-generator.tech + download: + href: https://openapi-generator.tech + package: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: AWAITING_UPLOAD + - image: image + metadata: + annotations: "{}" + labels: "{}" + stack: stack + process_types: + key: process_types + created_at: 2000-01-23T04:56:07.000+00:00 + error: error + execution_metadata: execution_metadata + buildpacks: + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + lifecycle: + data: "{}" + type: buildpack + relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updated_at: 2000-01-23T04:56:07.000+00:00 + checksum: + type: sha256 + value: value + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + assign_current_droplet: + method: method + href: https://openapi-generator.tech + download: + href: https://openapi-generator.tech + package: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: AWAITING_UPLOAD + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Droplet' + type: array + type: object + _v3_apps__guid__droplets_current_get_200_response_buildpacks_inner: + example: + buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + properties: + buildpack_name: + type: string + detect_output: + type: string + name: + type: string + version: + type: string + type: object + _v3_apps__guid__droplets_current_get_200_response_checksum: + example: + type: type + value: value + properties: + type: + type: string + value: + type: string + type: object + _v3_apps__guid__droplets_current_get_200_response_lifecycle: + example: + data: "{}" + type: type + properties: + data: + type: object + type: + type: string + type: object + _v3_apps__guid__droplets_current_get_200_response_links_value: + example: + method: method + href: href + properties: + href: + type: string + method: + nullable: true + type: string + type: object + _v3_apps__guid__droplets_current_get_200_response_metadata: + example: + annotations: "{}" + labels: "{}" + properties: + annotations: + type: object + labels: + type: object + type: object + _v3_apps__guid__droplets_current_get_200_response_relationships: + example: + app: + data: + guid: guid + properties: + app: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + _v3_apps__guid__droplets_current_get_200_response: + example: + image: image + metadata: + annotations: "{}" + labels: "{}" + stack: stack + process_types: + key: process_types + created_at: 2000-01-23T04:56:07.000+00:00 + error: error + execution_metadata: execution_metadata + buildpacks: + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + - buildpack_name: buildpack_name + detect_output: detect_output + name: name + version: version + lifecycle: + data: "{}" + type: type + relationships: + app: + data: + guid: guid + updated_at: 2000-01-23T04:56:07.000+00:00 + checksum: + type: type + value: value + guid: guid + links: + key: + method: method + href: href + state: state + properties: + buildpacks: + items: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_buildpacks_inner' + type: array + checksum: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_checksum' + created_at: + format: date-time + type: string + error: + nullable: true + type: string + execution_metadata: + type: string + guid: + type: string + image: + nullable: true + type: string + lifecycle: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_lifecycle' + links: + additionalProperties: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_links_value' + type: object + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + process_types: + additionalProperties: + type: string + type: object + relationships: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_relationships' + stack: + type: string + state: + type: string + updated_at: + format: date-time + type: string + type: object + _v3_apps__guid__env_get_200_response_application_env_json_VCAP_APPLICATION_limits: + example: + fds: 0 + properties: + fds: + type: integer + type: object + _v3_apps__guid__env_get_200_response_application_env_json_VCAP_APPLICATION: + example: + uris: + - uris + - uris + application_name: application_name + space_name: space_name + name: name + application_uris: + - application_uris + - application_uris + space_id: space_id + limits: + fds: 0 + users: users + properties: + application_name: + type: string + application_uris: + items: + type: string + type: array + limits: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response_application_env_json_VCAP_APPLICATION_limits' + name: + type: string + space_id: + type: string + space_name: + type: string + uris: + items: + type: string + type: array + users: + nullable: true + type: string + type: object + _v3_apps__guid__env_get_200_response_application_env_json: + example: + VCAP_APPLICATION: + uris: + - uris + - uris + application_name: application_name + space_name: space_name + name: name + application_uris: + - application_uris + - application_uris + space_id: space_id + limits: + fds: 0 + users: users + properties: + VCAP_APPLICATION: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response_application_env_json_VCAP_APPLICATION' + type: object + _v3_apps__guid__env_get_200_response_system_env_json_VCAP_SERVICES_value_inner: + example: + instance_id: instance_id + instance_name: instance_name + credentials: + key: credentials + provider: provider + syslog_drain_url: syslog_drain_url + binding_name: binding_name + name: name + volume_mounts: + - volume_mounts + - volume_mounts + label: label + plan: plan + binding_id: binding_id + tags: + - tags + - tags + properties: + binding_id: + type: string + binding_name: + type: string + credentials: + additionalProperties: + type: string + type: object + instance_id: + type: string + instance_name: + type: string + label: + type: string + name: + type: string + plan: + type: string + provider: + nullable: true + type: string + syslog_drain_url: + type: string + tags: + items: + type: string + type: array + volume_mounts: + items: + type: string + type: array + type: object + _v3_apps__guid__env_get_200_response_system_env_json: + example: + VCAP_SERVICES: + key: + - instance_id: instance_id + instance_name: instance_name + credentials: + key: credentials + provider: provider + syslog_drain_url: syslog_drain_url + binding_name: binding_name + name: name + volume_mounts: + - volume_mounts + - volume_mounts + label: label + plan: plan + binding_id: binding_id + tags: + - tags + - tags + - instance_id: instance_id + instance_name: instance_name + credentials: + key: credentials + provider: provider + syslog_drain_url: syslog_drain_url + binding_name: binding_name + name: name + volume_mounts: + - volume_mounts + - volume_mounts + label: label + plan: plan + binding_id: binding_id + tags: + - tags + - tags + properties: + VCAP_SERVICES: + additionalProperties: + items: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response_system_env_json_VCAP_SERVICES_value_inner' + type: array + type: object + type: object + _v3_apps__guid__env_get_200_response: + example: + environment_variables: + key: environment_variables + system_env_json: + VCAP_SERVICES: + key: + - instance_id: instance_id + instance_name: instance_name + credentials: + key: credentials + provider: provider + syslog_drain_url: syslog_drain_url + binding_name: binding_name + name: name + volume_mounts: + - volume_mounts + - volume_mounts + label: label + plan: plan + binding_id: binding_id + tags: + - tags + - tags + - instance_id: instance_id + instance_name: instance_name + credentials: + key: credentials + provider: provider + syslog_drain_url: syslog_drain_url + binding_name: binding_name + name: name + volume_mounts: + - volume_mounts + - volume_mounts + label: label + plan: plan + binding_id: binding_id + tags: + - tags + - tags + staging_env_json: + key: staging_env_json + application_env_json: + VCAP_APPLICATION: + uris: + - uris + - uris + application_name: application_name + space_name: space_name + name: name + application_uris: + - application_uris + - application_uris + space_id: space_id + limits: + fds: 0 + users: users + running_env_json: + key: running_env_json + properties: + application_env_json: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response_application_env_json' + environment_variables: + additionalProperties: + type: string + type: object + running_env_json: + additionalProperties: + type: string + type: object + staging_env_json: + additionalProperties: + type: string + type: object + system_env_json: + $ref: '#/components/schemas/_v3_apps__guid__env_get_200_response_system_env_json' + type: object + _v3_apps__guid__environment_variables_get_200_response: + example: + var: + key: var + links: + key: + href: href + properties: + links: + additionalProperties: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + var: + additionalProperties: + type: string + type: object + type: object + _v3_apps__guid__environment_variables_patch_request: + properties: + var: + additionalProperties: + nullable: true + type: string + type: object + type: object + _v3_apps__guid__features__name__patch_request: + properties: + enabled: + description: Denotes whether or not the app feature should be enabled + type: boolean + type: object + _v3_apps__guid__permissions_get_200_response: + example: + read_sensitive_data: true + read_basic_data: true + properties: + read_basic_data: + type: boolean + read_sensitive_data: + type: boolean + type: object + _v3_apps__guid__relationships_current_droplet_get_200_response: + example: + data: + guid: guid + links: + key: + href: href + properties: + data: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + links: + additionalProperties: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + type: object + _v3_apps__guid__sidecars_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + - relationships: + app: + data: + guid: guid + process_types: + - process_types + - process_types + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + command: command + memory_in_mb: 1 + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Sidecar' + type: array + type: object + _v3_apps__guid__sidecars_post_request: + properties: + command: + type: string + memory_in_mb: + type: integer + name: + type: string + process_types: + items: + type: string + type: array + required: + - command + - name + - process_types + type: object + _v3_apps__guid__ssh_enabled_get_200_response: + example: + reason: reason + enabled: true + properties: + enabled: + type: boolean + reason: + type: string + type: object + _v3_apps__guid__tasks_post_request_metadata: + example: + annotations: + key: annotations + labels: + key: labels + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + _v3_apps__guid__tasks_post_request_template_process: + properties: + guid: + description: The guid of the process that will be used as a template + format: uuid + type: string + type: object + _v3_apps__guid__tasks_post_request_template: + properties: + process: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_template_process' + type: object + _v3_apps__guid__tasks_post_request: + properties: + command: + description: Command that will be executed; optional if a template.process.guid + is provided + type: string + disk_in_mb: + description: Amount of disk to allocate for the task in MB + type: integer + droplet_guid: + description: The guid of the droplet that will be used to run the command + format: uuid + type: string + log_rate_limit_in_bytes_per_second: + description: Amount of log rate to allocate for the task in bytes + type: integer + memory_in_mb: + description: Amount of memory to allocate for the task in MB + type: integer + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + description: Name of the task; auto-generated if not provided + type: string + template: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_template' + type: object + _v3_buildpacks__guid__upload_post_request: + properties: + bits: + format: binary + type: string + type: object + _v3_domains_get_200_response_pagination: + example: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + properties: + first: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + last: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + next: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + previous: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + total_pages: + type: integer + total_results: + type: integer + type: object + _v3_domains_get_200_response: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - relationships: + organization: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + shared_organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + internal: true + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + supported_protocols: + - supported_protocols + - supported_protocols + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + organization: + href: href + self: + href: href + shared_organizations: + href: href + route_reservations: + href: href + router_group: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - relationships: + organization: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + shared_organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + internal: true + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + supported_protocols: + - supported_protocols + - supported_protocols + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + organization: + href: href + self: + href: href + shared_organizations: + href: href + route_reservations: + href: href + router_group: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + pagination: + $ref: '#/components/schemas/_v3_domains_get_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/Domain' + type: array + type: object + _v3_domains_post_request_metadata: + properties: + annotations: + description: Annotations applied to the domain + type: object + labels: + description: Labels applied to the domain + type: object + type: object + _v3_domains_post_request_organization_data: + properties: + guid: + description: The organization guid + format: uuid + type: string + type: object + _v3_domains_post_request_organization: + properties: + data: + $ref: '#/components/schemas/_v3_domains_post_request_organization_data' + type: object + _v3_domains_post_request_router_group: + properties: + guid: + description: The desired router group guid + format: uuid + type: string + type: object + _v3_domains_post_request: + properties: + internal: + description: Whether the domain is used for internal traffic + type: boolean + metadata: + $ref: '#/components/schemas/_v3_domains_post_request_metadata' + name: + description: Name of the domain + type: string + organization: + $ref: '#/components/schemas/_v3_domains_post_request_organization' + router_group: + $ref: '#/components/schemas/_v3_domains_post_request_router_group' + shared_organizations: + items: + $ref: '#/components/schemas/_v3_domains_post_request_organization_data' + type: array + type: object + _v3_domains__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_domains_post_request_metadata' + type: object + _v3_domains__guid__relationships_shared_organizations_post_request: + properties: + data: + items: + $ref: '#/components/schemas/_v3_domains_post_request_organization_data' + type: array + type: object + _v3_domains__guid__relationships_shared_organizations_post_200_response: + example: + data: + - relationships: + quota: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + quota: https://openapi-generator.tech + domains: https://openapi-generator.tech + self: https://openapi-generator.tech + default_domain: https://openapi-generator.tech + suspended: true + - relationships: + quota: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + quota: https://openapi-generator.tech + domains: https://openapi-generator.tech + self: https://openapi-generator.tech + default_domain: https://openapi-generator.tech + suspended: true + properties: + data: + items: + $ref: '#/components/schemas/Organization' + type: array + type: object + _v3_droplets_post_request_relationships_app_data: + example: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + guid: + format: uuid + type: string + type: object + _v3_droplets_post_request_relationships_app: + example: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + data: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app_data' + type: object + _v3_droplets_post_request_relationships: + example: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + app: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app' + type: object + _v3_droplets_post_request: + properties: + relationships: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships' + required: + - relationships + type: object + _v3_environment_variable_groups__name__patch_request: + properties: + var: + additionalProperties: + type: string + type: object + type: object + _v3_feature_flags_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + links: + self: + href: https://openapi-generator.tech + custom_error_message: custom_error_message + enabled: true + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + links: + self: + href: https://openapi-generator.tech + custom_error_message: custom_error_message + enabled: true + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/FeatureFlag' + type: array + type: object + _v3_feature_flags__name__patch_request: + properties: + custom_error_message: + type: string + enabled: + type: boolean + type: object + _v3_isolation_segments_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organizations: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + - metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organizations: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/IsolationSegment' + type: array + type: object + _v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related: + example: + href: https://openapi-generator.tech + properties: + href: + format: uri + type: string + type: object + _v3_isolation_segments__guid__relationships_organizations_get_200_response_links: + example: + related: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + related: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + _v3_isolation_segments__guid__relationships_organizations_get_200_response: + example: + data: + - guid: guid + - guid: guid + links: + related: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + data: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + links: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links' + type: object + _v3_isolation_segments__guid__relationships_organizations_post_request: + example: + data: + - guid: guid + - guid: guid + properties: + data: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + type: object + _v3_isolation_segments__guid__relationships_spaces_get_200_response_links: + example: + self: + href: https://openapi-generator.tech + properties: + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + _v3_isolation_segments__guid__relationships_spaces_get_200_response: + example: + data: + - guid: guid + - guid: guid + links: + self: + href: https://openapi-generator.tech + properties: + data: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + links: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_spaces_get_200_response_links' + type: object + listOrganizationQuotas_200_response_pagination_next: + example: + href: https://openapi-generator.tech + nullable: true + properties: + href: + format: uri + type: string + type: object + listOrganizationQuotas_200_response_pagination: + example: + next: + href: https://openapi-generator.tech + last: + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + href: https://openapi-generator.tech + total_results: 6 + properties: + first: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + last: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + next: + $ref: '#/components/schemas/listOrganizationQuotas_200_response_pagination_next' + previous: + $ref: '#/components/schemas/listOrganizationQuotas_200_response_pagination_next' + total_pages: + type: integer + total_results: + type: integer + type: object + listOrganizationQuotas_200_response: + example: + pagination: + next: + href: https://openapi-generator.tech + last: + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + routes: + total_reserved_ports: 3 + total_routes: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + domains: + total_domains: 9 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 4 + total_service_keys: 7 + apps: + total_memory_in_mb: 7 + log_rate_limit_in_bytes_per_second: 1 + per_app_tasks: 5 + total_instances: 2 + per_process_memory_in_mb: 5 + - relationships: + organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + routes: + total_reserved_ports: 3 + total_routes: 2 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + domains: + total_domains: 9 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 4 + total_service_keys: 7 + apps: + total_memory_in_mb: 7 + log_rate_limit_in_bytes_per_second: 1 + per_app_tasks: 5 + total_instances: 2 + per_process_memory_in_mb: 5 + properties: + pagination: + $ref: '#/components/schemas/listOrganizationQuotas_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/OrganizationQuota' + type: array + type: object + createOrganizationQuota_request_apps: + properties: + log_rate_limit_in_bytes_per_second: + description: Total log rate limit allowed for all the started processes + and running tasks in an organization + nullable: true + type: integer + per_app_tasks: + description: Maximum number of running tasks in an organization + nullable: true + type: integer + per_process_memory_in_mb: + description: Maximum memory for a single process or task + nullable: true + type: integer + total_instances: + description: Total instances of all the started processes allowed in an + organization + nullable: true + type: integer + total_memory_in_mb: + description: Total memory allowed for all the started processes and running + tasks in an organization + nullable: true + type: integer + type: object + createOrganizationQuota_request_domains: + properties: + total_domains: + description: Total number of domains that can be scoped to an organization + nullable: true + type: integer + type: object + createOrganizationQuota_request_relationships_organizations_inner: + properties: + guid: + description: GUID of the organization + format: uuid + type: string + type: object + createOrganizationQuota_request_relationships: + properties: + organizations: + items: + $ref: '#/components/schemas/createOrganizationQuota_request_relationships_organizations_inner' + type: array + type: object + createOrganizationQuota_request_routes: + properties: + total_reserved_ports: + description: Total number of ports that are reservable by routes in an organization + nullable: true + type: integer + total_routes: + description: Total number of routes allowed in an organization + nullable: true + type: integer + type: object + createOrganizationQuota_request_services: + properties: + paid_services_allowed: + description: Specifies whether instances of paid service plans can be created + type: boolean + total_service_instances: + description: Total number of service instances allowed in an organization + nullable: true + type: integer + total_service_keys: + description: Total number of service keys allowed in an organization + nullable: true + type: integer + type: object + createOrganizationQuota_request: + properties: + apps: + $ref: '#/components/schemas/createOrganizationQuota_request_apps' + domains: + $ref: '#/components/schemas/createOrganizationQuota_request_domains' + name: + description: Name of the quota + type: string + relationships: + $ref: '#/components/schemas/createOrganizationQuota_request_relationships' + routes: + $ref: '#/components/schemas/createOrganizationQuota_request_routes' + services: + $ref: '#/components/schemas/createOrganizationQuota_request_services' + type: object + deleteOrganizationQuota_202_response: + example: + location: https://openapi-generator.tech + properties: + location: + description: URL to track the deletion job + format: uri + type: string + type: object + updateOrganizationQuota_request: + properties: + apps: + $ref: '#/components/schemas/AppsQuota' + domains: + $ref: '#/components/schemas/DomainsQuota' + name: + description: Name of the quota + type: string + routes: + $ref: '#/components/schemas/RoutesQuota' + services: + $ref: '#/components/schemas/ServicesQuota' + type: object + applyOrganizationQuotaToOrganizations_request: + properties: + data: + items: + $ref: '#/components/schemas/createOrganizationQuota_request_relationships_organizations_inner' + type: array + type: object + applyOrganizationQuotaToOrganizations_201_response_links: + example: + self: https://openapi-generator.tech + properties: + self: + description: URL of the applied quota relationship + format: uri + type: string + type: object + applyOrganizationQuotaToOrganizations_201_response: + example: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + properties: + data: + items: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app_data' + type: array + links: + $ref: '#/components/schemas/applyOrganizationQuotaToOrganizations_201_response_links' + type: object + createOrganization_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + suspended: + type: boolean + required: + - name + type: object + updateOrganization_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + suspended: + type: boolean + type: object + _v3_packages_get_200_response_pagination: + example: + next: https://openapi-generator.tech + last: + href: https://openapi-generator.tech + previous: https://openapi-generator.tech + total_pages: 0 + first: + href: https://openapi-generator.tech + total_results: 6 + properties: + first: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + last: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + next: + format: uri + nullable: true + type: string + previous: + format: uri + nullable: true + type: string + total_pages: + type: integer + total_results: + type: integer + type: object + _v3_packages_get_200_response: + example: + pagination: + next: https://openapi-generator.tech + last: + href: https://openapi-generator.tech + previous: https://openapi-generator.tech + total_pages: 0 + first: + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: "{}" + labels: "{}" + data: + image: image + password: password + checksum: + type: type + value: value + error: error + username: username + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + download: + method: method + href: https://openapi-generator.tech + upload: + method: method + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: state + type: type + - relationships: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: "{}" + labels: "{}" + data: + image: image + password: password + checksum: + type: type + value: value + error: error + username: username + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: + href: https://openapi-generator.tech + download: + method: method + href: https://openapi-generator.tech + upload: + method: method + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + state: state + type: type + properties: + pagination: + $ref: '#/components/schemas/_v3_packages_get_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/Package' + type: array + type: object + _v3_packages_post_request_data: + properties: + image: + description: Required when type is docker; the registry address of the image + type: string + password: + description: Optional when type is docker and accessing a secured registry + type: string + username: + description: Optional when type is docker and accessing a secured registry + type: string + type: object + _v3_packages_post_request_metadata: + example: + annotations: "{}" + labels: "{}" + properties: + annotations: + description: Annotations applied to the package + type: object + labels: + description: Labels applied to the package + type: object + type: object + _v3_packages_post_request_relationships_app_data: + example: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + guid: + description: GUID of the app + format: uuid + type: string + type: object + _v3_packages_post_request_relationships_app: + example: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + data: + $ref: '#/components/schemas/_v3_packages_post_request_relationships_app_data' + type: object + _v3_packages_post_request_relationships: + example: + app: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + app: + $ref: '#/components/schemas/_v3_packages_post_request_relationships_app' + type: object + _v3_packages_post_request: + properties: + data: + $ref: '#/components/schemas/_v3_packages_post_request_data' + metadata: + $ref: '#/components/schemas/_v3_packages_post_request_metadata' + relationships: + $ref: '#/components/schemas/_v3_packages_post_request_relationships' + type: + description: "Type of the package; valid values are bits, docker" + type: string + type: object + _v3_packages__guid__delete_202_response: + example: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + url: https://openapi-generator.tech + properties: + guid: + format: uuid + type: string + url: + format: uri + type: string + type: object + _v3_packages__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_packages_post_request_metadata' + password: + description: The password for the image's registry. Only possible for Docker + package. + type: string + username: + description: The username for the image's registry. Only possible for Docker + package. + type: string + type: object + _v3_packages__guid__upload_post_request_resources_inner_checksum: + example: + value: value + properties: + value: + type: string + type: object + _v3_packages__guid__upload_post_request_resources_inner: + properties: + checksum: + $ref: '#/components/schemas/_v3_packages__guid__upload_post_request_resources_inner_checksum' + path: + type: string + size_in_bytes: + type: integer + type: object + _v3_packages__guid__upload_post_request: + properties: + bits: + description: A binary zip file containing the package bits + format: binary + type: string + resources: + items: + $ref: '#/components/schemas/_v3_packages__guid__upload_post_request_resources_inner' + type: array + type: object + _v3_revisions__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + type: object + _v3_roles_post_request_relationships_user_data: + example: + origin: origin + guid: guid + username: username + properties: + guid: + type: string + origin: + type: string + username: + type: string + type: object + _v3_roles_post_request_relationships_user: + example: + data: + origin: origin + guid: guid + username: username + properties: + data: + $ref: '#/components/schemas/_v3_roles_post_request_relationships_user_data' + type: object + _v3_roles_post_request_relationships: + properties: + organization: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + space: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + user: + $ref: '#/components/schemas/_v3_roles_post_request_relationships_user' + type: object + _v3_roles_post_request: + properties: + relationships: + $ref: '#/components/schemas/_v3_roles_post_request_relationships' + type: + description: "Role to create, see valid role types" + type: string + type: object + _v3_routes_get_200_response_pagination: + example: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + properties: + first: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + last: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + next: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + previous: + $ref: '#/components/schemas/_v3_get_200_response_links_service_instances' + total_pages: + type: integer + total_results: + type: integer + type: object + _v3_routes_get_200_response: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - path: path + relationships: + domain: + data: + guid: guid + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + protocol: protocol + updated_at: 2000-01-23T04:56:07.000+00:00 + port: 5 + destinations: + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + host: host + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + url: url + - path: path + relationships: + domain: + data: + guid: guid + space: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + protocol: protocol + updated_at: 2000-01-23T04:56:07.000+00:00 + port: 5 + destinations: + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + - app: + process: + type: type + guid: guid + protocol: protocol + port: 1 + guid: guid + weight: 5 + host: host + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + url: url + properties: + pagination: + $ref: '#/components/schemas/_v3_routes_get_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/Route' + type: array + type: object + _v3_routes_post_request_relationships: + example: + domain: + data: + guid: guid + space: + data: + guid: guid + properties: + domain: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + space: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + _v3_routes_post_request: + properties: + host: + type: string + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + path: + type: string + port: + type: integer + relationships: + $ref: '#/components/schemas/_v3_routes_post_request_relationships' + type: object + _v3_service_credential_bindings_post_request_relationships: + properties: + app: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + service_instance: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + required: + - service_instance + type: object + _v3_service_credential_bindings_post_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + parameters: + type: object + relationships: + $ref: '#/components/schemas/_v3_service_credential_bindings_post_request_relationships' + type: + enum: + - app + - key + type: string + required: + - relationships + - type + type: object + _v3_service_credential_bindings__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + type: object + _v3_service_credential_bindings__guid__details_get_200_response: + example: + credentials: "{}" + syslog_drain_url: syslog_drain_url + volume_mounts: + - volume_mounts + - volume_mounts + properties: + credentials: + type: object + syslog_drain_url: + type: string + volume_mounts: + items: + type: string + type: array + type: object + _v3_service_instances_get_200_response: + example: + resources: + - upgrade_available: true + metadata: + annotations: "{}" + labels: "{}" + created_at: 2000-01-23T04:56:07.000+00:00 + type: managed + tags: + - tags + - tags + relationships: + service_plan: + data: + guid: guid + space: + data: + guid: guid + maintenance_info: + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_credential_bindings: + method: method + href: https://openapi-generator.tech + service_plan: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + shared_spaces: + method: method + href: https://openapi-generator.tech + service_route_bindings: + method: method + href: https://openapi-generator.tech + parameters: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + dashboard_url: dashboard_url + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: state + type: type + - upgrade_available: true + metadata: + annotations: "{}" + labels: "{}" + created_at: 2000-01-23T04:56:07.000+00:00 + type: managed + tags: + - tags + - tags + relationships: + service_plan: + data: + guid: guid + space: + data: + guid: guid + maintenance_info: + version: version + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + guid: guid + links: + service_credential_bindings: + method: method + href: https://openapi-generator.tech + service_plan: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + shared_spaces: + method: method + href: https://openapi-generator.tech + service_route_bindings: + method: method + href: https://openapi-generator.tech + parameters: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + dashboard_url: dashboard_url + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: state + type: type + properties: + resources: + items: + $ref: '#/components/schemas/ServiceInstance' + type: array + type: object + _v3_service_instances__guid__patch_request: + oneOf: + - $ref: '#/components/schemas/ManagedServiceInstanceUpdate' + - $ref: '#/components/schemas/UserProvidedServiceInstanceUpdate' + _v3_service_instances__guid__relationships_shared_spaces_post_request: + example: + data: + - relationships: + organization: + data: + guid: guid + quota: + data: "{}" + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + - relationships: + organization: + data: + guid: guid + quota: + data: "{}" + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + data: + items: + $ref: '#/components/schemas/Space' + type: array + type: object + _v3_service_route_bindings_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + route: + data: + guid: guid + service_instance: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + route_service_url: route_service_url + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + route: https://openapi-generator.tech + self: https://openapi-generator.tech + service_instance: https://openapi-generator.tech + parameters: https://openapi-generator.tech + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: initial + type: create + - relationships: + route: + data: + guid: guid + service_instance: + data: + guid: guid + metadata: + annotations: "{}" + labels: "{}" + route_service_url: route_service_url + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + route: https://openapi-generator.tech + self: https://openapi-generator.tech + service_instance: https://openapi-generator.tech + parameters: https://openapi-generator.tech + last_operation: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: initial + type: create + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/ServiceRouteBinding' + type: array + type: object + _v3_service_route_bindings_post_request: + properties: + metadata: + $ref: '#/components/schemas/Metadata' + parameters: + type: object + relationships: + $ref: '#/components/schemas/ServiceRouteBindingRelationships' + required: + - relationships + type: object + _v3_service_route_bindings__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/Metadata' + type: object + _v3_service_usage_events_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + service_plan: + name: name + guid: guid + service_broker: + name: name + guid: guid + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: https://openapi-generator.tech + state: state + service_instance: + name: name + guid: guid + type: type + service_offering: + name: name + guid: guid + space: + name: name + guid: guid + - updated_at: 2000-01-23T04:56:07.000+00:00 + organization: + guid: guid + service_plan: + name: name + guid: guid + service_broker: + name: name + guid: guid + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: https://openapi-generator.tech + state: state + service_instance: + name: name + guid: guid + type: type + service_offering: + name: name + guid: guid + space: + name: name + guid: guid + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/ServiceUsageEvent' + type: array + type: object + _v3_sidecars__guid__patch_request: + properties: + command: + type: string + memory_in_mb: + type: integer + name: + type: string + process_types: + items: + type: string + type: array + type: object + _v3_space_quotas_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + organization: + data: + guid: guid + spaces: + data: + - guid: guid + - guid: guid + routes: + total_reserved_ports: 2 + total_routes: 7 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: https://openapi-generator.tech + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 9 + total_service_keys: 3 + apps: + total_memory_in_mb: 5 + log_rate_limit_in_bytes_per_second: 0 + per_app_tasks: 6 + total_instances: 5 + per_process_memory_in_mb: 1 + - relationships: + organization: + data: + guid: guid + spaces: + data: + - guid: guid + - guid: guid + routes: + total_reserved_ports: 2 + total_routes: 7 + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + organization: https://openapi-generator.tech + self: https://openapi-generator.tech + services: + paid_services_allowed: true + total_service_instances: 9 + total_service_keys: 3 + apps: + total_memory_in_mb: 5 + log_rate_limit_in_bytes_per_second: 0 + per_app_tasks: 6 + total_instances: 5 + per_process_memory_in_mb: 1 + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/SpaceQuota' + type: array + type: object + _v3_space_quotas_post_request_apps: + example: + total_memory_in_mb: 5 + log_rate_limit_in_bytes_per_second: 0 + per_app_tasks: 6 + total_instances: 5 + per_process_memory_in_mb: 1 + properties: + log_rate_limit_in_bytes_per_second: + nullable: true + type: integer + per_app_tasks: + nullable: true + type: integer + per_process_memory_in_mb: + nullable: true + type: integer + total_instances: + nullable: true + type: integer + total_memory_in_mb: + nullable: true + type: integer + type: object + _v3_space_quotas_post_request_relationships: + properties: + organization: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + _v3_space_quotas_post_request_routes: + example: + total_reserved_ports: 2 + total_routes: 7 + properties: + total_reserved_ports: + nullable: true + type: integer + total_routes: + nullable: true + type: integer + type: object + _v3_space_quotas_post_request_services: + example: + paid_services_allowed: true + total_service_instances: 9 + total_service_keys: 3 + properties: + paid_services_allowed: + type: boolean + total_service_instances: + nullable: true + type: integer + total_service_keys: + nullable: true + type: integer + type: object + _v3_space_quotas_post_request: + properties: + apps: + $ref: '#/components/schemas/_v3_space_quotas_post_request_apps' + name: + type: string + relationships: + $ref: '#/components/schemas/_v3_space_quotas_post_request_relationships' + routes: + $ref: '#/components/schemas/_v3_space_quotas_post_request_routes' + services: + $ref: '#/components/schemas/_v3_space_quotas_post_request_services' + required: + - name + - relationships + type: object + _v3_space_quotas__guid__patch_request: + properties: + apps: + $ref: '#/components/schemas/_v3_space_quotas_post_request_apps' + name: + type: string + routes: + $ref: '#/components/schemas/_v3_space_quotas_post_request_routes' + services: + $ref: '#/components/schemas/_v3_space_quotas_post_request_services' + type: object + _v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links: + example: + self: self + properties: + self: + type: string + type: object + _v3_space_quotas__quota_guid__relationships_spaces_post_200_response: + example: + data: + - guid: guid + - guid: guid + links: + self: self + properties: + data: + items: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space_data' + type: array + links: + $ref: '#/components/schemas/_v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links' + type: object + _v3_spaces_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - relationships: + organization: + data: + guid: guid + quota: + data: "{}" + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + - relationships: + organization: + data: + guid: guid + quota: + data: "{}" + metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Space' + type: array + type: object + _v3_spaces_post_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + relationships: + $ref: '#/components/schemas/_v3_space_quotas_post_request_relationships' + required: + - name + - relationships + type: object + _v3_spaces__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_apps__guid__droplets_current_get_200_response_metadata' + name: + type: string + type: object + _v3_spaces__guid__features_get_200_response: + example: + resources: + - name: name + description: description + enabled: true + - name: name + description: description + enabled: true + properties: + resources: + items: + $ref: '#/components/schemas/SpaceFeature' + type: array + type: object + _v3_spaces__guid__features_patch_request: + properties: + enabled: + type: boolean + type: object + _v3_spaces__guid__users_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + presentation_name: presentation_name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: https://openapi-generator.tech + username: username + - metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + presentation_name: presentation_name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: https://openapi-generator.tech + username: username + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/User' + type: array + type: object + _v3_stacks_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - build_rootfs_image: build_rootfs_image + default: true + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + run_rootfs_image: run_rootfs_image + - build_rootfs_image: build_rootfs_image + default: true + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + self: https://openapi-generator.tech + run_rootfs_image: run_rootfs_image + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Stack' + type: array + type: object + _v3_stacks_post_request: + properties: + description: + description: Description of the stack; must be no longer than 250 characters + type: string + metadata: + $ref: '#/components/schemas/_v3_apps__guid__tasks_post_request_metadata' + name: + description: Name of the stack; must be unique and no longer than 250 characters + type: string + required: + - name + type: object + _v3_stacks__guid__apps_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - lifecycle: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: buildpack + relationships: + current_droplet: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + space: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + processes: https://openapi-generator.tech + droplets: https://openapi-generator.tech + start: https://openapi-generator.tech + current_droplet: https://openapi-generator.tech + packages: https://openapi-generator.tech + space: https://openapi-generator.tech + environment_variables: https://openapi-generator.tech + features: https://openapi-generator.tech + stop: https://openapi-generator.tech + deployed_revisions: https://openapi-generator.tech + self: https://openapi-generator.tech + revisions: https://openapi-generator.tech + tasks: https://openapi-generator.tech + state: STOPPED + - lifecycle: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: buildpack + relationships: + current_droplet: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + space: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + metadata: + annotations: + key: annotations + labels: + key: labels + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + processes: https://openapi-generator.tech + droplets: https://openapi-generator.tech + start: https://openapi-generator.tech + current_droplet: https://openapi-generator.tech + packages: https://openapi-generator.tech + space: https://openapi-generator.tech + environment_variables: https://openapi-generator.tech + features: https://openapi-generator.tech + stop: https://openapi-generator.tech + deployed_revisions: https://openapi-generator.tech + self: https://openapi-generator.tech + revisions: https://openapi-generator.tech + tasks: https://openapi-generator.tech + state: STOPPED + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/App' + type: array + type: object + _v3_tasks_get_200_response: + example: + pagination: + next: + method: method + href: https://openapi-generator.tech + last: + method: method + href: https://openapi-generator.tech + previous: + href: https://openapi-generator.tech + total_pages: 0 + first: + method: method + href: https://openapi-generator.tech + total_results: 6 + resources: + - metadata: + annotations: + key: annotations + labels: + key: labels + created_at: 2000-01-23T04:56:07.000+00:00 + droplet_guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 1 + result: + failure_reason: failure_reason + relationships: + app: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 6 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + name: name + sequence_id: 5 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: https://openapi-generator.tech + cancel: https://openapi-generator.tech + droplet: https://openapi-generator.tech + self: https://openapi-generator.tech + state: PENDING + - metadata: + annotations: + key: annotations + labels: + key: labels + created_at: 2000-01-23T04:56:07.000+00:00 + droplet_guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + command: command + memory_in_mb: 1 + result: + failure_reason: failure_reason + relationships: + app: + data: + guid: guid + log_rate_limit_in_bytes_per_second: 6 + updated_at: 2000-01-23T04:56:07.000+00:00 + disk_in_mb: 0 + name: name + sequence_id: 5 + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + links: + app: https://openapi-generator.tech + cancel: https://openapi-generator.tech + droplet: https://openapi-generator.tech + self: https://openapi-generator.tech + state: PENDING + properties: + pagination: + $ref: '#/components/schemas/Pagination' + resources: + items: + $ref: '#/components/schemas/Task' + type: array + type: object + _v3_users_get_200_response: + example: + pagination: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + resources: + - metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + presentation_name: presentation_name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: https://openapi-generator.tech + username: username + - metadata: + annotations: "{}" + labels: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + origin: origin + presentation_name: presentation_name + created_at: 2000-01-23T04:56:07.000+00:00 + guid: guid + links: + self: + href: https://openapi-generator.tech + username: username + properties: + pagination: + $ref: '#/components/schemas/_v3_routes_get_200_response_pagination' + resources: + items: + $ref: '#/components/schemas/User' + type: array + type: object + _v3_users_post_request_metadata: + example: + annotations: "{}" + labels: "{}" + properties: + annotations: + description: Annotations added to the user + type: object + labels: + description: Labels applied to the user + type: object + type: object + _v3_users_post_request: + properties: + guid: + description: "Unique identifier for the user. For UAA users this will match\ + \ the user ID of an existing UAA user’s GUID; in the case of UAA clients,\ + \ this will match the UAA client ID" + type: string + metadata: + $ref: '#/components/schemas/_v3_users_post_request_metadata' + type: object + _v3_users__guid__patch_request: + properties: + metadata: + $ref: '#/components/schemas/_v3_users_post_request_metadata' + type: object + App_lifecycle: + example: + data: + buildpacks: + - buildpacks + - buildpacks + stack: stack + type: buildpack + properties: + data: + $ref: '#/components/schemas/_v3_apps__guid__patch_request_lifecycle_data' + type: + example: buildpack + type: string + required: + - data + - type + type: object + App_links: + example: + processes: https://openapi-generator.tech + droplets: https://openapi-generator.tech + start: https://openapi-generator.tech + current_droplet: https://openapi-generator.tech + packages: https://openapi-generator.tech + space: https://openapi-generator.tech + environment_variables: https://openapi-generator.tech + features: https://openapi-generator.tech + stop: https://openapi-generator.tech + deployed_revisions: https://openapi-generator.tech + self: https://openapi-generator.tech + revisions: https://openapi-generator.tech + tasks: https://openapi-generator.tech + properties: + current_droplet: + $ref: '#/components/schemas/Link' + deployed_revisions: + $ref: '#/components/schemas/Link' + droplets: + $ref: '#/components/schemas/Link' + environment_variables: + $ref: '#/components/schemas/Link' + features: + $ref: '#/components/schemas/Link' + packages: + $ref: '#/components/schemas/Link' + processes: + $ref: '#/components/schemas/Link' + revisions: + $ref: '#/components/schemas/Link' + self: + $ref: '#/components/schemas/Link' + space: + $ref: '#/components/schemas/Link' + start: + $ref: '#/components/schemas/LinkWithMethod' + stop: + $ref: '#/components/schemas/LinkWithMethod' + tasks: + $ref: '#/components/schemas/Link' + type: object + App_relationships: + example: + current_droplet: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + space: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + current_droplet: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app' + space: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app' + required: + - space + type: object + AppUsageEvent_app: + example: + name: name + guid: guid + properties: + guid: + description: "Unique identifier of the app that this event pertains to,\ + \ if applicable" + nullable: true + type: string + name: + description: "Name of the app that this event pertains to, if applicable" + nullable: true + type: string + type: object + AppUsageEvent_buildpack: + example: + name: name + guid: guid + properties: + guid: + description: "Unique identifier of the buildpack that this event pertains\ + \ to, if applicable" + nullable: true + type: string + name: + description: "Name of the buildpack that this event pertains to, if applicable" + nullable: true + type: string + type: object + AppUsageEvent_instance_count: + example: + current: 1 + previous: 5 + properties: + current: + description: "Current instance count of the app that this event pertains\ + \ to, if applicable" + nullable: true + type: integer + previous: + description: "Previous instance count of the app that this event pertains\ + \ to, if applicable" + nullable: true + type: integer + type: object + AppUsageEvent_links_self: + example: + href: http://example.com/aeiou + properties: + href: + description: Link to the app usage event resource + format: url + type: string + type: object + AppUsageEvent_links: + example: + self: + href: http://example.com/aeiou + properties: + self: + $ref: '#/components/schemas/AppUsageEvent_links_self' + type: object + AppUsageEvent_memory_in_mb_per_instance: + example: + current: 5 + previous: 2 + properties: + current: + description: "Current memory in MB of the app that this event pertains to,\ + \ if applicable" + nullable: true + type: integer + previous: + description: "Previous memory in MB of the app that this event pertains\ + \ to, if applicable" + nullable: true + type: integer + type: object + AppUsageEvent_organization: + example: + guid: guid + properties: + guid: + description: "Unique identifier of the org that this event pertains to,\ + \ if applicable" + nullable: true + type: string + type: object + AppUsageEvent_process: + example: + guid: guid + type: type + properties: + guid: + description: "Unique identifier of the process that this event pertains\ + \ to, if applicable" + nullable: true + type: string + type: + description: "Type of the process that this event pertains to, if applicable" + nullable: true + type: string + type: object + AppUsageEvent_space: + example: + name: name + guid: guid + properties: + guid: + description: "Unique identifier of the space that this event pertains to,\ + \ if applicable" + nullable: true + type: string + name: + description: "Name of the space that this event pertains to, if applicable" + nullable: true + type: string + type: object + AppUsageEvent_state: + example: + current: current + previous: previous + properties: + current: + description: "Current state of the app that this event pertains to, if applicable" + nullable: true + type: string + previous: + description: "Previous state of the app that this event pertains to, if\ + \ applicable" + nullable: true + type: string + type: object + AppUsageEvent_task: + example: + name: name + guid: guid + properties: + guid: + description: "Unique identifier of the task that this event pertains to,\ + \ if applicable" + nullable: true + type: string + name: + description: "Name of the task that this event pertains to, if applicable" + nullable: true + type: string + type: object + AppUsageEventList_pagination_first: + example: + href: http://example.com/aeiou + properties: + href: + description: Link to the first page + format: url + type: string + type: object + AppUsageEventList_pagination_last: + example: + href: http://example.com/aeiou + properties: + href: + description: Link to the last page + format: url + type: string + type: object + AppUsageEventList_pagination_next: + example: + href: http://example.com/aeiou + properties: + href: + description: Link to the next page + format: url + type: string + type: object + AppUsageEventList_pagination: + example: + next: + href: http://example.com/aeiou + last: + href: http://example.com/aeiou + previous: "{}" + total_pages: 0 + first: + href: http://example.com/aeiou + total_results: 6 + properties: + first: + $ref: '#/components/schemas/AppUsageEventList_pagination_first' + last: + $ref: '#/components/schemas/AppUsageEventList_pagination_last' + next: + $ref: '#/components/schemas/AppUsageEventList_pagination_next' + previous: + description: "Link to the previous page, if applicable" + nullable: true + type: object + total_pages: + description: Total number of pages + type: integer + total_results: + description: Total number of results + type: integer + type: object + AuditEvent_actor: + example: + name: name + guid: guid + type: type + properties: + guid: + description: Unique identifier for the actor + type: string + name: + description: The name of the actor + type: string + type: + description: The actor type + type: string + type: object + AuditEvent_links_self: + example: + href: http://example.com/aeiou + properties: + href: + description: Link to the audit event resource + format: url + type: string + type: object + AuditEvent_links: + example: + self: + href: http://example.com/aeiou + properties: + self: + $ref: '#/components/schemas/AuditEvent_links_self' + type: object + AuditEvent_organization: + example: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + guid: + description: Unique identifier for the organization where the event occurred + format: uuid + type: string + type: object + AuditEvent_space: + example: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + guid: + description: Unique identifier for the space where the event occurred + format: uuid + type: string + type: object + AuditEvent_target: + example: + name: name + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + type: type + properties: + guid: + description: Unique identifier for the target + format: uuid + type: string + name: + description: The name of the target + type: string + type: + description: The target type + type: string + type: object + AuditEventList_pagination: + example: + next: "{}" + last: + href: http://example.com/aeiou + previous: "{}" + total_pages: 0 + first: + href: http://example.com/aeiou + total_results: 6 + properties: + first: + $ref: '#/components/schemas/AppUsageEventList_pagination_first' + last: + $ref: '#/components/schemas/AppUsageEventList_pagination_last' + next: + description: "Link to the next page, if applicable" + nullable: true + type: object + previous: + description: "Link to the previous page, if applicable" + nullable: true + type: object + total_pages: + description: Total number of pages + type: integer + total_results: + description: Total number of results + type: integer + type: object + Authentication_credentials: + example: + password: password + username: username + properties: + password: + description: The password to authenticate against the service broker. + type: string + username: + description: The username to authenticate against the service broker. + type: string + type: object + BrokerCatalog_features: + example: + allow_context_updates: true + bindable: true + plan_updateable: true + instances_retrievable: true + bindings_retrievable: true + properties: + allow_context_updates: + type: boolean + bindable: + type: boolean + bindings_retrievable: + type: boolean + instances_retrievable: + type: boolean + plan_updateable: + type: boolean + type: object + BrokerCatalog_metadata: + example: + shareable: true + properties: + shareable: + type: boolean + type: object + Destination_app_process: + example: + type: type + properties: + type: + type: string + type: object + Destination_app: + example: + process: + type: type + guid: guid + properties: + guid: + type: string + process: + $ref: '#/components/schemas/Destination_app_process' + type: object + Domain_links: + example: + organization: + href: href + self: + href: href + shared_organizations: + href: href + route_reservations: + href: href + properties: + organization: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + route_reservations: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + shared_organizations: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + Domain_relationships_shared_organizations: + example: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + data: + items: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app_data' + type: array + type: object + Domain_relationships: + example: + organization: + data: + guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + shared_organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + organization: + $ref: '#/components/schemas/_v3_droplets_post_request_relationships_app' + shared_organizations: + $ref: '#/components/schemas/Domain_relationships_shared_organizations' + type: object + Droplet_checksum: + example: + type: sha256 + value: value + properties: + type: + enum: + - sha256 + - sha1 + type: string + value: + type: string + type: object + Droplet_lifecycle: + example: + data: "{}" + type: buildpack + properties: + data: + type: object + type: + enum: + - buildpack + - docker + type: string + type: object + Droplet_links_assign_current_droplet: + example: + method: method + href: https://openapi-generator.tech + properties: + href: + format: uri + type: string + method: + type: string + type: object + Droplet_links: + example: + app: + href: https://openapi-generator.tech + assign_current_droplet: + method: method + href: https://openapi-generator.tech + download: + href: https://openapi-generator.tech + package: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + app: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + assign_current_droplet: + $ref: '#/components/schemas/Droplet_links_assign_current_droplet' + download: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + package: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + EnvironmentVariables_links: + example: + app: + href: href + self: + href: href + revision: + href: href + properties: + app: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + revision: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + HealthCheck_data: + example: + endpoint: endpoint + invocation_timeout: 1 + interval: 6 + timeout: 5 + properties: + endpoint: + nullable: true + type: string + interval: + nullable: true + type: integer + invocation_timeout: + nullable: true + type: integer + timeout: + nullable: true + type: integer + type: object + IsolationSegment_links: + example: + organizations: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + organizations: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + ManagedServiceInstanceUpdate_relationships: + properties: + service_plan: + $ref: '#/components/schemas/ToOneRelationship' + type: object + Organization_links: + example: + quota: https://openapi-generator.tech + domains: https://openapi-generator.tech + self: https://openapi-generator.tech + default_domain: https://openapi-generator.tech + properties: + default_domain: + format: uri + type: string + domains: + format: uri + type: string + quota: + format: uri + type: string + self: + format: uri + type: string + type: object + Organization_relationships: + example: + quota: + data: + guid: guid + properties: + quota: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + OrganizationQuota_links: + example: + self: https://openapi-generator.tech + properties: + self: + description: URL of the organization quota + format: uri + type: string + type: object + OrganizationQuota_relationships: + example: + organizations: + data: + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - guid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + organizations: + $ref: '#/components/schemas/Domain_relationships_shared_organizations' + type: object + Package_data_checksum: + example: + type: type + value: value + properties: + type: + description: "The checksum type, for example: sha256" + type: string + value: + description: The checksum value; this will be populated after bits are uploaded + nullable: true + type: string + type: object + Package_data: + example: + image: image + password: password + checksum: + type: type + value: value + error: error + username: username + properties: + checksum: + $ref: '#/components/schemas/Package_data_checksum' + error: + description: If an error occurs this field will contain the error message + nullable: true + type: string + image: + description: The registry address of the image (for Docker packages) + type: string + password: + description: The password for the image's registry (for Docker packages) + type: string + username: + description: The username for the image's registry (for Docker packages) + type: string + type: object + Package_links_app: + example: + href: https://openapi-generator.tech + properties: + href: + description: URL of the app + format: uri + type: string + type: object + Package_links_download: + example: + method: method + href: https://openapi-generator.tech + properties: + href: + description: URL to download the package + format: uri + type: string + method: + description: HTTP method for the download URL + type: string + type: object + Package_links_self: + example: + href: https://openapi-generator.tech + properties: + href: + description: URL of the package + format: uri + type: string + type: object + Package_links_upload: + example: + method: method + href: https://openapi-generator.tech + properties: + href: + description: URL to upload the package + format: uri + type: string + method: + description: HTTP method for the upload URL + type: string + type: object + Package_links: + example: + app: + href: https://openapi-generator.tech + download: + method: method + href: https://openapi-generator.tech + upload: + method: method + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + app: + $ref: '#/components/schemas/Package_links_app' + download: + $ref: '#/components/schemas/Package_links_download' + self: + $ref: '#/components/schemas/Package_links_self' + upload: + $ref: '#/components/schemas/Package_links_upload' + type: object + PlanSchemas_service_binding_create: + example: + parameters: "{}" + properties: + parameters: + type: object + type: object + PlanSchemas_service_binding: + example: + create: + parameters: "{}" + properties: + create: + $ref: '#/components/schemas/PlanSchemas_service_binding_create' + type: object + PlanSchemas_service_instance: + example: + create: + parameters: "{}" + update: + parameters: "{}" + properties: + create: + $ref: '#/components/schemas/PlanSchemas_service_binding_create' + update: + $ref: '#/components/schemas/PlanSchemas_service_binding_create' + type: object + PlatformInfo_cli_version: + example: + minimum: minimum + recommended: recommended + properties: + minimum: + type: string + recommended: + type: string + type: object + PlatformInfo_links: + example: + self: + href: https://openapi-generator.tech + support: + href: https://openapi-generator.tech + properties: + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + support: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + Process_links: + example: + app: + method: method + href: https://openapi-generator.tech + stats: + method: method + href: https://openapi-generator.tech + scale: + method: method + href: https://openapi-generator.tech + self: + method: method + href: https://openapi-generator.tech + space: + method: method + href: https://openapi-generator.tech + properties: + app: + $ref: '#/components/schemas/Link' + scale: + $ref: '#/components/schemas/Link' + self: + $ref: '#/components/schemas/Link' + space: + $ref: '#/components/schemas/Link' + stats: + $ref: '#/components/schemas/Link' + type: object + Process_relationships: + example: + app: + data: + guid: guid + revision: + data: + guid: guid + properties: + app: + $ref: '#/components/schemas/ToOneRelationship' + revision: + $ref: '#/components/schemas/ToOneRelationship' + type: object + ProcessStats_instance_ports_inner: + example: + external: 5 + internal: 2 + internal_tls_proxy_port: 7 + external_tls_proxy_port: 5 + properties: + external: + type: integer + external_tls_proxy_port: + type: integer + internal: + type: integer + internal_tls_proxy_port: + type: integer + type: object + ProcessStats_usage: + example: + disk: 7 + mem: 1 + cpu: 4.145608029883936 + time: 2000-01-23T04:56:07.000+00:00 + log_rate: 1 + properties: + cpu: + type: number + disk: + type: integer + log_rate: + type: integer + mem: + type: integer + time: + format: date-time + type: string + type: object + ReadinessHealthCheck_data: + example: + endpoint: endpoint + invocation_timeout: 3 + interval: 9 + properties: + endpoint: + nullable: true + type: string + interval: + nullable: true + type: integer + invocation_timeout: + nullable: true + type: integer + type: object + Revision_links: + example: + app: + href: href + environment_variables: + href: href + self: + href: href + properties: + app: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + environment_variables: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + Revision_processes_value: + example: + command: command + properties: + command: + type: string + type: object + RevisionsList_pagination: + example: + next: + href: href + last: + href: href + previous: + href: href + total_pages: 0 + first: + href: href + total_results: 6 + properties: + first: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + last: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + next: + $ref: '#/components/schemas/_v3_get_200_response_links_service_instances' + previous: + $ref: '#/components/schemas/_v3_get_200_response_links_service_instances' + total_pages: + type: integer + total_results: + type: integer + type: object + Role_links: + example: + organization: + href: href + self: + href: href + user: + href: href + properties: + organization: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + user: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + Role_relationships_space_data: + example: + guid: guid + nullable: true + properties: + guid: + type: string + type: object + Role_relationships_space: + example: + data: + guid: guid + properties: + data: + $ref: '#/components/schemas/Role_relationships_space_data' + type: object + Role_relationships: + example: + organization: + data: + guid: guid + user: + data: + origin: origin + guid: guid + username: username + space: + data: + guid: guid + properties: + organization: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + space: + $ref: '#/components/schemas/Role_relationships_space' + user: + $ref: '#/components/schemas/_v3_roles_post_request_relationships_user' + type: object + Route_links: + example: + destinations: + href: href + domain: + href: href + self: + href: href + space: + href: href + properties: + destinations: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + domain: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + space: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + SecurityGroup_globally_enabled: + example: + running: true + staging: true + properties: + running: + type: boolean + staging: + type: boolean + type: object + SecurityGroup_links: + example: + self: + href: href + properties: + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + SecurityGroup_relationships: + example: + staging_spaces: + data: + - guid: guid + - guid: guid + running_spaces: + data: + - guid: guid + - guid: guid + properties: + running_spaces: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_post_request' + staging_spaces: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_post_request' + type: object + SecurityGroupUpdate_globally_enabled: + example: + running: true + staging: true + properties: + running: + nullable: true + type: boolean + staging: + nullable: true + type: boolean + type: object + ServiceBroker_links: + example: + self: + href: href + service_offerings: + href: href + space: + href: href + properties: + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_offerings: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + space: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + ServiceBroker_relationships: + example: + space: + data: + guid: guid + properties: + space: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + ServiceCredentialBinding_last_operation: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + state: initial + type: create + properties: + created_at: + format: date-time + type: string + description: + type: string + state: + enum: + - initial + - in progress + - succeeded + - failed + type: string + type: + enum: + - create + - delete + type: string + updated_at: + format: date-time + type: string + type: object + ServiceCredentialBinding_links: + example: + app: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + details: + href: https://openapi-generator.tech + service_instance: + href: https://openapi-generator.tech + parameters: + href: https://openapi-generator.tech + properties: + app: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + details: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + parameters: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + service_instance: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + ServiceCredentialBinding_relationships: + example: + app: + data: + guid: guid + service_instance: + data: + guid: guid + properties: + app: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + service_instance: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + ServiceInstance_relationships: + example: + service_plan: + data: + guid: guid + space: + data: + guid: guid + properties: + service_plan: + $ref: '#/components/schemas/ToOneRelationship' + space: + $ref: '#/components/schemas/ToOneRelationship' + type: object + ServiceOffering_links: + example: + service_broker: + href: href + service_plans: + href: href + self: + href: href + properties: + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_broker: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_plans: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + ServiceOffering_relationships: + example: + service_broker: + data: + guid: guid + properties: + service_broker: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + ServicePlan_links: + example: + visibility: + href: href + self: + href: href + service_offering: + href: href + properties: + self: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + service_offering: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + visibility: + $ref: '#/components/schemas/__get_200_response_links_log_cache' + type: object + ServicePlan_relationships: + example: + service_offering: + data: + guid: guid + properties: + service_offering: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + type: object + ServicePlanVisibility_space: + example: + name: name + guid: guid + properties: + guid: + type: string + name: + type: string + type: object + ServiceRouteBinding_links: + example: + route: https://openapi-generator.tech + self: https://openapi-generator.tech + service_instance: https://openapi-generator.tech + parameters: https://openapi-generator.tech + properties: + parameters: + format: uri + type: string + route: + format: uri + type: string + self: + format: uri + type: string + service_instance: + format: uri + type: string + type: object + ServiceUsageEvent_links: + example: + self: https://openapi-generator.tech + properties: + self: + format: uri + type: string + type: object + ServiceUsageEvent_service_broker: + example: + name: name + guid: guid + nullable: true + properties: + guid: + type: string + name: + type: string + type: object + ServiceUsageEvent_service_instance: + example: + name: name + guid: guid + type: type + nullable: true + properties: + guid: + type: string + name: + type: string + type: + type: string + type: object + Space_links: + example: + features: + href: https://openapi-generator.tech + apply_manifest: + method: method + href: https://openapi-generator.tech + organization: + href: https://openapi-generator.tech + self: + href: https://openapi-generator.tech + properties: + apply_manifest: + $ref: '#/components/schemas/Droplet_links_assign_current_droplet' + features: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + organization: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + self: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related' + type: object + Space_relationships_quota: + example: + data: "{}" + nullable: true + properties: + data: + nullable: true + type: object + type: object + Space_relationships: + example: + organization: + data: + guid: guid + quota: + data: "{}" + properties: + organization: + $ref: '#/components/schemas/ToOneRelationship' + quota: + $ref: '#/components/schemas/Space_relationships_quota' + type: object + SpaceQuota_links: + example: + organization: https://openapi-generator.tech + self: https://openapi-generator.tech + properties: + organization: + format: uri + type: string + self: + format: uri + type: string + type: object + SpaceQuota_relationships: + example: + organization: + data: + guid: guid + spaces: + data: + - guid: guid + - guid: guid + properties: + organization: + $ref: '#/components/schemas/_v3_apps_post_request_relationships_space' + spaces: + $ref: '#/components/schemas/_v3_isolation_segments__guid__relationships_organizations_post_request' + type: object + Task_links: + example: + app: https://openapi-generator.tech + cancel: https://openapi-generator.tech + droplet: https://openapi-generator.tech + self: https://openapi-generator.tech + properties: + app: + format: uri + type: string + cancel: + format: uri + type: string + droplet: + format: uri + type: string + self: + format: uri + type: string + type: object + Task_result: + example: + failure_reason: failure_reason + properties: + failure_reason: + type: string + type: object + User_links_self: + example: + href: https://openapi-generator.tech + format: uri + properties: + href: + format: uri + type: string + type: object + User_links: + example: + self: + href: https://openapi-generator.tech + properties: + self: + $ref: '#/components/schemas/User_links_self' + type: object + securitySchemes: + bearerAuth: + scheme: bearer + type: http diff --git a/api_app_usage_events.go b/api_app_usage_events.go new file mode 100644 index 0000000..4d47dd9 --- /dev/null +++ b/api_app_usage_events.go @@ -0,0 +1,436 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +type AppUsageEventsAPI interface { + + /* + V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost Purge and seed app usage events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest + */ + V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost(ctx context.Context) ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest + + // V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostExecute executes the request + // @return map[string]interface{} + V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostExecute(r ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest) (map[string]interface{}, *http.Response, error) + + /* + V3AppUsageEventsGet List app usage events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppUsageEventsGetRequest + */ + V3AppUsageEventsGet(ctx context.Context) ApiV3AppUsageEventsGetRequest + + // V3AppUsageEventsGetExecute executes the request + // @return AppUsageEventList + V3AppUsageEventsGetExecute(r ApiV3AppUsageEventsGetRequest) (*AppUsageEventList, *http.Response, error) + + /* + V3AppUsageEventsGuidGet Retrieve an app usage event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the event + @return ApiV3AppUsageEventsGuidGetRequest + */ + V3AppUsageEventsGuidGet(ctx context.Context, guid string) ApiV3AppUsageEventsGuidGetRequest + + // V3AppUsageEventsGuidGetExecute executes the request + // @return AppUsageEvent + V3AppUsageEventsGuidGetExecute(r ApiV3AppUsageEventsGuidGetRequest) (*AppUsageEvent, *http.Response, error) +} + +// AppUsageEventsAPIService AppUsageEventsAPI service +type AppUsageEventsAPIService service + +type ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest struct { + ctx context.Context + ApiService AppUsageEventsAPI +} + +func (r ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostExecute(r) +} + +/* +V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost Purge and seed app usage events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest +*/ +func (a *AppUsageEventsAPIService) V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost(ctx context.Context) ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest { + return ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AppUsageEventsAPIService) V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostExecute(r ApiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppUsageEventsAPIService.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/app_usage_events/actions/destructively_purge_all_and_reseed" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppUsageEventsGetRequest struct { + ctx context.Context + ApiService AppUsageEventsAPI + page *int32 + perPage *int32 + orderBy *string + afterGuid *string + guids *[]string + createdAts *[]time.Time +} + +// Page to display +func (r ApiV3AppUsageEventsGetRequest) Page(page int32) ApiV3AppUsageEventsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3AppUsageEventsGetRequest) PerPage(perPage int32) ApiV3AppUsageEventsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3AppUsageEventsGetRequest) OrderBy(orderBy string) ApiV3AppUsageEventsGetRequest { + r.orderBy = &orderBy + return r +} + +// Filters out events before and including the event with the given guid +func (r ApiV3AppUsageEventsGetRequest) AfterGuid(afterGuid string) ApiV3AppUsageEventsGetRequest { + r.afterGuid = &afterGuid + return r +} + +// Comma-delimited list of usage event guids to filter by +func (r ApiV3AppUsageEventsGetRequest) Guids(guids []string) ApiV3AppUsageEventsGetRequest { + r.guids = &guids + return r +} + +// Timestamp to filter by +func (r ApiV3AppUsageEventsGetRequest) CreatedAts(createdAts []time.Time) ApiV3AppUsageEventsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3AppUsageEventsGetRequest) Execute() (*AppUsageEventList, *http.Response, error) { + return r.ApiService.V3AppUsageEventsGetExecute(r) +} + +/* +V3AppUsageEventsGet List app usage events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppUsageEventsGetRequest +*/ +func (a *AppUsageEventsAPIService) V3AppUsageEventsGet(ctx context.Context) ApiV3AppUsageEventsGetRequest { + return ApiV3AppUsageEventsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AppUsageEventList +func (a *AppUsageEventsAPIService) V3AppUsageEventsGetExecute(r ApiV3AppUsageEventsGetRequest) (*AppUsageEventList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppUsageEventList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppUsageEventsAPIService.V3AppUsageEventsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/app_usage_events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.afterGuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after_guid", r.afterGuid, "form", "") + } + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.createdAts != nil { + t := *r.createdAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppUsageEventsGuidGetRequest struct { + ctx context.Context + ApiService AppUsageEventsAPI + guid string +} + +func (r ApiV3AppUsageEventsGuidGetRequest) Execute() (*AppUsageEvent, *http.Response, error) { + return r.ApiService.V3AppUsageEventsGuidGetExecute(r) +} + +/* +V3AppUsageEventsGuidGet Retrieve an app usage event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the event + @return ApiV3AppUsageEventsGuidGetRequest +*/ +func (a *AppUsageEventsAPIService) V3AppUsageEventsGuidGet(ctx context.Context, guid string) ApiV3AppUsageEventsGuidGetRequest { + return ApiV3AppUsageEventsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return AppUsageEvent +func (a *AppUsageEventsAPIService) V3AppUsageEventsGuidGetExecute(r ApiV3AppUsageEventsGuidGetRequest) (*AppUsageEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppUsageEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppUsageEventsAPIService.V3AppUsageEventsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/app_usage_events/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_audit_events.go b/api_audit_events.go new file mode 100644 index 0000000..0d80298 --- /dev/null +++ b/api_audit_events.go @@ -0,0 +1,389 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +type AuditEventsAPI interface { + + /* + V3AuditEventsGet List audit events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AuditEventsGetRequest + */ + V3AuditEventsGet(ctx context.Context) ApiV3AuditEventsGetRequest + + // V3AuditEventsGetExecute executes the request + // @return AuditEventList + V3AuditEventsGetExecute(r ApiV3AuditEventsGetRequest) (*AuditEventList, *http.Response, error) + + /* + V3AuditEventsGuidGet Retrieve an audit event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the event + @return ApiV3AuditEventsGuidGetRequest + */ + V3AuditEventsGuidGet(ctx context.Context, guid string) ApiV3AuditEventsGuidGetRequest + + // V3AuditEventsGuidGetExecute executes the request + // @return AuditEvent + V3AuditEventsGuidGetExecute(r ApiV3AuditEventsGuidGetRequest) (*AuditEvent, *http.Response, error) +} + +// AuditEventsAPIService AuditEventsAPI service +type AuditEventsAPIService service + +type ApiV3AuditEventsGetRequest struct { + ctx context.Context + ApiService AuditEventsAPI + types *[]string + targetGuids *[]string + spaceGuids *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + createdAts *[]time.Time + updatedAts *[]time.Time +} + +// Comma-delimited list of event types to filter by +func (r ApiV3AuditEventsGetRequest) Types(types []string) ApiV3AuditEventsGetRequest { + r.types = &types + return r +} + +// Comma-delimited list of target guids to filter by. Also supports filtering by exclusion. +func (r ApiV3AuditEventsGetRequest) TargetGuids(targetGuids []string) ApiV3AuditEventsGetRequest { + r.targetGuids = &targetGuids + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3AuditEventsGetRequest) SpaceGuids(spaceGuids []string) ApiV3AuditEventsGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3AuditEventsGetRequest) OrganizationGuids(organizationGuids []string) ApiV3AuditEventsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Page to display +func (r ApiV3AuditEventsGetRequest) Page(page int32) ApiV3AuditEventsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3AuditEventsGetRequest) PerPage(perPage int32) ApiV3AuditEventsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3AuditEventsGetRequest) OrderBy(orderBy string) ApiV3AuditEventsGetRequest { + r.orderBy = &orderBy + return r +} + +// Timestamp to filter by +func (r ApiV3AuditEventsGetRequest) CreatedAts(createdAts []time.Time) ApiV3AuditEventsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by +func (r ApiV3AuditEventsGetRequest) UpdatedAts(updatedAts []time.Time) ApiV3AuditEventsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3AuditEventsGetRequest) Execute() (*AuditEventList, *http.Response, error) { + return r.ApiService.V3AuditEventsGetExecute(r) +} + +/* +V3AuditEventsGet List audit events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AuditEventsGetRequest +*/ +func (a *AuditEventsAPIService) V3AuditEventsGet(ctx context.Context) ApiV3AuditEventsGetRequest { + return ApiV3AuditEventsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AuditEventList +func (a *AuditEventsAPIService) V3AuditEventsGetExecute(r ApiV3AuditEventsGetRequest) (*AuditEventList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuditEventList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditEventsAPIService.V3AuditEventsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/audit_events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.types != nil { + t := *r.types + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", t, "form", "multi") + } + } + if r.targetGuids != nil { + t := *r.targetGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "target_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "target_guids", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + t := *r.createdAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", t, "form", "multi") + } + } + if r.updatedAts != nil { + t := *r.updatedAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AuditEventsGuidGetRequest struct { + ctx context.Context + ApiService AuditEventsAPI + guid string +} + +func (r ApiV3AuditEventsGuidGetRequest) Execute() (*AuditEvent, *http.Response, error) { + return r.ApiService.V3AuditEventsGuidGetExecute(r) +} + +/* +V3AuditEventsGuidGet Retrieve an audit event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the event + @return ApiV3AuditEventsGuidGetRequest +*/ +func (a *AuditEventsAPIService) V3AuditEventsGuidGet(ctx context.Context, guid string) ApiV3AuditEventsGuidGetRequest { + return ApiV3AuditEventsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return AuditEvent +func (a *AuditEventsAPIService) V3AuditEventsGuidGetExecute(r ApiV3AuditEventsGuidGetRequest) (*AuditEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AuditEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditEventsAPIService.V3AuditEventsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/audit_events/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_default.go b/api_default.go new file mode 100644 index 0000000..10ce035 --- /dev/null +++ b/api_default.go @@ -0,0 +1,24942 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" + "time" + "os" +) + + +type DefaultAPI interface { + + /* + ApplyOrganizationQuotaToOrganizations Apply an organization quota to organizations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @return ApiApplyOrganizationQuotaToOrganizationsRequest + */ + ApplyOrganizationQuotaToOrganizations(ctx context.Context, quotaGuid string) ApiApplyOrganizationQuotaToOrganizationsRequest + + // ApplyOrganizationQuotaToOrganizationsExecute executes the request + // @return ApplyOrganizationQuotaToOrganizations201Response + ApplyOrganizationQuotaToOrganizationsExecute(r ApiApplyOrganizationQuotaToOrganizationsRequest) (*ApplyOrganizationQuotaToOrganizations201Response, *http.Response, error) + + /* + AssignDefaultIsolationSegment Assign Default Isolation Segment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiAssignDefaultIsolationSegmentRequest + */ + AssignDefaultIsolationSegment(ctx context.Context, guid string) ApiAssignDefaultIsolationSegmentRequest + + // AssignDefaultIsolationSegmentExecute executes the request + // @return map[string]interface{} + AssignDefaultIsolationSegmentExecute(r ApiAssignDefaultIsolationSegmentRequest) (map[string]interface{}, *http.Response, error) + + /* + CreateOrganization Create an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrganizationRequest + */ + CreateOrganization(ctx context.Context) ApiCreateOrganizationRequest + + // CreateOrganizationExecute executes the request + // @return Organization + CreateOrganizationExecute(r ApiCreateOrganizationRequest) (*Organization, *http.Response, error) + + /* + CreateOrganizationQuota Create an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrganizationQuotaRequest + */ + CreateOrganizationQuota(ctx context.Context) ApiCreateOrganizationQuotaRequest + + // CreateOrganizationQuotaExecute executes the request + // @return OrganizationQuota + CreateOrganizationQuotaExecute(r ApiCreateOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) + + /* + DeleteOrganization Delete an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiDeleteOrganizationRequest + */ + DeleteOrganization(ctx context.Context, guid string) ApiDeleteOrganizationRequest + + // DeleteOrganizationExecute executes the request + // @return map[string]interface{} + DeleteOrganizationExecute(r ApiDeleteOrganizationRequest) (map[string]interface{}, *http.Response, error) + + /* + DeleteOrganizationQuota Delete an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiDeleteOrganizationQuotaRequest + */ + DeleteOrganizationQuota(ctx context.Context, guid string) ApiDeleteOrganizationQuotaRequest + + // DeleteOrganizationQuotaExecute executes the request + // @return DeleteOrganizationQuota202Response + DeleteOrganizationQuotaExecute(r ApiDeleteOrganizationQuotaRequest) (*DeleteOrganizationQuota202Response, *http.Response, error) + + /* + GetDefaultDomain Get Default Domain + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetDefaultDomainRequest + */ + GetDefaultDomain(ctx context.Context, guid string) ApiGetDefaultDomainRequest + + // GetDefaultDomainExecute executes the request + // @return map[string]interface{} + GetDefaultDomainExecute(r ApiGetDefaultDomainRequest) (map[string]interface{}, *http.Response, error) + + /* + GetDefaultIsolationSegment Get Default Isolation Segment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetDefaultIsolationSegmentRequest + */ + GetDefaultIsolationSegment(ctx context.Context, guid string) ApiGetDefaultIsolationSegmentRequest + + // GetDefaultIsolationSegmentExecute executes the request + // @return map[string]interface{} + GetDefaultIsolationSegmentExecute(r ApiGetDefaultIsolationSegmentRequest) (map[string]interface{}, *http.Response, error) + + /* + GetOrganization Get an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetOrganizationRequest + */ + GetOrganization(ctx context.Context, guid string) ApiGetOrganizationRequest + + // GetOrganizationExecute executes the request + // @return Organization + GetOrganizationExecute(r ApiGetOrganizationRequest) (*Organization, *http.Response, error) + + /* + GetOrganizationQuota Get an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetOrganizationQuotaRequest + */ + GetOrganizationQuota(ctx context.Context, guid string) ApiGetOrganizationQuotaRequest + + // GetOrganizationQuotaExecute executes the request + // @return OrganizationQuota + GetOrganizationQuotaExecute(r ApiGetOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) + + /* + GetUsageSummary Get Usage Summary + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetUsageSummaryRequest + */ + GetUsageSummary(ctx context.Context, guid string) ApiGetUsageSummaryRequest + + // GetUsageSummaryExecute executes the request + // @return map[string]interface{} + GetUsageSummaryExecute(r ApiGetUsageSummaryRequest) (map[string]interface{}, *http.Response, error) + + /* + ListOrganizationQuotas List organization quotas + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListOrganizationQuotasRequest + */ + ListOrganizationQuotas(ctx context.Context) ApiListOrganizationQuotasRequest + + // ListOrganizationQuotasExecute executes the request + // @return ListOrganizationQuotas200Response + ListOrganizationQuotasExecute(r ApiListOrganizationQuotasRequest) (*ListOrganizationQuotas200Response, *http.Response, error) + + /* + ListOrganizations List Organizations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListOrganizationsRequest + */ + ListOrganizations(ctx context.Context) ApiListOrganizationsRequest + + // ListOrganizationsExecute executes the request + // @return []Organization + ListOrganizationsExecute(r ApiListOrganizationsRequest) ([]Organization, *http.Response, error) + + /* + ListUsersForOrganization List Users for an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiListUsersForOrganizationRequest + */ + ListUsersForOrganization(ctx context.Context, guid string) ApiListUsersForOrganizationRequest + + // ListUsersForOrganizationExecute executes the request + // @return []User + ListUsersForOrganizationExecute(r ApiListUsersForOrganizationRequest) ([]User, *http.Response, error) + + /* + RootGet Global API Root + + Returns links to the APIs available on a given Cloud Foundry deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRootGetRequest + */ + RootGet(ctx context.Context) ApiRootGetRequest + + // RootGetExecute executes the request + // @return Get200Response + RootGetExecute(r ApiRootGetRequest) (*Get200Response, *http.Response, error) + + /* + UpdateOrganization Update an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiUpdateOrganizationRequest + */ + UpdateOrganization(ctx context.Context, guid string) ApiUpdateOrganizationRequest + + // UpdateOrganizationExecute executes the request + // @return Organization + UpdateOrganizationExecute(r ApiUpdateOrganizationRequest) (*Organization, *http.Response, error) + + /* + UpdateOrganizationQuota Update an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiUpdateOrganizationQuotaRequest + */ + UpdateOrganizationQuota(ctx context.Context, guid string) ApiUpdateOrganizationQuotaRequest + + // UpdateOrganizationQuotaExecute executes the request + // @return OrganizationQuota + UpdateOrganizationQuotaExecute(r ApiUpdateOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) + + /* + V3AdminActionsClearBuildpackCachePost Clear buildpack cache + + This endpoint will delete all of the existing buildpack caches in the blobstore. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AdminActionsClearBuildpackCachePostRequest + */ + V3AdminActionsClearBuildpackCachePost(ctx context.Context) ApiV3AdminActionsClearBuildpackCachePostRequest + + // V3AdminActionsClearBuildpackCachePostExecute executes the request + V3AdminActionsClearBuildpackCachePostExecute(r ApiV3AdminActionsClearBuildpackCachePostRequest) (*http.Response, error) + + /* + V3AppsGet List apps + + Retrieve a list of all apps. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppsGetRequest + */ + V3AppsGet(ctx context.Context) ApiV3AppsGetRequest + + // V3AppsGetExecute executes the request + // @return App + V3AppsGetExecute(r ApiV3AppsGetRequest) (*App, *http.Response, error) + + /* + V3AppsGuidActionsClearBuildpackCachePost Clear buildpack cache for application + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsClearBuildpackCachePostRequest + */ + V3AppsGuidActionsClearBuildpackCachePost(ctx context.Context, guid string) ApiV3AppsGuidActionsClearBuildpackCachePostRequest + + // V3AppsGuidActionsClearBuildpackCachePostExecute executes the request + V3AppsGuidActionsClearBuildpackCachePostExecute(r ApiV3AppsGuidActionsClearBuildpackCachePostRequest) (*http.Response, error) + + /* + V3AppsGuidActionsRestartPost Restart an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsRestartPostRequest + */ + V3AppsGuidActionsRestartPost(ctx context.Context, guid string) ApiV3AppsGuidActionsRestartPostRequest + + // V3AppsGuidActionsRestartPostExecute executes the request + // @return V3AppsGuidActionsRestartPost200Response + V3AppsGuidActionsRestartPostExecute(r ApiV3AppsGuidActionsRestartPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) + + /* + V3AppsGuidActionsStartPost Start an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsStartPostRequest + */ + V3AppsGuidActionsStartPost(ctx context.Context, guid string) ApiV3AppsGuidActionsStartPostRequest + + // V3AppsGuidActionsStartPostExecute executes the request + // @return V3AppsGuidActionsRestartPost200Response + V3AppsGuidActionsStartPostExecute(r ApiV3AppsGuidActionsStartPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) + + /* + V3AppsGuidActionsStopPost Stop an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsStopPostRequest + */ + V3AppsGuidActionsStopPost(ctx context.Context, guid string) ApiV3AppsGuidActionsStopPostRequest + + // V3AppsGuidActionsStopPostExecute executes the request + // @return V3AppsGuidActionsRestartPost200Response + V3AppsGuidActionsStopPostExecute(r ApiV3AppsGuidActionsStopPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) + + /* + V3AppsGuidBuildsGet List builds for an app + + Retrieve all builds for the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidBuildsGetRequest + */ + V3AppsGuidBuildsGet(ctx context.Context, guid string) ApiV3AppsGuidBuildsGetRequest + + // V3AppsGuidBuildsGetExecute executes the request + V3AppsGuidBuildsGetExecute(r ApiV3AppsGuidBuildsGetRequest) (*http.Response, error) + + /* + V3AppsGuidDelete Delete an app + + Delete the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidDeleteRequest + */ + V3AppsGuidDelete(ctx context.Context, guid string) ApiV3AppsGuidDeleteRequest + + // V3AppsGuidDeleteExecute executes the request + V3AppsGuidDeleteExecute(r ApiV3AppsGuidDeleteRequest) (*http.Response, error) + + /* + V3AppsGuidDropletsCurrentGet Get current droplet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidDropletsCurrentGetRequest + */ + V3AppsGuidDropletsCurrentGet(ctx context.Context, guid string) ApiV3AppsGuidDropletsCurrentGetRequest + + // V3AppsGuidDropletsCurrentGetExecute executes the request + // @return V3AppsGuidDropletsCurrentGet200Response + V3AppsGuidDropletsCurrentGetExecute(r ApiV3AppsGuidDropletsCurrentGetRequest) (*V3AppsGuidDropletsCurrentGet200Response, *http.Response, error) + + /* + V3AppsGuidDropletsGet List droplets for an app + + Retrieve a list of droplets belonging to an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the app + @return ApiV3AppsGuidDropletsGetRequest + */ + V3AppsGuidDropletsGet(ctx context.Context, guid string) ApiV3AppsGuidDropletsGetRequest + + // V3AppsGuidDropletsGetExecute executes the request + // @return V3AppsGuidDropletsGet200Response + V3AppsGuidDropletsGetExecute(r ApiV3AppsGuidDropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) + + /* + V3AppsGuidEnvGet Get environment for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvGetRequest + */ + V3AppsGuidEnvGet(ctx context.Context, guid string) ApiV3AppsGuidEnvGetRequest + + // V3AppsGuidEnvGetExecute executes the request + // @return V3AppsGuidEnvGet200Response + V3AppsGuidEnvGetExecute(r ApiV3AppsGuidEnvGetRequest) (*V3AppsGuidEnvGet200Response, *http.Response, error) + + /* + V3AppsGuidEnvironmentVariablesGet Get environment variables for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvironmentVariablesGetRequest + */ + V3AppsGuidEnvironmentVariablesGet(ctx context.Context, guid string) ApiV3AppsGuidEnvironmentVariablesGetRequest + + // V3AppsGuidEnvironmentVariablesGetExecute executes the request + // @return V3AppsGuidEnvironmentVariablesGet200Response + V3AppsGuidEnvironmentVariablesGetExecute(r ApiV3AppsGuidEnvironmentVariablesGetRequest) (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) + + /* + V3AppsGuidEnvironmentVariablesPatch Update environment variables for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvironmentVariablesPatchRequest + */ + V3AppsGuidEnvironmentVariablesPatch(ctx context.Context, guid string) ApiV3AppsGuidEnvironmentVariablesPatchRequest + + // V3AppsGuidEnvironmentVariablesPatchExecute executes the request + // @return V3AppsGuidEnvironmentVariablesGet200Response + V3AppsGuidEnvironmentVariablesPatchExecute(r ApiV3AppsGuidEnvironmentVariablesPatchRequest) (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) + + /* + V3AppsGuidFeaturesGet List app features + + Retrieves the list of features for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidFeaturesGetRequest + */ + V3AppsGuidFeaturesGet(ctx context.Context, guid string) ApiV3AppsGuidFeaturesGetRequest + + // V3AppsGuidFeaturesGetExecute executes the request + V3AppsGuidFeaturesGetExecute(r ApiV3AppsGuidFeaturesGetRequest) (*http.Response, error) + + /* + V3AppsGuidFeaturesNameGet Get an app feature + + Retrieves a specific feature for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @param name The name of the feature. + @return ApiV3AppsGuidFeaturesNameGetRequest + */ + V3AppsGuidFeaturesNameGet(ctx context.Context, guid string, name string) ApiV3AppsGuidFeaturesNameGetRequest + + // V3AppsGuidFeaturesNameGetExecute executes the request + V3AppsGuidFeaturesNameGetExecute(r ApiV3AppsGuidFeaturesNameGetRequest) (*http.Response, error) + + /* + V3AppsGuidFeaturesNamePatch Update an app feature + + Updates a specific feature for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @param name The name of the feature. + @return ApiV3AppsGuidFeaturesNamePatchRequest + */ + V3AppsGuidFeaturesNamePatch(ctx context.Context, guid string, name string) ApiV3AppsGuidFeaturesNamePatchRequest + + // V3AppsGuidFeaturesNamePatchExecute executes the request + V3AppsGuidFeaturesNamePatchExecute(r ApiV3AppsGuidFeaturesNamePatchRequest) (*http.Response, error) + + /* + V3AppsGuidGet Retrieve a specific app + + Retrieve a specific app by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidGetRequest + */ + V3AppsGuidGet(ctx context.Context, guid string) ApiV3AppsGuidGetRequest + + // V3AppsGuidGetExecute executes the request + // @return App + V3AppsGuidGetExecute(r ApiV3AppsGuidGetRequest) (*App, *http.Response, error) + + /* + V3AppsGuidPatch Update an app + + Update an existing app by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidPatchRequest + */ + V3AppsGuidPatch(ctx context.Context, guid string) ApiV3AppsGuidPatchRequest + + // V3AppsGuidPatchExecute executes the request + // @return App + V3AppsGuidPatchExecute(r ApiV3AppsGuidPatchRequest) (*App, *http.Response, error) + + /* + V3AppsGuidPermissionsGet Get permissions for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidPermissionsGetRequest + */ + V3AppsGuidPermissionsGet(ctx context.Context, guid string) ApiV3AppsGuidPermissionsGetRequest + + // V3AppsGuidPermissionsGetExecute executes the request + // @return V3AppsGuidPermissionsGet200Response + V3AppsGuidPermissionsGetExecute(r ApiV3AppsGuidPermissionsGetRequest) (*V3AppsGuidPermissionsGet200Response, *http.Response, error) + + /* + V3AppsGuidProcessesGet List processes for app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidProcessesGetRequest + */ + V3AppsGuidProcessesGet(ctx context.Context, guid string) ApiV3AppsGuidProcessesGetRequest + + // V3AppsGuidProcessesGetExecute executes the request + // @return ProcessList + V3AppsGuidProcessesGetExecute(r ApiV3AppsGuidProcessesGetRequest) (*ProcessList, *http.Response, error) + + /* + V3AppsGuidRelationshipsCurrentDropletGet Get current droplet association for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidRelationshipsCurrentDropletGetRequest + */ + V3AppsGuidRelationshipsCurrentDropletGet(ctx context.Context, guid string) ApiV3AppsGuidRelationshipsCurrentDropletGetRequest + + // V3AppsGuidRelationshipsCurrentDropletGetExecute executes the request + // @return V3AppsGuidRelationshipsCurrentDropletGet200Response + V3AppsGuidRelationshipsCurrentDropletGetExecute(r ApiV3AppsGuidRelationshipsCurrentDropletGetRequest) (*V3AppsGuidRelationshipsCurrentDropletGet200Response, *http.Response, error) + + /* + V3AppsGuidRevisionsDeployedGet List deployed revisions for an app + + Retrieve deployed revisions for an app the user has access to. Deployed revisions are revisions that are linked to started processes in the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the app + @return ApiV3AppsGuidRevisionsDeployedGetRequest + */ + V3AppsGuidRevisionsDeployedGet(ctx context.Context, guid string) ApiV3AppsGuidRevisionsDeployedGetRequest + + // V3AppsGuidRevisionsDeployedGetExecute executes the request + // @return RevisionsList + V3AppsGuidRevisionsDeployedGetExecute(r ApiV3AppsGuidRevisionsDeployedGetRequest) (*RevisionsList, *http.Response, error) + + /* + V3AppsGuidRevisionsGet List revisions for an app + + Retrieve revisions for an app the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the app + @return ApiV3AppsGuidRevisionsGetRequest + */ + V3AppsGuidRevisionsGet(ctx context.Context, guid string) ApiV3AppsGuidRevisionsGetRequest + + // V3AppsGuidRevisionsGetExecute executes the request + // @return RevisionsList + V3AppsGuidRevisionsGetExecute(r ApiV3AppsGuidRevisionsGetRequest) (*RevisionsList, *http.Response, error) + + /* + V3AppsGuidRoutesGet Retrieve all routes for an app + + Retrieve all routes that have destinations that point to the given app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The app GUID + @return ApiV3AppsGuidRoutesGetRequest + */ + V3AppsGuidRoutesGet(ctx context.Context, guid string) ApiV3AppsGuidRoutesGetRequest + + // V3AppsGuidRoutesGetExecute executes the request + // @return RouteList + V3AppsGuidRoutesGetExecute(r ApiV3AppsGuidRoutesGetRequest) (*RouteList, *http.Response, error) + + /* + V3AppsGuidSidecarsGet List sidecars for an app + + Retrieves all sidecars associated with an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSidecarsGetRequest + */ + V3AppsGuidSidecarsGet(ctx context.Context, guid string) ApiV3AppsGuidSidecarsGetRequest + + // V3AppsGuidSidecarsGetExecute executes the request + // @return V3AppsGuidSidecarsGet200Response + V3AppsGuidSidecarsGetExecute(r ApiV3AppsGuidSidecarsGetRequest) (*V3AppsGuidSidecarsGet200Response, *http.Response, error) + + /* + V3AppsGuidSidecarsPost Create a sidecar associated with an app + + Creates a sidecar associated with an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSidecarsPostRequest + */ + V3AppsGuidSidecarsPost(ctx context.Context, guid string) ApiV3AppsGuidSidecarsPostRequest + + // V3AppsGuidSidecarsPostExecute executes the request + // @return Sidecar + V3AppsGuidSidecarsPostExecute(r ApiV3AppsGuidSidecarsPostRequest) (*Sidecar, *http.Response, error) + + /* + V3AppsGuidSshEnabledGet Get SSH enabled for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSshEnabledGetRequest + */ + V3AppsGuidSshEnabledGet(ctx context.Context, guid string) ApiV3AppsGuidSshEnabledGetRequest + + // V3AppsGuidSshEnabledGetExecute executes the request + // @return V3AppsGuidSshEnabledGet200Response + V3AppsGuidSshEnabledGetExecute(r ApiV3AppsGuidSshEnabledGetRequest) (*V3AppsGuidSshEnabledGet200Response, *http.Response, error) + + /* + V3AppsGuidTasksPost Create a task + + Create a new task for an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidTasksPostRequest + */ + V3AppsGuidTasksPost(ctx context.Context, guid string) ApiV3AppsGuidTasksPostRequest + + // V3AppsGuidTasksPostExecute executes the request + // @return Task + V3AppsGuidTasksPostExecute(r ApiV3AppsGuidTasksPostRequest) (*Task, *http.Response, error) + + /* + V3AppsPost Create an app + + Create a new app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppsPostRequest + */ + V3AppsPost(ctx context.Context) ApiV3AppsPostRequest + + // V3AppsPostExecute executes the request + // @return App + V3AppsPostExecute(r ApiV3AppsPostRequest) (*App, *http.Response, error) + + /* + V3BuildpacksGet List buildpacks + + Retrieve a list of all buildpacks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildpacksGetRequest + */ + V3BuildpacksGet(ctx context.Context) ApiV3BuildpacksGetRequest + + // V3BuildpacksGetExecute executes the request + V3BuildpacksGetExecute(r ApiV3BuildpacksGetRequest) (*http.Response, error) + + /* + V3BuildpacksGuidPatch Update a buildpack + + Update an existing buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the buildpack. + @return ApiV3BuildpacksGuidPatchRequest + */ + V3BuildpacksGuidPatch(ctx context.Context, guid string) ApiV3BuildpacksGuidPatchRequest + + // V3BuildpacksGuidPatchExecute executes the request + V3BuildpacksGuidPatchExecute(r ApiV3BuildpacksGuidPatchRequest) (*http.Response, error) + + /* + V3BuildpacksGuidUploadPost Upload buildpack bits + + Upload a zip file containing a Cloud Foundry compatible buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the buildpack. + @return ApiV3BuildpacksGuidUploadPostRequest + */ + V3BuildpacksGuidUploadPost(ctx context.Context, guid string) ApiV3BuildpacksGuidUploadPostRequest + + // V3BuildpacksGuidUploadPostExecute executes the request + V3BuildpacksGuidUploadPostExecute(r ApiV3BuildpacksGuidUploadPostRequest) (*http.Response, error) + + /* + V3BuildpacksPost Create a buildpack + + Create a new buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildpacksPostRequest + */ + V3BuildpacksPost(ctx context.Context) ApiV3BuildpacksPostRequest + + // V3BuildpacksPostExecute executes the request + V3BuildpacksPostExecute(r ApiV3BuildpacksPostRequest) (*http.Response, error) + + /* + V3BuildsGet List builds + + Retrieve a list of all builds. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildsGetRequest + */ + V3BuildsGet(ctx context.Context) ApiV3BuildsGetRequest + + // V3BuildsGetExecute executes the request + V3BuildsGetExecute(r ApiV3BuildsGetRequest) (*http.Response, error) + + /* + V3BuildsGuidPatch Update a build + + Update an existing build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the build. + @return ApiV3BuildsGuidPatchRequest + */ + V3BuildsGuidPatch(ctx context.Context, guid string) ApiV3BuildsGuidPatchRequest + + // V3BuildsGuidPatchExecute executes the request + V3BuildsGuidPatchExecute(r ApiV3BuildsGuidPatchRequest) (*http.Response, error) + + /* + V3BuildsPost Create a build + + Create a new build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildsPostRequest + */ + V3BuildsPost(ctx context.Context) ApiV3BuildsPostRequest + + // V3BuildsPostExecute executes the request + V3BuildsPostExecute(r ApiV3BuildsPostRequest) (*http.Response, error) + + /* + V3DeploymentsGet List deployments + + Retrieve a list of all deployments. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DeploymentsGetRequest + */ + V3DeploymentsGet(ctx context.Context) ApiV3DeploymentsGetRequest + + // V3DeploymentsGetExecute executes the request + V3DeploymentsGetExecute(r ApiV3DeploymentsGetRequest) (*http.Response, error) + + /* + V3DeploymentsGuidActionsCancelPost Cancel a deployment + + Cancel an ongoing deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidActionsCancelPostRequest + */ + V3DeploymentsGuidActionsCancelPost(ctx context.Context, guid string) ApiV3DeploymentsGuidActionsCancelPostRequest + + // V3DeploymentsGuidActionsCancelPostExecute executes the request + V3DeploymentsGuidActionsCancelPostExecute(r ApiV3DeploymentsGuidActionsCancelPostRequest) (*http.Response, error) + + /* + V3DeploymentsGuidActionsContinuePost Continue a deployment + + Continue a paused deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidActionsContinuePostRequest + */ + V3DeploymentsGuidActionsContinuePost(ctx context.Context, guid string) ApiV3DeploymentsGuidActionsContinuePostRequest + + // V3DeploymentsGuidActionsContinuePostExecute executes the request + V3DeploymentsGuidActionsContinuePostExecute(r ApiV3DeploymentsGuidActionsContinuePostRequest) (*http.Response, error) + + /* + V3DeploymentsGuidGet Get a deployment + + Retrieve a deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidGetRequest + */ + V3DeploymentsGuidGet(ctx context.Context, guid string) ApiV3DeploymentsGuidGetRequest + + // V3DeploymentsGuidGetExecute executes the request + V3DeploymentsGuidGetExecute(r ApiV3DeploymentsGuidGetRequest) (*http.Response, error) + + /* + V3DeploymentsPost Create a deployment + + Create a new deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DeploymentsPostRequest + */ + V3DeploymentsPost(ctx context.Context) ApiV3DeploymentsPostRequest + + // V3DeploymentsPostExecute executes the request + V3DeploymentsPostExecute(r ApiV3DeploymentsPostRequest) (*http.Response, error) + + /* + V3DropletsGet List droplets + + Retrieve all droplets the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DropletsGetRequest + */ + V3DropletsGet(ctx context.Context) ApiV3DropletsGetRequest + + // V3DropletsGetExecute executes the request + // @return V3AppsGuidDropletsGet200Response + V3DropletsGetExecute(r ApiV3DropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) + + /* + V3DropletsGuidGet Get a droplet + + Retrieve a specific droplet. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the droplet + @return ApiV3DropletsGuidGetRequest + */ + V3DropletsGuidGet(ctx context.Context, guid string) ApiV3DropletsGuidGetRequest + + // V3DropletsGuidGetExecute executes the request + // @return Droplet + V3DropletsGuidGetExecute(r ApiV3DropletsGuidGetRequest) (*Droplet, *http.Response, error) + + /* + V3DropletsPost Create a droplet + + Create a droplet without a package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DropletsPostRequest + */ + V3DropletsPost(ctx context.Context) ApiV3DropletsPostRequest + + // V3DropletsPostExecute executes the request + // @return Droplet + V3DropletsPostExecute(r ApiV3DropletsPostRequest) (*Droplet, *http.Response, error) + + /* + V3EnvironmentVariableGroupsNameGet Get an environment variable group + + Retrieve a specific environment variable group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the environment variable group (running or staging) + @return ApiV3EnvironmentVariableGroupsNameGetRequest + */ + V3EnvironmentVariableGroupsNameGet(ctx context.Context, name string) ApiV3EnvironmentVariableGroupsNameGetRequest + + // V3EnvironmentVariableGroupsNameGetExecute executes the request + // @return EnvironmentVariableGroup + V3EnvironmentVariableGroupsNameGetExecute(r ApiV3EnvironmentVariableGroupsNameGetRequest) (*EnvironmentVariableGroup, *http.Response, error) + + /* + V3EnvironmentVariableGroupsNamePatch Update environment variable group + + Update the environment variable group. The variables given in the request will be merged with the existing environment variable group. Any requested variables with a value of null will be removed from the group. Environment variable names may not start with VCAP_. PORT is not a valid environment variable. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the environment variable group (running or staging) + @return ApiV3EnvironmentVariableGroupsNamePatchRequest + */ + V3EnvironmentVariableGroupsNamePatch(ctx context.Context, name string) ApiV3EnvironmentVariableGroupsNamePatchRequest + + // V3EnvironmentVariableGroupsNamePatchExecute executes the request + // @return EnvironmentVariableGroup + V3EnvironmentVariableGroupsNamePatchExecute(r ApiV3EnvironmentVariableGroupsNamePatchRequest) (*EnvironmentVariableGroup, *http.Response, error) + + /* + V3FeatureFlagsGet List feature flags + + Retrieve all feature flags. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3FeatureFlagsGetRequest + */ + V3FeatureFlagsGet(ctx context.Context) ApiV3FeatureFlagsGetRequest + + // V3FeatureFlagsGetExecute executes the request + // @return V3FeatureFlagsGet200Response + V3FeatureFlagsGetExecute(r ApiV3FeatureFlagsGetRequest) (*V3FeatureFlagsGet200Response, *http.Response, error) + + /* + V3FeatureFlagsNameGet Get a feature flag + + Retrieve a specific feature flag. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the feature flag + @return ApiV3FeatureFlagsNameGetRequest + */ + V3FeatureFlagsNameGet(ctx context.Context, name string) ApiV3FeatureFlagsNameGetRequest + + // V3FeatureFlagsNameGetExecute executes the request + // @return FeatureFlag + V3FeatureFlagsNameGetExecute(r ApiV3FeatureFlagsNameGetRequest) (*FeatureFlag, *http.Response, error) + + /* + V3FeatureFlagsNamePatch Update a feature flag + + Update the status or custom error message of a feature flag. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the feature flag + @return ApiV3FeatureFlagsNamePatchRequest + */ + V3FeatureFlagsNamePatch(ctx context.Context, name string) ApiV3FeatureFlagsNamePatchRequest + + // V3FeatureFlagsNamePatchExecute executes the request + // @return FeatureFlag + V3FeatureFlagsNamePatchExecute(r ApiV3FeatureFlagsNamePatchRequest) (*FeatureFlag, *http.Response, error) + + /* + V3Get V3 API Root + + Returns links to all the resources available on the v3 API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3GetRequest + */ + V3Get(ctx context.Context) ApiV3GetRequest + + // V3GetExecute executes the request + // @return V3Get200Response + V3GetExecute(r ApiV3GetRequest) (*V3Get200Response, *http.Response, error) + + /* + V3InfoGet Get platform info + + Retrieve Cloud Controller configuration information. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3InfoGetRequest + */ + V3InfoGet(ctx context.Context) ApiV3InfoGetRequest + + // V3InfoGetExecute executes the request + // @return PlatformInfo + V3InfoGetExecute(r ApiV3InfoGetRequest) (*PlatformInfo, *http.Response, error) + + /* + V3InfoUsageSummaryGet Get platform usage summary + + Retrieve a high-level summary of usage across the entire Cloud Foundry installation. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3InfoUsageSummaryGetRequest + */ + V3InfoUsageSummaryGet(ctx context.Context) ApiV3InfoUsageSummaryGetRequest + + // V3InfoUsageSummaryGetExecute executes the request + // @return UsageSummary + V3InfoUsageSummaryGetExecute(r ApiV3InfoUsageSummaryGetRequest) (*UsageSummary, *http.Response, error) + + /* + V3IsolationSegmentsGet List isolation segments + + Retrieve all isolation segments to which the user has access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3IsolationSegmentsGetRequest + */ + V3IsolationSegmentsGet(ctx context.Context) ApiV3IsolationSegmentsGetRequest + + // V3IsolationSegmentsGetExecute executes the request + // @return V3IsolationSegmentsGet200Response + V3IsolationSegmentsGetExecute(r ApiV3IsolationSegmentsGetRequest) (*V3IsolationSegmentsGet200Response, *http.Response, error) + + /* + V3IsolationSegmentsGuidDelete Delete an isolation segment + + Delete an isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidDeleteRequest + */ + V3IsolationSegmentsGuidDelete(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidDeleteRequest + + // V3IsolationSegmentsGuidDeleteExecute executes the request + V3IsolationSegmentsGuidDeleteExecute(r ApiV3IsolationSegmentsGuidDeleteRequest) (*http.Response, error) + + /* + V3IsolationSegmentsGuidGet Get an isolation segment + + Retrieve an isolation segment to which the user has access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidGetRequest + */ + V3IsolationSegmentsGuidGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidGetRequest + + // V3IsolationSegmentsGuidGetExecute executes the request + // @return IsolationSegment + V3IsolationSegmentsGuidGetExecute(r ApiV3IsolationSegmentsGuidGetRequest) (*IsolationSegment, *http.Response, error) + + /* + V3IsolationSegmentsGuidPatch Update an isolation segment + + Update the name or metadata of an isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidPatchRequest + */ + V3IsolationSegmentsGuidPatch(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidPatchRequest + + // V3IsolationSegmentsGuidPatchExecute executes the request + // @return IsolationSegment + V3IsolationSegmentsGuidPatchExecute(r ApiV3IsolationSegmentsGuidPatchRequest) (*IsolationSegment, *http.Response, error) + + /* + V3IsolationSegmentsGuidRelationshipsOrganizationsGet List organizations relationship + + List the organizations entitled for the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest + */ + V3IsolationSegmentsGuidRelationshipsOrganizationsGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest + + // V3IsolationSegmentsGuidRelationshipsOrganizationsGetExecute executes the request + // @return V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + V3IsolationSegmentsGuidRelationshipsOrganizationsGetExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest) (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) + + /* + V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete Revoke entitlement to isolation segment for an organization + + Revoke the entitlement for the specified organization to the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @param orgGuid The guid of the organization + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest + */ + V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete(ctx context.Context, guid string, orgGuid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest + + // V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteExecute executes the request + V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest) (*http.Response, error) + + /* + V3IsolationSegmentsGuidRelationshipsOrganizationsPost Entitle organizations for an isolation segment + + Entitle the specified organizations for the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + */ + V3IsolationSegmentsGuidRelationshipsOrganizationsPost(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + + // V3IsolationSegmentsGuidRelationshipsOrganizationsPostExecute executes the request + // @return V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + V3IsolationSegmentsGuidRelationshipsOrganizationsPostExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) + + /* + V3IsolationSegmentsGuidRelationshipsSpacesGet List spaces relationship + + List the spaces to which the isolation segment is assigned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest + */ + V3IsolationSegmentsGuidRelationshipsSpacesGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest + + // V3IsolationSegmentsGuidRelationshipsSpacesGetExecute executes the request + // @return V3IsolationSegmentsGuidRelationshipsSpacesGet200Response + V3IsolationSegmentsGuidRelationshipsSpacesGetExecute(r ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest) (*V3IsolationSegmentsGuidRelationshipsSpacesGet200Response, *http.Response, error) + + /* + V3IsolationSegmentsPost Create an isolation segment + + Create a new isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3IsolationSegmentsPostRequest + */ + V3IsolationSegmentsPost(ctx context.Context) ApiV3IsolationSegmentsPostRequest + + // V3IsolationSegmentsPostExecute executes the request + // @return IsolationSegment + V3IsolationSegmentsPostExecute(r ApiV3IsolationSegmentsPostRequest) (*IsolationSegment, *http.Response, error) + + /* + V3PackagesGet List packages + + Retrieve all packages the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3PackagesGetRequest + */ + V3PackagesGet(ctx context.Context) ApiV3PackagesGetRequest + + // V3PackagesGetExecute executes the request + // @return V3PackagesGet200Response + V3PackagesGetExecute(r ApiV3PackagesGetRequest) (*V3PackagesGet200Response, *http.Response, error) + + /* + V3PackagesGuidDelete Delete a package + + Delete a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidDeleteRequest + */ + V3PackagesGuidDelete(ctx context.Context, guid string) ApiV3PackagesGuidDeleteRequest + + // V3PackagesGuidDeleteExecute executes the request + // @return V3PackagesGuidDelete202Response + V3PackagesGuidDeleteExecute(r ApiV3PackagesGuidDeleteRequest) (*V3PackagesGuidDelete202Response, *http.Response, error) + + /* + V3PackagesGuidDropletsGet List droplets for a package + + Retrieve a list of droplets belonging to a package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the package + @return ApiV3PackagesGuidDropletsGetRequest + */ + V3PackagesGuidDropletsGet(ctx context.Context, guid string) ApiV3PackagesGuidDropletsGetRequest + + // V3PackagesGuidDropletsGetExecute executes the request + // @return V3AppsGuidDropletsGet200Response + V3PackagesGuidDropletsGetExecute(r ApiV3PackagesGuidDropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) + + /* + V3PackagesGuidGet Get a package + + Retrieve a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidGetRequest + */ + V3PackagesGuidGet(ctx context.Context, guid string) ApiV3PackagesGuidGetRequest + + // V3PackagesGuidGetExecute executes the request + // @return Package + V3PackagesGuidGetExecute(r ApiV3PackagesGuidGetRequest) (*Package, *http.Response, error) + + /* + V3PackagesGuidPatch Update a package + + Update a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidPatchRequest + */ + V3PackagesGuidPatch(ctx context.Context, guid string) ApiV3PackagesGuidPatchRequest + + // V3PackagesGuidPatchExecute executes the request + // @return Package + V3PackagesGuidPatchExecute(r ApiV3PackagesGuidPatchRequest) (*Package, *http.Response, error) + + /* + V3PackagesGuidUploadPost Upload package bits + + Upload a new package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidUploadPostRequest + */ + V3PackagesGuidUploadPost(ctx context.Context, guid string) ApiV3PackagesGuidUploadPostRequest + + // V3PackagesGuidUploadPostExecute executes the request + // @return Package + V3PackagesGuidUploadPostExecute(r ApiV3PackagesGuidUploadPostRequest) (*Package, *http.Response, error) + + /* + V3PackagesPost Create a package + + Create a new package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3PackagesPostRequest + */ + V3PackagesPost(ctx context.Context) ApiV3PackagesPostRequest + + // V3PackagesPostExecute executes the request + // @return Package + V3PackagesPostExecute(r ApiV3PackagesPostRequest) (*Package, *http.Response, error) + + /* + V3ProcessesGet List processes + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ProcessesGetRequest + */ + V3ProcessesGet(ctx context.Context) ApiV3ProcessesGetRequest + + // V3ProcessesGetExecute executes the request + // @return ProcessList + V3ProcessesGetExecute(r ApiV3ProcessesGetRequest) (*ProcessList, *http.Response, error) + + /* + V3ProcessesGuidActionsScalePost Scale a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidActionsScalePostRequest + */ + V3ProcessesGuidActionsScalePost(ctx context.Context, guid string) ApiV3ProcessesGuidActionsScalePostRequest + + // V3ProcessesGuidActionsScalePostExecute executes the request + // @return Process + V3ProcessesGuidActionsScalePostExecute(r ApiV3ProcessesGuidActionsScalePostRequest) (*Process, *http.Response, error) + + /* + V3ProcessesGuidInstancesIndexDelete Terminate a process instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param index + @return ApiV3ProcessesGuidInstancesIndexDeleteRequest + */ + V3ProcessesGuidInstancesIndexDelete(ctx context.Context, guid string, index int32) ApiV3ProcessesGuidInstancesIndexDeleteRequest + + // V3ProcessesGuidInstancesIndexDeleteExecute executes the request + V3ProcessesGuidInstancesIndexDeleteExecute(r ApiV3ProcessesGuidInstancesIndexDeleteRequest) (*http.Response, error) + + /* + V3ProcessesGuidPatch Update a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidPatchRequest + */ + V3ProcessesGuidPatch(ctx context.Context, guid string) ApiV3ProcessesGuidPatchRequest + + // V3ProcessesGuidPatchExecute executes the request + // @return Process + V3ProcessesGuidPatchExecute(r ApiV3ProcessesGuidPatchRequest) (*Process, *http.Response, error) + + /* + V3ProcessesGuidSidecarsGet List sidecars for a process + + Retrieves all sidecars associated with a process. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidSidecarsGetRequest + */ + V3ProcessesGuidSidecarsGet(ctx context.Context, guid string) ApiV3ProcessesGuidSidecarsGetRequest + + // V3ProcessesGuidSidecarsGetExecute executes the request + // @return V3AppsGuidSidecarsGet200Response + V3ProcessesGuidSidecarsGetExecute(r ApiV3ProcessesGuidSidecarsGetRequest) (*V3AppsGuidSidecarsGet200Response, *http.Response, error) + + /* + V3ProcessesGuidStatsGet Get stats for a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidStatsGetRequest + */ + V3ProcessesGuidStatsGet(ctx context.Context, guid string) ApiV3ProcessesGuidStatsGetRequest + + // V3ProcessesGuidStatsGetExecute executes the request + // @return []ProcessStats + V3ProcessesGuidStatsGetExecute(r ApiV3ProcessesGuidStatsGetRequest) ([]ProcessStats, *http.Response, error) + + /* + V3ResourceMatchesPost Create a resource match + + This endpoint matches given resource SHA-1/file size pairs against the Cloud Controller cache and reports the subset that describes already cached files. This is usually used to avoid uploading duplicate files when pushing an app which has only been partially changed. The path and mode fields are not used when matching. + +When uploading package bits, the response from this endpoint should be used as the resources form field. As such, it is useful to include the path and mode fields for each resource even though they are not used when determining a resource match. + +Cloud Foundry operators may set minimum/maximum file sizes to match against. If the file size provided is outside this range, it will not be matched against. + +If the resource_matching feature flag is disabled, resource matching will always return an empty array. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ResourceMatchesPostRequest + */ + V3ResourceMatchesPost(ctx context.Context) ApiV3ResourceMatchesPostRequest + + // V3ResourceMatchesPostExecute executes the request + // @return ResourceMatchResponse + V3ResourceMatchesPostExecute(r ApiV3ResourceMatchesPostRequest) (*ResourceMatchResponse, *http.Response, error) + + /* + V3RevisionsGuidEnvironmentVariablesGet Get environment variables for a revision + + Retrieve the environment variables associated with the revision. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the revision + @return ApiV3RevisionsGuidEnvironmentVariablesGetRequest + */ + V3RevisionsGuidEnvironmentVariablesGet(ctx context.Context, guid string) ApiV3RevisionsGuidEnvironmentVariablesGetRequest + + // V3RevisionsGuidEnvironmentVariablesGetExecute executes the request + // @return EnvironmentVariables + V3RevisionsGuidEnvironmentVariablesGetExecute(r ApiV3RevisionsGuidEnvironmentVariablesGetRequest) (*EnvironmentVariables, *http.Response, error) + + /* + V3RevisionsGuidPatch Update a revision + + Update metadata for a specific revision. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the revision + @return ApiV3RevisionsGuidPatchRequest + */ + V3RevisionsGuidPatch(ctx context.Context, guid string) ApiV3RevisionsGuidPatchRequest + + // V3RevisionsGuidPatchExecute executes the request + // @return Revision + V3RevisionsGuidPatchExecute(r ApiV3RevisionsGuidPatchRequest) (*Revision, *http.Response, error) + + /* + V3RolesGet List roles + + List roles that the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RolesGetRequest + */ + V3RolesGet(ctx context.Context) ApiV3RolesGetRequest + + // V3RolesGetExecute executes the request + // @return RolesList + V3RolesGetExecute(r ApiV3RolesGetRequest) (*RolesList, *http.Response, error) + + /* + V3RolesGuidDelete Delete a role + + Delete an individual role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the role + @return ApiV3RolesGuidDeleteRequest + */ + V3RolesGuidDelete(ctx context.Context, guid string) ApiV3RolesGuidDeleteRequest + + // V3RolesGuidDeleteExecute executes the request + V3RolesGuidDeleteExecute(r ApiV3RolesGuidDeleteRequest) (*http.Response, error) + + /* + V3RolesGuidGet Get a role + + Get an individual role resource. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the role + @return ApiV3RolesGuidGetRequest + */ + V3RolesGuidGet(ctx context.Context, guid string) ApiV3RolesGuidGetRequest + + // V3RolesGuidGetExecute executes the request + // @return Role + V3RolesGuidGetExecute(r ApiV3RolesGuidGetRequest) (*Role, *http.Response, error) + + /* + V3RolesPost Create a role + + Create a new role for a user in an organization or space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RolesPostRequest + */ + V3RolesPost(ctx context.Context) ApiV3RolesPostRequest + + // V3RolesPostExecute executes the request + // @return Role + V3RolesPostExecute(r ApiV3RolesPostRequest) (*Role, *http.Response, error) + + /* + V3RoutesGet List routes + + Retrieve all routes the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RoutesGetRequest + */ + V3RoutesGet(ctx context.Context) ApiV3RoutesGetRequest + + // V3RoutesGetExecute executes the request + // @return V3RoutesGet200Response + V3RoutesGetExecute(r ApiV3RoutesGetRequest) (*V3RoutesGet200Response, *http.Response, error) + + /* + V3RoutesGuidGet Get a route + + Retrieve a route by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The route GUID + @return ApiV3RoutesGuidGetRequest + */ + V3RoutesGuidGet(ctx context.Context, guid string) ApiV3RoutesGuidGetRequest + + // V3RoutesGuidGetExecute executes the request + // @return Route + V3RoutesGuidGetExecute(r ApiV3RoutesGuidGetRequest) (*Route, *http.Response, error) + + /* + V3RoutesPost Create a route + + Create a new route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RoutesPostRequest + */ + V3RoutesPost(ctx context.Context) ApiV3RoutesPostRequest + + // V3RoutesPostExecute executes the request + // @return Route + V3RoutesPostExecute(r ApiV3RoutesPostRequest) (*Route, *http.Response, error) + + /* + V3SecurityGroupsGet List security groups + + Retrieves a list of security groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SecurityGroupsGetRequest + */ + V3SecurityGroupsGet(ctx context.Context) ApiV3SecurityGroupsGetRequest + + // V3SecurityGroupsGetExecute executes the request + // @return SecurityGroupList + V3SecurityGroupsGetExecute(r ApiV3SecurityGroupsGetRequest) (*SecurityGroupList, *http.Response, error) + + /* + V3SecurityGroupsGuidDelete Delete a security group + + Deletes a security group by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidDeleteRequest + */ + V3SecurityGroupsGuidDelete(ctx context.Context, guid string) ApiV3SecurityGroupsGuidDeleteRequest + + // V3SecurityGroupsGuidDeleteExecute executes the request + V3SecurityGroupsGuidDeleteExecute(r ApiV3SecurityGroupsGuidDeleteRequest) (*http.Response, error) + + /* + V3SecurityGroupsGuidGet Get a security group + + Retrieves a security group by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidGetRequest + */ + V3SecurityGroupsGuidGet(ctx context.Context, guid string) ApiV3SecurityGroupsGuidGetRequest + + // V3SecurityGroupsGuidGetExecute executes the request + // @return SecurityGroup + V3SecurityGroupsGuidGetExecute(r ApiV3SecurityGroupsGuidGetRequest) (*SecurityGroup, *http.Response, error) + + /* + V3SecurityGroupsGuidPatch Update a security group + + Updates the specified attributes of the security group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidPatchRequest + */ + V3SecurityGroupsGuidPatch(ctx context.Context, guid string) ApiV3SecurityGroupsGuidPatchRequest + + // V3SecurityGroupsGuidPatchExecute executes the request + // @return SecurityGroup + V3SecurityGroupsGuidPatchExecute(r ApiV3SecurityGroupsGuidPatchRequest) (*SecurityGroup, *http.Response, error) + + /* + V3SecurityGroupsPost Create a security group + + Creates a new security group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SecurityGroupsPostRequest + */ + V3SecurityGroupsPost(ctx context.Context) ApiV3SecurityGroupsPostRequest + + // V3SecurityGroupsPostExecute executes the request + // @return SecurityGroup + V3SecurityGroupsPostExecute(r ApiV3SecurityGroupsPostRequest) (*SecurityGroup, *http.Response, error) + + /* + V3ServiceBrokersGet List service brokers + + Retrieves the service brokers the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceBrokersGetRequest + */ + V3ServiceBrokersGet(ctx context.Context) ApiV3ServiceBrokersGetRequest + + // V3ServiceBrokersGetExecute executes the request + // @return ServiceBrokerList + V3ServiceBrokersGetExecute(r ApiV3ServiceBrokersGetRequest) (*ServiceBrokerList, *http.Response, error) + + /* + V3ServiceBrokersGuidDelete Delete a service broker + + Creates a job to delete an existing service broker. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidDeleteRequest + */ + V3ServiceBrokersGuidDelete(ctx context.Context, guid string) ApiV3ServiceBrokersGuidDeleteRequest + + // V3ServiceBrokersGuidDeleteExecute executes the request + V3ServiceBrokersGuidDeleteExecute(r ApiV3ServiceBrokersGuidDeleteRequest) (*http.Response, error) + + /* + V3ServiceBrokersGuidGet Get a service broker + + Retrieves the service broker by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidGetRequest + */ + V3ServiceBrokersGuidGet(ctx context.Context, guid string) ApiV3ServiceBrokersGuidGetRequest + + // V3ServiceBrokersGuidGetExecute executes the request + // @return ServiceBroker + V3ServiceBrokersGuidGetExecute(r ApiV3ServiceBrokersGuidGetRequest) (*ServiceBroker, *http.Response, error) + + /* + V3ServiceBrokersGuidPatch Update a service broker + + Updates a service broker. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidPatchRequest + */ + V3ServiceBrokersGuidPatch(ctx context.Context, guid string) ApiV3ServiceBrokersGuidPatchRequest + + // V3ServiceBrokersGuidPatchExecute executes the request + // @return ServiceBroker + V3ServiceBrokersGuidPatchExecute(r ApiV3ServiceBrokersGuidPatchRequest) (*ServiceBroker, *http.Response, error) + + /* + V3ServiceBrokersPost Create a service broker + + Creates a new service broker and a job to synchronize the service offerings and service plans with those in the broker’s catalog. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceBrokersPostRequest + */ + V3ServiceBrokersPost(ctx context.Context) ApiV3ServiceBrokersPostRequest + + // V3ServiceBrokersPostExecute executes the request + // @return ServiceBroker + V3ServiceBrokersPostExecute(r ApiV3ServiceBrokersPostRequest) (*ServiceBroker, *http.Response, error) + + /* + V3ServiceCredentialBindingsGuidDelete Delete a service credential binding + + This endpoint deletes a service credential binding. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidDeleteRequest + */ + V3ServiceCredentialBindingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidDeleteRequest + + // V3ServiceCredentialBindingsGuidDeleteExecute executes the request + V3ServiceCredentialBindingsGuidDeleteExecute(r ApiV3ServiceCredentialBindingsGuidDeleteRequest) (*http.Response, error) + + /* + V3ServiceCredentialBindingsGuidDetailsGet Get a service credential binding details + + This endpoint retrieves the service credential binding details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidDetailsGetRequest + */ + V3ServiceCredentialBindingsGuidDetailsGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidDetailsGetRequest + + // V3ServiceCredentialBindingsGuidDetailsGetExecute executes the request + // @return V3ServiceCredentialBindingsGuidDetailsGet200Response + V3ServiceCredentialBindingsGuidDetailsGetExecute(r ApiV3ServiceCredentialBindingsGuidDetailsGetRequest) (*V3ServiceCredentialBindingsGuidDetailsGet200Response, *http.Response, error) + + /* + V3ServiceCredentialBindingsGuidGet Get a service credential binding + + This endpoint retrieves the service credential binding by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidGetRequest + */ + V3ServiceCredentialBindingsGuidGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidGetRequest + + // V3ServiceCredentialBindingsGuidGetExecute executes the request + // @return ServiceCredentialBinding + V3ServiceCredentialBindingsGuidGetExecute(r ApiV3ServiceCredentialBindingsGuidGetRequest) (*ServiceCredentialBinding, *http.Response, error) + + /* + V3ServiceCredentialBindingsGuidParametersGet Get parameters for a service credential binding + + Queries the Service Broker for the parameters associated with this service credential binding. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidParametersGetRequest + */ + V3ServiceCredentialBindingsGuidParametersGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidParametersGetRequest + + // V3ServiceCredentialBindingsGuidParametersGetExecute executes the request + // @return map[string]interface{} + V3ServiceCredentialBindingsGuidParametersGetExecute(r ApiV3ServiceCredentialBindingsGuidParametersGetRequest) (map[string]interface{}, *http.Response, error) + + /* + V3ServiceCredentialBindingsGuidPatch Update a service credential binding + + This endpoint updates a service credential binding with labels and annotations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidPatchRequest + */ + V3ServiceCredentialBindingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidPatchRequest + + // V3ServiceCredentialBindingsGuidPatchExecute executes the request + // @return ServiceCredentialBinding + V3ServiceCredentialBindingsGuidPatchExecute(r ApiV3ServiceCredentialBindingsGuidPatchRequest) (*ServiceCredentialBinding, *http.Response, error) + + /* + V3ServiceCredentialBindingsPost Create a service credential binding + + This endpoint creates a new service credential binding. Service credential bindings can be of type app or key; key is only valid for managed service instances. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceCredentialBindingsPostRequest + */ + V3ServiceCredentialBindingsPost(ctx context.Context) ApiV3ServiceCredentialBindingsPostRequest + + // V3ServiceCredentialBindingsPostExecute executes the request + // @return ServiceCredentialBinding + V3ServiceCredentialBindingsPostExecute(r ApiV3ServiceCredentialBindingsPostRequest) (*ServiceCredentialBinding, *http.Response, error) + + /* + V3ServiceInstancesGet Retrieve service instances + + Retrieves the service instances the user has access to, including access granted by service instance sharing. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceInstancesGetRequest + */ + V3ServiceInstancesGet(ctx context.Context) ApiV3ServiceInstancesGetRequest + + // V3ServiceInstancesGetExecute executes the request + // @return V3ServiceInstancesGet200Response + V3ServiceInstancesGetExecute(r ApiV3ServiceInstancesGetRequest) (*V3ServiceInstancesGet200Response, *http.Response, error) + + /* + V3ServiceInstancesGuidCredentialsGet Get credentials for a user-provided service instance + + Retrieves the credentials for a user-provided service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidCredentialsGetRequest + */ + V3ServiceInstancesGuidCredentialsGet(ctx context.Context, guid string) ApiV3ServiceInstancesGuidCredentialsGetRequest + + // V3ServiceInstancesGuidCredentialsGetExecute executes the request + // @return map[string]string + V3ServiceInstancesGuidCredentialsGetExecute(r ApiV3ServiceInstancesGuidCredentialsGetRequest) (map[string]string, *http.Response, error) + + /* + V3ServiceInstancesGuidPatch Update a service instance + + Updates a service instance with the provided attributes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidPatchRequest + */ + V3ServiceInstancesGuidPatch(ctx context.Context, guid string) ApiV3ServiceInstancesGuidPatchRequest + + // V3ServiceInstancesGuidPatchExecute executes the request + // @return ServiceInstance + V3ServiceInstancesGuidPatchExecute(r ApiV3ServiceInstancesGuidPatchRequest) (*ServiceInstance, *http.Response, error) + + /* + V3ServiceInstancesGuidRelationshipsSharedSpacesPost Share a service instance to other spaces + + Shares the service instance with the specified spaces. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + */ + V3ServiceInstancesGuidRelationshipsSharedSpacesPost(ctx context.Context, guid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + + // V3ServiceInstancesGuidRelationshipsSharedSpacesPostExecute executes the request + // @return V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + V3ServiceInstancesGuidRelationshipsSharedSpacesPostExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) (*V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest, *http.Response, error) + + /* + V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete Unshare a service instance from another space + + Unshares the service instance from the specified space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @param spaceGuid GUID of the space + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest + */ + V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete(ctx context.Context, guid string, spaceGuid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest + + // V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteExecute executes the request + V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest) (*http.Response, error) + + /* + V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet Get usage summary in shared spaces + + Returns the number of bound apps in spaces where the service instance has been shared to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest + */ + V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet(ctx context.Context, guid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest + + // V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetExecute executes the request + // @return UsageSummary + V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest) (*UsageSummary, *http.Response, error) + + /* + V3ServiceOfferingsGet List service offerings + + Retrieves the service offerings the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceOfferingsGetRequest + */ + V3ServiceOfferingsGet(ctx context.Context) ApiV3ServiceOfferingsGetRequest + + // V3ServiceOfferingsGetExecute executes the request + // @return ServiceOfferingList + V3ServiceOfferingsGetExecute(r ApiV3ServiceOfferingsGetRequest) (*ServiceOfferingList, *http.Response, error) + + /* + V3ServiceOfferingsGuidDelete Delete a service offering + + Deletes a service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidDeleteRequest + */ + V3ServiceOfferingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidDeleteRequest + + // V3ServiceOfferingsGuidDeleteExecute executes the request + V3ServiceOfferingsGuidDeleteExecute(r ApiV3ServiceOfferingsGuidDeleteRequest) (*http.Response, error) + + /* + V3ServiceOfferingsGuidGet Get a service offering + + Retrieves the service offering by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidGetRequest + */ + V3ServiceOfferingsGuidGet(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidGetRequest + + // V3ServiceOfferingsGuidGetExecute executes the request + // @return ServiceOffering + V3ServiceOfferingsGuidGetExecute(r ApiV3ServiceOfferingsGuidGetRequest) (*ServiceOffering, *http.Response, error) + + /* + V3ServiceOfferingsGuidPatch Update a service offering + + Updates a service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidPatchRequest + */ + V3ServiceOfferingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidPatchRequest + + // V3ServiceOfferingsGuidPatchExecute executes the request + // @return ServiceOffering + V3ServiceOfferingsGuidPatchExecute(r ApiV3ServiceOfferingsGuidPatchRequest) (*ServiceOffering, *http.Response, error) + + /* + V3ServiceOfferingsPost Create a service offering + + Creates a new service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceOfferingsPostRequest + */ + V3ServiceOfferingsPost(ctx context.Context) ApiV3ServiceOfferingsPostRequest + + // V3ServiceOfferingsPostExecute executes the request + // @return ServiceOffering + V3ServiceOfferingsPostExecute(r ApiV3ServiceOfferingsPostRequest) (*ServiceOffering, *http.Response, error) + + /* + V3ServicePlansGet List service plans + + Retrieves the service plans the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServicePlansGetRequest + */ + V3ServicePlansGet(ctx context.Context) ApiV3ServicePlansGetRequest + + // V3ServicePlansGetExecute executes the request + // @return ServicePlanList + V3ServicePlansGetExecute(r ApiV3ServicePlansGetRequest) (*ServicePlanList, *http.Response, error) + + /* + V3ServicePlansGuidDelete Delete a service plan + + Deletes a service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidDeleteRequest + */ + V3ServicePlansGuidDelete(ctx context.Context, guid string) ApiV3ServicePlansGuidDeleteRequest + + // V3ServicePlansGuidDeleteExecute executes the request + V3ServicePlansGuidDeleteExecute(r ApiV3ServicePlansGuidDeleteRequest) (*http.Response, error) + + /* + V3ServicePlansGuidGet Get a service plan + + Retrieves the service plan by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidGetRequest + */ + V3ServicePlansGuidGet(ctx context.Context, guid string) ApiV3ServicePlansGuidGetRequest + + // V3ServicePlansGuidGetExecute executes the request + // @return ServicePlan + V3ServicePlansGuidGetExecute(r ApiV3ServicePlansGuidGetRequest) (*ServicePlan, *http.Response, error) + + /* + V3ServicePlansGuidPatch Update a service plan + + Updates a service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidPatchRequest + */ + V3ServicePlansGuidPatch(ctx context.Context, guid string) ApiV3ServicePlansGuidPatchRequest + + // V3ServicePlansGuidPatchExecute executes the request + // @return ServicePlan + V3ServicePlansGuidPatchExecute(r ApiV3ServicePlansGuidPatchRequest) (*ServicePlan, *http.Response, error) + + /* + V3ServicePlansGuidVisibilityGet Get a service plan visibility + + Retrieves the service plan visibility for a given plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityGetRequest + */ + V3ServicePlansGuidVisibilityGet(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityGetRequest + + // V3ServicePlansGuidVisibilityGetExecute executes the request + // @return ServicePlanVisibility + V3ServicePlansGuidVisibilityGetExecute(r ApiV3ServicePlansGuidVisibilityGetRequest) (*ServicePlanVisibility, *http.Response, error) + + /* + V3ServicePlansGuidVisibilityOrganizationGuidDelete Remove organization from a service plan visibility + + Removes an organization from a service plan visibility list of organizations. Defined only for service plans which are organization-restricted. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @param organizationGuid The organization GUID + @return ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest + */ + V3ServicePlansGuidVisibilityOrganizationGuidDelete(ctx context.Context, guid string, organizationGuid string) ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest + + // V3ServicePlansGuidVisibilityOrganizationGuidDeleteExecute executes the request + V3ServicePlansGuidVisibilityOrganizationGuidDeleteExecute(r ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest) (*http.Response, error) + + /* + V3ServicePlansGuidVisibilityPatch Update a service plan visibility + + Updates a service plan visibility. Replaces the existing list of organizations when the service plan is organization visible. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityPatchRequest + */ + V3ServicePlansGuidVisibilityPatch(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityPatchRequest + + // V3ServicePlansGuidVisibilityPatchExecute executes the request + // @return ServicePlanVisibility + V3ServicePlansGuidVisibilityPatchExecute(r ApiV3ServicePlansGuidVisibilityPatchRequest) (*ServicePlanVisibility, *http.Response, error) + + /* + V3ServicePlansGuidVisibilityPost Apply a service plan visibility + + Applies a service plan visibility. Appends to the existing list of organizations when the service plan is organization visible. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityPostRequest + */ + V3ServicePlansGuidVisibilityPost(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityPostRequest + + // V3ServicePlansGuidVisibilityPostExecute executes the request + // @return ServicePlanVisibility + V3ServicePlansGuidVisibilityPostExecute(r ApiV3ServicePlansGuidVisibilityPostRequest) (*ServicePlanVisibility, *http.Response, error) + + /* + V3ServicePlansPost Create a service plan + + Creates a new service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServicePlansPostRequest + */ + V3ServicePlansPost(ctx context.Context) ApiV3ServicePlansPostRequest + + // V3ServicePlansPostExecute executes the request + // @return ServicePlan + V3ServicePlansPostExecute(r ApiV3ServicePlansPostRequest) (*ServicePlan, *http.Response, error) + + /* + V3ServiceRouteBindingsGet List service route bindings + + Retrieves the service route bindings the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceRouteBindingsGetRequest + */ + V3ServiceRouteBindingsGet(ctx context.Context) ApiV3ServiceRouteBindingsGetRequest + + // V3ServiceRouteBindingsGetExecute executes the request + // @return V3ServiceRouteBindingsGet200Response + V3ServiceRouteBindingsGetExecute(r ApiV3ServiceRouteBindingsGetRequest) (*V3ServiceRouteBindingsGet200Response, *http.Response, error) + + /* + V3ServiceRouteBindingsGuidDelete Delete a service route binding + + Deletes a service route binding. When deleting route bindings originating from user-provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidDeleteRequest + */ + V3ServiceRouteBindingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidDeleteRequest + + // V3ServiceRouteBindingsGuidDeleteExecute executes the request + V3ServiceRouteBindingsGuidDeleteExecute(r ApiV3ServiceRouteBindingsGuidDeleteRequest) (*http.Response, error) + + /* + V3ServiceRouteBindingsGuidGet Get a service route binding + + Retrieves the service route binding by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidGetRequest + */ + V3ServiceRouteBindingsGuidGet(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidGetRequest + + // V3ServiceRouteBindingsGuidGetExecute executes the request + // @return ServiceRouteBinding + V3ServiceRouteBindingsGuidGetExecute(r ApiV3ServiceRouteBindingsGuidGetRequest) (*ServiceRouteBinding, *http.Response, error) + + /* + V3ServiceRouteBindingsGuidParametersGet Get parameters for a route binding + + Queries the Service Broker for the parameters associated with this service route binding. This endpoint is not available for User-Provided Service Instances. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidParametersGetRequest + */ + V3ServiceRouteBindingsGuidParametersGet(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidParametersGetRequest + + // V3ServiceRouteBindingsGuidParametersGetExecute executes the request + // @return map[string]string + V3ServiceRouteBindingsGuidParametersGetExecute(r ApiV3ServiceRouteBindingsGuidParametersGetRequest) (map[string]string, *http.Response, error) + + /* + V3ServiceRouteBindingsGuidPatch Update a service route binding + + Updates a service route binding with labels and annotations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidPatchRequest + */ + V3ServiceRouteBindingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidPatchRequest + + // V3ServiceRouteBindingsGuidPatchExecute executes the request + // @return ServiceRouteBinding + V3ServiceRouteBindingsGuidPatchExecute(r ApiV3ServiceRouteBindingsGuidPatchRequest) (*ServiceRouteBinding, *http.Response, error) + + /* + V3ServiceRouteBindingsPost Create a service route binding + + Creates a new route service binding. The service instance and the route must be in the same space. +To bind a route to a user-provided service instance, the service instance must have the route_service_url property set. +To bind a route to a managed service instance, the service offering must be bindable, and the service offering must have route_forwarding set in the requires property. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceRouteBindingsPostRequest + */ + V3ServiceRouteBindingsPost(ctx context.Context) ApiV3ServiceRouteBindingsPostRequest + + // V3ServiceRouteBindingsPostExecute executes the request + // @return ServiceRouteBinding + V3ServiceRouteBindingsPostExecute(r ApiV3ServiceRouteBindingsPostRequest) (*ServiceRouteBinding, *http.Response, error) + + /* + V3ServiceUsageEventsGet List service usage events + + Retrieve all service usage events the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceUsageEventsGetRequest + */ + V3ServiceUsageEventsGet(ctx context.Context) ApiV3ServiceUsageEventsGetRequest + + // V3ServiceUsageEventsGetExecute executes the request + // @return V3ServiceUsageEventsGet200Response + V3ServiceUsageEventsGetExecute(r ApiV3ServiceUsageEventsGetRequest) (*V3ServiceUsageEventsGet200Response, *http.Response, error) + + /* + V3ServiceUsageEventsGuidGet Get a service usage event + + Retrieve a service usage event by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceUsageEventsGuidGetRequest + */ + V3ServiceUsageEventsGuidGet(ctx context.Context, guid string) ApiV3ServiceUsageEventsGuidGetRequest + + // V3ServiceUsageEventsGuidGetExecute executes the request + // @return ServiceUsageEvent + V3ServiceUsageEventsGuidGetExecute(r ApiV3ServiceUsageEventsGuidGetRequest) (*ServiceUsageEvent, *http.Response, error) + + /* + V3ServiceUsageEventsPost Purge and seed service usage events + + Destroys all existing events. Populates new usage events, one for each existing service instance. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceUsageEventsPostRequest + */ + V3ServiceUsageEventsPost(ctx context.Context) ApiV3ServiceUsageEventsPostRequest + + // V3ServiceUsageEventsPostExecute executes the request + V3ServiceUsageEventsPostExecute(r ApiV3ServiceUsageEventsPostRequest) (*http.Response, error) + + /* + V3SidecarsGuidDelete Delete a sidecar + + Deletes a sidecar by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidDeleteRequest + */ + V3SidecarsGuidDelete(ctx context.Context, guid string) ApiV3SidecarsGuidDeleteRequest + + // V3SidecarsGuidDeleteExecute executes the request + V3SidecarsGuidDeleteExecute(r ApiV3SidecarsGuidDeleteRequest) (*http.Response, error) + + /* + V3SidecarsGuidGet Get a sidecar + + Retrieve a sidecar by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidGetRequest + */ + V3SidecarsGuidGet(ctx context.Context, guid string) ApiV3SidecarsGuidGetRequest + + // V3SidecarsGuidGetExecute executes the request + // @return Sidecar + V3SidecarsGuidGetExecute(r ApiV3SidecarsGuidGetRequest) (*Sidecar, *http.Response, error) + + /* + V3SidecarsGuidPatch Update a sidecar + + Updates the attributes of a sidecar. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidPatchRequest + */ + V3SidecarsGuidPatch(ctx context.Context, guid string) ApiV3SidecarsGuidPatchRequest + + // V3SidecarsGuidPatchExecute executes the request + // @return Sidecar + V3SidecarsGuidPatchExecute(r ApiV3SidecarsGuidPatchRequest) (*Sidecar, *http.Response, error) + + /* + V3SpaceQuotasGet List space quotas + + List all space quota resources that the user has permission to view. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpaceQuotasGetRequest + */ + V3SpaceQuotasGet(ctx context.Context) ApiV3SpaceQuotasGetRequest + + // V3SpaceQuotasGetExecute executes the request + // @return V3SpaceQuotasGet200Response + V3SpaceQuotasGetExecute(r ApiV3SpaceQuotasGetRequest) (*V3SpaceQuotasGet200Response, *http.Response, error) + + /* + V3SpaceQuotasGuidDelete Delete a space quota + + Delete a space quota by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidDeleteRequest + */ + V3SpaceQuotasGuidDelete(ctx context.Context, guid string) ApiV3SpaceQuotasGuidDeleteRequest + + // V3SpaceQuotasGuidDeleteExecute executes the request + V3SpaceQuotasGuidDeleteExecute(r ApiV3SpaceQuotasGuidDeleteRequest) (*http.Response, error) + + /* + V3SpaceQuotasGuidGet Get a space quota + + Retrieve a space quota by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidGetRequest + */ + V3SpaceQuotasGuidGet(ctx context.Context, guid string) ApiV3SpaceQuotasGuidGetRequest + + // V3SpaceQuotasGuidGetExecute executes the request + // @return SpaceQuota + V3SpaceQuotasGuidGetExecute(r ApiV3SpaceQuotasGuidGetRequest) (*SpaceQuota, *http.Response, error) + + /* + V3SpaceQuotasGuidPatch Update a space quota + + Update the specified parameters of a space quota. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidPatchRequest + */ + V3SpaceQuotasGuidPatch(ctx context.Context, guid string) ApiV3SpaceQuotasGuidPatchRequest + + // V3SpaceQuotasGuidPatchExecute executes the request + // @return SpaceQuota + V3SpaceQuotasGuidPatchExecute(r ApiV3SpaceQuotasGuidPatchRequest) (*SpaceQuota, *http.Response, error) + + /* + V3SpaceQuotasPost Create a space quota + + Create a new space quota scoped to a specific organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpaceQuotasPostRequest + */ + V3SpaceQuotasPost(ctx context.Context) ApiV3SpaceQuotasPostRequest + + // V3SpaceQuotasPostExecute executes the request + // @return SpaceQuota + V3SpaceQuotasPostExecute(r ApiV3SpaceQuotasPostRequest) (*SpaceQuota, *http.Response, error) + + /* + V3SpaceQuotasQuotaGuidRelationshipsSpacesPost Apply a space quota to spaces + + Apply a space quota to one or more spaces. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest + */ + V3SpaceQuotasQuotaGuidRelationshipsSpacesPost(ctx context.Context, quotaGuid string) ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest + + // V3SpaceQuotasQuotaGuidRelationshipsSpacesPostExecute executes the request + // @return V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + V3SpaceQuotasQuotaGuidRelationshipsSpacesPostExecute(r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest) (*V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response, *http.Response, error) + + /* + V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete Remove a space quota from a space + + Remove a space quota from a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @param spaceGuid + @return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest + */ + V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete(ctx context.Context, quotaGuid string, spaceGuid string) ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest + + // V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteExecute executes the request + V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteExecute(r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest) (*http.Response, error) + + /* + V3SpacesGet List spaces + + Retrieve all spaces the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpacesGetRequest + */ + V3SpacesGet(ctx context.Context) ApiV3SpacesGetRequest + + // V3SpacesGetExecute executes the request + // @return V3SpacesGet200Response + V3SpacesGetExecute(r ApiV3SpacesGetRequest) (*V3SpacesGet200Response, *http.Response, error) + + /* + V3SpacesGuidDelete Delete a space + + Delete a space by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidDeleteRequest + */ + V3SpacesGuidDelete(ctx context.Context, guid string) ApiV3SpacesGuidDeleteRequest + + // V3SpacesGuidDeleteExecute executes the request + V3SpacesGuidDeleteExecute(r ApiV3SpacesGuidDeleteRequest) (*http.Response, error) + + /* + V3SpacesGuidFeaturesGet List space features + + Retrieve the list of features for the specified space. Currently, the only feature on spaces is the SSH feature. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidFeaturesGetRequest + */ + V3SpacesGuidFeaturesGet(ctx context.Context, guid string) ApiV3SpacesGuidFeaturesGetRequest + + // V3SpacesGuidFeaturesGetExecute executes the request + // @return V3SpacesGuidFeaturesGet200Response + V3SpacesGuidFeaturesGetExecute(r ApiV3SpacesGuidFeaturesGetRequest) (*V3SpacesGuidFeaturesGet200Response, *http.Response, error) + + /* + V3SpacesGuidFeaturesNameGet Get a space feature + + Retrieve a space feature by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param name + @return ApiV3SpacesGuidFeaturesNameGetRequest + */ + V3SpacesGuidFeaturesNameGet(ctx context.Context, guid string, name string) ApiV3SpacesGuidFeaturesNameGetRequest + + // V3SpacesGuidFeaturesNameGetExecute executes the request + // @return SpaceFeature + V3SpacesGuidFeaturesNameGetExecute(r ApiV3SpacesGuidFeaturesNameGetRequest) (*SpaceFeature, *http.Response, error) + + /* + V3SpacesGuidFeaturesPatch Update space features + + Update a space feature. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param name + @return ApiV3SpacesGuidFeaturesPatchRequest + */ + V3SpacesGuidFeaturesPatch(ctx context.Context, guid string, name string) ApiV3SpacesGuidFeaturesPatchRequest + + // V3SpacesGuidFeaturesPatchExecute executes the request + // @return SpaceFeature + V3SpacesGuidFeaturesPatchExecute(r ApiV3SpacesGuidFeaturesPatchRequest) (*SpaceFeature, *http.Response, error) + + /* + V3SpacesGuidGet Get a space + + Retrieve a space by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidGetRequest + */ + V3SpacesGuidGet(ctx context.Context, guid string) ApiV3SpacesGuidGetRequest + + // V3SpacesGuidGetExecute executes the request + // @return Space + V3SpacesGuidGetExecute(r ApiV3SpacesGuidGetRequest) (*Space, *http.Response, error) + + /* + V3SpacesGuidPatch Update a space + + Update a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidPatchRequest + */ + V3SpacesGuidPatch(ctx context.Context, guid string) ApiV3SpacesGuidPatchRequest + + // V3SpacesGuidPatchExecute executes the request + // @return Space + V3SpacesGuidPatchExecute(r ApiV3SpacesGuidPatchRequest) (*Space, *http.Response, error) + + /* + V3SpacesGuidRelationshipsIsolationSegmentGet Get assigned isolation segment + + Retrieve the isolation segment assigned to the space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest + */ + V3SpacesGuidRelationshipsIsolationSegmentGet(ctx context.Context, guid string) ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest + + // V3SpacesGuidRelationshipsIsolationSegmentGetExecute executes the request + // @return V3AppsPostRequestRelationshipsSpace + V3SpacesGuidRelationshipsIsolationSegmentGetExecute(r ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest) (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) + + /* + V3SpacesGuidRelationshipsIsolationSegmentPatch Manage isolation segment + + Assign or unassign an isolation segment to a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest + */ + V3SpacesGuidRelationshipsIsolationSegmentPatch(ctx context.Context, guid string) ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest + + // V3SpacesGuidRelationshipsIsolationSegmentPatchExecute executes the request + // @return V3AppsPostRequestRelationshipsSpace + V3SpacesGuidRelationshipsIsolationSegmentPatchExecute(r ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest) (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) + + /* + V3SpacesGuidUsersGet List users for a space + + Retrieve all users with a role in the specified space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidUsersGetRequest + */ + V3SpacesGuidUsersGet(ctx context.Context, guid string) ApiV3SpacesGuidUsersGetRequest + + // V3SpacesGuidUsersGetExecute executes the request + // @return V3SpacesGuidUsersGet200Response + V3SpacesGuidUsersGetExecute(r ApiV3SpacesGuidUsersGetRequest) (*V3SpacesGuidUsersGet200Response, *http.Response, error) + + /* + V3SpacesPost Create a space + + Create a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpacesPostRequest + */ + V3SpacesPost(ctx context.Context) ApiV3SpacesPostRequest + + // V3SpacesPostExecute executes the request + // @return Space + V3SpacesPostExecute(r ApiV3SpacesPostRequest) (*Space, *http.Response, error) + + /* + V3StacksGet List all stacks + + Retrieve all stacks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3StacksGetRequest + */ + V3StacksGet(ctx context.Context) ApiV3StacksGetRequest + + // V3StacksGetExecute executes the request + // @return V3StacksGet200Response + V3StacksGetExecute(r ApiV3StacksGetRequest) (*V3StacksGet200Response, *http.Response, error) + + /* + V3StacksGuidAppsGet List apps on a stack + + Retrieve all apps using a given stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidAppsGetRequest + */ + V3StacksGuidAppsGet(ctx context.Context, guid string) ApiV3StacksGuidAppsGetRequest + + // V3StacksGuidAppsGetExecute executes the request + // @return V3StacksGuidAppsGet200Response + V3StacksGuidAppsGetExecute(r ApiV3StacksGuidAppsGetRequest) (*V3StacksGuidAppsGet200Response, *http.Response, error) + + /* + V3StacksGuidDelete Delete a stack + + Delete a stack by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidDeleteRequest + */ + V3StacksGuidDelete(ctx context.Context, guid string) ApiV3StacksGuidDeleteRequest + + // V3StacksGuidDeleteExecute executes the request + V3StacksGuidDeleteExecute(r ApiV3StacksGuidDeleteRequest) (*http.Response, error) + + /* + V3StacksGuidGet Get a stack by GUID + + Retrieve a stack by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidGetRequest + */ + V3StacksGuidGet(ctx context.Context, guid string) ApiV3StacksGuidGetRequest + + // V3StacksGuidGetExecute executes the request + // @return Stack + V3StacksGuidGetExecute(r ApiV3StacksGuidGetRequest) (*Stack, *http.Response, error) + + /* + V3StacksGuidPatch Update a stack + + Update the specified parameters of a stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidPatchRequest + */ + V3StacksGuidPatch(ctx context.Context, guid string) ApiV3StacksGuidPatchRequest + + // V3StacksGuidPatchExecute executes the request + // @return Stack + V3StacksGuidPatchExecute(r ApiV3StacksGuidPatchRequest) (*Stack, *http.Response, error) + + /* + V3StacksPost Create a stack + + Create a new stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3StacksPostRequest + */ + V3StacksPost(ctx context.Context) ApiV3StacksPostRequest + + // V3StacksPostExecute executes the request + // @return Stack + V3StacksPostExecute(r ApiV3StacksPostRequest) (*Stack, *http.Response, error) + + /* + V3TasksGet List all tasks + + Retrieve all tasks the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3TasksGetRequest + */ + V3TasksGet(ctx context.Context) ApiV3TasksGetRequest + + // V3TasksGetExecute executes the request + // @return V3TasksGet200Response + V3TasksGetExecute(r ApiV3TasksGetRequest) (*V3TasksGet200Response, *http.Response, error) + + /* + V3TasksGuidGet Get a task + + Retrieve a specific task by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidGetRequest + */ + V3TasksGuidGet(ctx context.Context, guid string) ApiV3TasksGuidGetRequest + + // V3TasksGuidGetExecute executes the request + // @return Task + V3TasksGuidGetExecute(r ApiV3TasksGuidGetRequest) (*Task, *http.Response, error) + + /* + V3TasksGuidPatch Update a task + + Update the specified parameters of a task. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidPatchRequest + */ + V3TasksGuidPatch(ctx context.Context, guid string) ApiV3TasksGuidPatchRequest + + // V3TasksGuidPatchExecute executes the request + // @return Task + V3TasksGuidPatchExecute(r ApiV3TasksGuidPatchRequest) (*Task, *http.Response, error) + + /* + V3TasksGuidPost Cancel a task + + Cancels a running task. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidPostRequest + */ + V3TasksGuidPost(ctx context.Context, guid string) ApiV3TasksGuidPostRequest + + // V3TasksGuidPostExecute executes the request + // @return Task + V3TasksGuidPostExecute(r ApiV3TasksGuidPostRequest) (*Task, *http.Response, error) + + /* + V3UsersGet List users + + Retrieve all users that the current user can see. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3UsersGetRequest + */ + V3UsersGet(ctx context.Context) ApiV3UsersGetRequest + + // V3UsersGetExecute executes the request + // @return V3UsersGet200Response + V3UsersGetExecute(r ApiV3UsersGetRequest) (*V3UsersGet200Response, *http.Response, error) + + /* + V3UsersGuidDelete Delete a user + + Delete a user by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidDeleteRequest + */ + V3UsersGuidDelete(ctx context.Context, guid string) ApiV3UsersGuidDeleteRequest + + // V3UsersGuidDeleteExecute executes the request + V3UsersGuidDeleteExecute(r ApiV3UsersGuidDeleteRequest) (*http.Response, error) + + /* + V3UsersGuidGet Get a user + + Retrieve a user by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidGetRequest + */ + V3UsersGuidGet(ctx context.Context, guid string) ApiV3UsersGuidGetRequest + + // V3UsersGuidGetExecute executes the request + // @return User + V3UsersGuidGetExecute(r ApiV3UsersGuidGetRequest) (*User, *http.Response, error) + + /* + V3UsersGuidPatch Update a user + + Update a user’s metadata. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidPatchRequest + */ + V3UsersGuidPatch(ctx context.Context, guid string) ApiV3UsersGuidPatchRequest + + // V3UsersGuidPatchExecute executes the request + // @return User + V3UsersGuidPatchExecute(r ApiV3UsersGuidPatchRequest) (*User, *http.Response, error) + + /* + V3UsersPost Create a user + + Creates a user in the Cloud Controller database. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3UsersPostRequest + */ + V3UsersPost(ctx context.Context) ApiV3UsersPostRequest + + // V3UsersPostExecute executes the request + // @return User + V3UsersPostExecute(r ApiV3UsersPostRequest) (*User, *http.Response, error) +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiApplyOrganizationQuotaToOrganizationsRequest struct { + ctx context.Context + ApiService DefaultAPI + quotaGuid string + applyOrganizationQuotaToOrganizationsRequest *ApplyOrganizationQuotaToOrganizationsRequest +} + +func (r ApiApplyOrganizationQuotaToOrganizationsRequest) ApplyOrganizationQuotaToOrganizationsRequest(applyOrganizationQuotaToOrganizationsRequest ApplyOrganizationQuotaToOrganizationsRequest) ApiApplyOrganizationQuotaToOrganizationsRequest { + r.applyOrganizationQuotaToOrganizationsRequest = &applyOrganizationQuotaToOrganizationsRequest + return r +} + +func (r ApiApplyOrganizationQuotaToOrganizationsRequest) Execute() (*ApplyOrganizationQuotaToOrganizations201Response, *http.Response, error) { + return r.ApiService.ApplyOrganizationQuotaToOrganizationsExecute(r) +} + +/* +ApplyOrganizationQuotaToOrganizations Apply an organization quota to organizations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @return ApiApplyOrganizationQuotaToOrganizationsRequest +*/ +func (a *DefaultAPIService) ApplyOrganizationQuotaToOrganizations(ctx context.Context, quotaGuid string) ApiApplyOrganizationQuotaToOrganizationsRequest { + return ApiApplyOrganizationQuotaToOrganizationsRequest{ + ApiService: a, + ctx: ctx, + quotaGuid: quotaGuid, + } +} + +// Execute executes the request +// @return ApplyOrganizationQuotaToOrganizations201Response +func (a *DefaultAPIService) ApplyOrganizationQuotaToOrganizationsExecute(r ApiApplyOrganizationQuotaToOrganizationsRequest) (*ApplyOrganizationQuotaToOrganizations201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApplyOrganizationQuotaToOrganizations201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApplyOrganizationQuotaToOrganizations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas/{quota_guid}/relationships/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"quota_guid"+"}", url.PathEscape(parameterValueToString(r.quotaGuid, "quotaGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.applyOrganizationQuotaToOrganizationsRequest == nil { + return localVarReturnValue, nil, reportError("applyOrganizationQuotaToOrganizationsRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.applyOrganizationQuotaToOrganizationsRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAssignDefaultIsolationSegmentRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsPostRequestRelationshipsSpace *V3AppsPostRequestRelationshipsSpace +} + +func (r ApiAssignDefaultIsolationSegmentRequest) V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace V3AppsPostRequestRelationshipsSpace) ApiAssignDefaultIsolationSegmentRequest { + r.v3AppsPostRequestRelationshipsSpace = &v3AppsPostRequestRelationshipsSpace + return r +} + +func (r ApiAssignDefaultIsolationSegmentRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.AssignDefaultIsolationSegmentExecute(r) +} + +/* +AssignDefaultIsolationSegment Assign Default Isolation Segment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiAssignDefaultIsolationSegmentRequest +*/ +func (a *DefaultAPIService) AssignDefaultIsolationSegment(ctx context.Context, guid string) ApiAssignDefaultIsolationSegmentRequest { + return ApiAssignDefaultIsolationSegmentRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) AssignDefaultIsolationSegmentExecute(r ApiAssignDefaultIsolationSegmentRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AssignDefaultIsolationSegment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}/relationships/default_isolation_segment" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsPostRequestRelationshipsSpace + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + createOrganizationRequest *CreateOrganizationRequest +} + +func (r ApiCreateOrganizationRequest) CreateOrganizationRequest(createOrganizationRequest CreateOrganizationRequest) ApiCreateOrganizationRequest { + r.createOrganizationRequest = &createOrganizationRequest + return r +} + +func (r ApiCreateOrganizationRequest) Execute() (*Organization, *http.Response, error) { + return r.ApiService.CreateOrganizationExecute(r) +} + +/* +CreateOrganization Create an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrganizationRequest +*/ +func (a *DefaultAPIService) CreateOrganization(ctx context.Context) ApiCreateOrganizationRequest { + return ApiCreateOrganizationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Organization +func (a *DefaultAPIService) CreateOrganizationExecute(r ApiCreateOrganizationRequest) (*Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createOrganizationRequest == nil { + return localVarReturnValue, nil, reportError("createOrganizationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createOrganizationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateOrganizationQuotaRequest struct { + ctx context.Context + ApiService DefaultAPI + createOrganizationQuotaRequest *CreateOrganizationQuotaRequest +} + +func (r ApiCreateOrganizationQuotaRequest) CreateOrganizationQuotaRequest(createOrganizationQuotaRequest CreateOrganizationQuotaRequest) ApiCreateOrganizationQuotaRequest { + r.createOrganizationQuotaRequest = &createOrganizationQuotaRequest + return r +} + +func (r ApiCreateOrganizationQuotaRequest) Execute() (*OrganizationQuota, *http.Response, error) { + return r.ApiService.CreateOrganizationQuotaExecute(r) +} + +/* +CreateOrganizationQuota Create an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrganizationQuotaRequest +*/ +func (a *DefaultAPIService) CreateOrganizationQuota(ctx context.Context) ApiCreateOrganizationQuotaRequest { + return ApiCreateOrganizationQuotaRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OrganizationQuota +func (a *DefaultAPIService) CreateOrganizationQuotaExecute(r ApiCreateOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateOrganizationQuota") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createOrganizationQuotaRequest == nil { + return localVarReturnValue, nil, reportError("createOrganizationQuotaRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createOrganizationQuotaRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiDeleteOrganizationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteOrganizationExecute(r) +} + +/* +DeleteOrganization Delete an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiDeleteOrganizationRequest +*/ +func (a *DefaultAPIService) DeleteOrganization(ctx context.Context, guid string) ApiDeleteOrganizationRequest { + return ApiDeleteOrganizationRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) DeleteOrganizationExecute(r ApiDeleteOrganizationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteOrganizationQuotaRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiDeleteOrganizationQuotaRequest) Execute() (*DeleteOrganizationQuota202Response, *http.Response, error) { + return r.ApiService.DeleteOrganizationQuotaExecute(r) +} + +/* +DeleteOrganizationQuota Delete an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiDeleteOrganizationQuotaRequest +*/ +func (a *DefaultAPIService) DeleteOrganizationQuota(ctx context.Context, guid string) ApiDeleteOrganizationQuotaRequest { + return ApiDeleteOrganizationQuotaRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return DeleteOrganizationQuota202Response +func (a *DefaultAPIService) DeleteOrganizationQuotaExecute(r ApiDeleteOrganizationQuotaRequest) (*DeleteOrganizationQuota202Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteOrganizationQuota202Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteOrganizationQuota") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDefaultDomainRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiGetDefaultDomainRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetDefaultDomainExecute(r) +} + +/* +GetDefaultDomain Get Default Domain + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetDefaultDomainRequest +*/ +func (a *DefaultAPIService) GetDefaultDomain(ctx context.Context, guid string) ApiGetDefaultDomainRequest { + return ApiGetDefaultDomainRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) GetDefaultDomainExecute(r ApiGetDefaultDomainRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetDefaultDomain") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}/domains/default" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetDefaultIsolationSegmentRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiGetDefaultIsolationSegmentRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetDefaultIsolationSegmentExecute(r) +} + +/* +GetDefaultIsolationSegment Get Default Isolation Segment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetDefaultIsolationSegmentRequest +*/ +func (a *DefaultAPIService) GetDefaultIsolationSegment(ctx context.Context, guid string) ApiGetDefaultIsolationSegmentRequest { + return ApiGetDefaultIsolationSegmentRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) GetDefaultIsolationSegmentExecute(r ApiGetDefaultIsolationSegmentRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetDefaultIsolationSegment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}/relationships/default_isolation_segment" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiGetOrganizationRequest) Execute() (*Organization, *http.Response, error) { + return r.ApiService.GetOrganizationExecute(r) +} + +/* +GetOrganization Get an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetOrganizationRequest +*/ +func (a *DefaultAPIService) GetOrganization(ctx context.Context, guid string) ApiGetOrganizationRequest { + return ApiGetOrganizationRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Organization +func (a *DefaultAPIService) GetOrganizationExecute(r ApiGetOrganizationRequest) (*Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOrganizationQuotaRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiGetOrganizationQuotaRequest) Execute() (*OrganizationQuota, *http.Response, error) { + return r.ApiService.GetOrganizationQuotaExecute(r) +} + +/* +GetOrganizationQuota Get an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetOrganizationQuotaRequest +*/ +func (a *DefaultAPIService) GetOrganizationQuota(ctx context.Context, guid string) ApiGetOrganizationQuotaRequest { + return ApiGetOrganizationQuotaRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return OrganizationQuota +func (a *DefaultAPIService) GetOrganizationQuotaExecute(r ApiGetOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetOrganizationQuota") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetUsageSummaryRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiGetUsageSummaryRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetUsageSummaryExecute(r) +} + +/* +GetUsageSummary Get Usage Summary + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiGetUsageSummaryRequest +*/ +func (a *DefaultAPIService) GetUsageSummary(ctx context.Context, guid string) ApiGetUsageSummaryRequest { + return ApiGetUsageSummaryRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) GetUsageSummaryExecute(r ApiGetUsageSummaryRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUsageSummary") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}/usage_summary" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListOrganizationQuotasRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + names *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + createdAts *time.Time + updatedAts *time.Time +} + +func (r ApiListOrganizationQuotasRequest) Guids(guids []string) ApiListOrganizationQuotasRequest { + r.guids = &guids + return r +} + +func (r ApiListOrganizationQuotasRequest) Names(names []string) ApiListOrganizationQuotasRequest { + r.names = &names + return r +} + +func (r ApiListOrganizationQuotasRequest) OrganizationGuids(organizationGuids []string) ApiListOrganizationQuotasRequest { + r.organizationGuids = &organizationGuids + return r +} + +func (r ApiListOrganizationQuotasRequest) Page(page int32) ApiListOrganizationQuotasRequest { + r.page = &page + return r +} + +func (r ApiListOrganizationQuotasRequest) PerPage(perPage int32) ApiListOrganizationQuotasRequest { + r.perPage = &perPage + return r +} + +func (r ApiListOrganizationQuotasRequest) OrderBy(orderBy string) ApiListOrganizationQuotasRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiListOrganizationQuotasRequest) CreatedAts(createdAts time.Time) ApiListOrganizationQuotasRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiListOrganizationQuotasRequest) UpdatedAts(updatedAts time.Time) ApiListOrganizationQuotasRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiListOrganizationQuotasRequest) Execute() (*ListOrganizationQuotas200Response, *http.Response, error) { + return r.ApiService.ListOrganizationQuotasExecute(r) +} + +/* +ListOrganizationQuotas List organization quotas + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListOrganizationQuotasRequest +*/ +func (a *DefaultAPIService) ListOrganizationQuotas(ctx context.Context) ApiListOrganizationQuotasRequest { + return ApiListOrganizationQuotasRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ListOrganizationQuotas200Response +func (a *DefaultAPIService) ListOrganizationQuotasExecute(r ApiListOrganizationQuotasRequest) (*ListOrganizationQuotas200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListOrganizationQuotas200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListOrganizationQuotas") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListOrganizationsRequest struct { + ctx context.Context + ApiService DefaultAPI + names *string + guids *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiListOrganizationsRequest) Names(names string) ApiListOrganizationsRequest { + r.names = &names + return r +} + +func (r ApiListOrganizationsRequest) Guids(guids string) ApiListOrganizationsRequest { + r.guids = &guids + return r +} + +func (r ApiListOrganizationsRequest) Page(page int32) ApiListOrganizationsRequest { + r.page = &page + return r +} + +func (r ApiListOrganizationsRequest) PerPage(perPage int32) ApiListOrganizationsRequest { + r.perPage = &perPage + return r +} + +func (r ApiListOrganizationsRequest) OrderBy(orderBy string) ApiListOrganizationsRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiListOrganizationsRequest) LabelSelector(labelSelector string) ApiListOrganizationsRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiListOrganizationsRequest) CreatedAts(createdAts string) ApiListOrganizationsRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiListOrganizationsRequest) UpdatedAts(updatedAts string) ApiListOrganizationsRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiListOrganizationsRequest) Execute() ([]Organization, *http.Response, error) { + return r.ApiService.ListOrganizationsExecute(r) +} + +/* +ListOrganizations List Organizations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListOrganizationsRequest +*/ +func (a *DefaultAPIService) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest { + return ApiListOrganizationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Organization +func (a *DefaultAPIService) ListOrganizationsExecute(r ApiListOrganizationsRequest) ([]Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListOrganizations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListUsersForOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + guids *string + usernames *string + partialUsernames *string + origins *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiListUsersForOrganizationRequest) Guids(guids string) ApiListUsersForOrganizationRequest { + r.guids = &guids + return r +} + +func (r ApiListUsersForOrganizationRequest) Usernames(usernames string) ApiListUsersForOrganizationRequest { + r.usernames = &usernames + return r +} + +func (r ApiListUsersForOrganizationRequest) PartialUsernames(partialUsernames string) ApiListUsersForOrganizationRequest { + r.partialUsernames = &partialUsernames + return r +} + +func (r ApiListUsersForOrganizationRequest) Origins(origins string) ApiListUsersForOrganizationRequest { + r.origins = &origins + return r +} + +func (r ApiListUsersForOrganizationRequest) Page(page int32) ApiListUsersForOrganizationRequest { + r.page = &page + return r +} + +func (r ApiListUsersForOrganizationRequest) PerPage(perPage int32) ApiListUsersForOrganizationRequest { + r.perPage = &perPage + return r +} + +func (r ApiListUsersForOrganizationRequest) OrderBy(orderBy string) ApiListUsersForOrganizationRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiListUsersForOrganizationRequest) LabelSelector(labelSelector string) ApiListUsersForOrganizationRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiListUsersForOrganizationRequest) CreatedAts(createdAts string) ApiListUsersForOrganizationRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiListUsersForOrganizationRequest) UpdatedAts(updatedAts string) ApiListUsersForOrganizationRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiListUsersForOrganizationRequest) Execute() ([]User, *http.Response, error) { + return r.ApiService.ListUsersForOrganizationExecute(r) +} + +/* +ListUsersForOrganization List Users for an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiListUsersForOrganizationRequest +*/ +func (a *DefaultAPIService) ListUsersForOrganization(ctx context.Context, guid string) ApiListUsersForOrganizationRequest { + return ApiListUsersForOrganizationRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return []User +func (a *DefaultAPIService) ListUsersForOrganizationExecute(r ApiListUsersForOrganizationRequest) ([]User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListUsersForOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}/users" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.usernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usernames", r.usernames, "form", "") + } + if r.partialUsernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "partial_usernames", r.partialUsernames, "form", "") + } + if r.origins != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "origins", r.origins, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRootGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiRootGetRequest) Execute() (*Get200Response, *http.Response, error) { + return r.ApiService.RootGetExecute(r) +} + +/* +RootGet Global API Root + +Returns links to the APIs available on a given Cloud Foundry deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRootGetRequest +*/ +func (a *DefaultAPIService) RootGet(ctx context.Context) ApiRootGetRequest { + return ApiRootGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Get200Response +func (a *DefaultAPIService) RootGetExecute(r ApiRootGetRequest) (*Get200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Get200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RootGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + updateOrganizationRequest *UpdateOrganizationRequest +} + +func (r ApiUpdateOrganizationRequest) UpdateOrganizationRequest(updateOrganizationRequest UpdateOrganizationRequest) ApiUpdateOrganizationRequest { + r.updateOrganizationRequest = &updateOrganizationRequest + return r +} + +func (r ApiUpdateOrganizationRequest) Execute() (*Organization, *http.Response, error) { + return r.ApiService.UpdateOrganizationExecute(r) +} + +/* +UpdateOrganization Update an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiUpdateOrganizationRequest +*/ +func (a *DefaultAPIService) UpdateOrganization(ctx context.Context, guid string) ApiUpdateOrganizationRequest { + return ApiUpdateOrganizationRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Organization +func (a *DefaultAPIService) UpdateOrganizationExecute(r ApiUpdateOrganizationRequest) (*Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organizations/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateOrganizationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateOrganizationQuotaRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + updateOrganizationQuotaRequest *UpdateOrganizationQuotaRequest +} + +func (r ApiUpdateOrganizationQuotaRequest) UpdateOrganizationQuotaRequest(updateOrganizationQuotaRequest UpdateOrganizationQuotaRequest) ApiUpdateOrganizationQuotaRequest { + r.updateOrganizationQuotaRequest = &updateOrganizationQuotaRequest + return r +} + +func (r ApiUpdateOrganizationQuotaRequest) Execute() (*OrganizationQuota, *http.Response, error) { + return r.ApiService.UpdateOrganizationQuotaExecute(r) +} + +/* +UpdateOrganizationQuota Update an organization quota + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiUpdateOrganizationQuotaRequest +*/ +func (a *DefaultAPIService) UpdateOrganizationQuota(ctx context.Context, guid string) ApiUpdateOrganizationQuotaRequest { + return ApiUpdateOrganizationQuotaRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return OrganizationQuota +func (a *DefaultAPIService) UpdateOrganizationQuotaExecute(r ApiUpdateOrganizationQuotaRequest) (*OrganizationQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrganizationQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateOrganizationQuota") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/organization_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateOrganizationQuotaRequest == nil { + return localVarReturnValue, nil, reportError("updateOrganizationQuotaRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateOrganizationQuotaRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AdminActionsClearBuildpackCachePostRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3AdminActionsClearBuildpackCachePostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AdminActionsClearBuildpackCachePostExecute(r) +} + +/* +V3AdminActionsClearBuildpackCachePost Clear buildpack cache + +This endpoint will delete all of the existing buildpack caches in the blobstore. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AdminActionsClearBuildpackCachePostRequest +*/ +func (a *DefaultAPIService) V3AdminActionsClearBuildpackCachePost(ctx context.Context) ApiV3AdminActionsClearBuildpackCachePostRequest { + return ApiV3AdminActionsClearBuildpackCachePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AdminActionsClearBuildpackCachePostExecute(r ApiV3AdminActionsClearBuildpackCachePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AdminActionsClearBuildpackCachePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/admin/actions/clear_buildpack_cache" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + page *int32 + perPage *int32 + orderBy *string + names *string + guids *string + organizationGuids *string + spaceGuids *string + stacks *string + include *string + lifecycleType *string + labelSelector *string + createdAts *string + updatedAts *string +} + +// Page number for pagination. +func (r ApiV3AppsGetRequest) Page(page int32) ApiV3AppsGetRequest { + r.page = &page + return r +} + +// Number of results per page. +func (r ApiV3AppsGetRequest) PerPage(perPage int32) ApiV3AppsGetRequest { + r.perPage = &perPage + return r +} + +// Field by which to order results. +func (r ApiV3AppsGetRequest) OrderBy(orderBy string) ApiV3AppsGetRequest { + r.orderBy = &orderBy + return r +} + +// Filter results by app names. +func (r ApiV3AppsGetRequest) Names(names string) ApiV3AppsGetRequest { + r.names = &names + return r +} + +// Filter results by app GUIDs. +func (r ApiV3AppsGetRequest) Guids(guids string) ApiV3AppsGetRequest { + r.guids = &guids + return r +} + +// Filter results by organization GUIDs. +func (r ApiV3AppsGetRequest) OrganizationGuids(organizationGuids string) ApiV3AppsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Filter results by space GUIDs. +func (r ApiV3AppsGetRequest) SpaceGuids(spaceGuids string) ApiV3AppsGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Filter results by stack names. +func (r ApiV3AppsGetRequest) Stacks(stacks string) ApiV3AppsGetRequest { + r.stacks = &stacks + return r +} + +// Include related resources in the response. +func (r ApiV3AppsGetRequest) Include(include string) ApiV3AppsGetRequest { + r.include = &include + return r +} + +// Filter results by lifecycle type. +func (r ApiV3AppsGetRequest) LifecycleType(lifecycleType string) ApiV3AppsGetRequest { + r.lifecycleType = &lifecycleType + return r +} + +// Filter results by label selector. +func (r ApiV3AppsGetRequest) LabelSelector(labelSelector string) ApiV3AppsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Filter results by creation timestamps. +func (r ApiV3AppsGetRequest) CreatedAts(createdAts string) ApiV3AppsGetRequest { + r.createdAts = &createdAts + return r +} + +// Filter results by update timestamps. +func (r ApiV3AppsGetRequest) UpdatedAts(updatedAts string) ApiV3AppsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3AppsGetRequest) Execute() (*App, *http.Response, error) { + return r.ApiService.V3AppsGetExecute(r) +} + +/* +V3AppsGet List apps + +Retrieve a list of all apps. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGet(ctx context.Context) ApiV3AppsGetRequest { + return ApiV3AppsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return App +func (a *DefaultAPIService) V3AppsGetExecute(r ApiV3AppsGetRequest) (*App, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *App + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "") + } + if r.stacks != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "stacks", r.stacks, "form", "") + } + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "") + } + if r.lifecycleType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "lifecycle_type", r.lifecycleType, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidActionsClearBuildpackCachePostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidActionsClearBuildpackCachePostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidActionsClearBuildpackCachePostExecute(r) +} + +/* +V3AppsGuidActionsClearBuildpackCachePost Clear buildpack cache for application + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsClearBuildpackCachePostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidActionsClearBuildpackCachePost(ctx context.Context, guid string) ApiV3AppsGuidActionsClearBuildpackCachePostRequest { + return ApiV3AppsGuidActionsClearBuildpackCachePostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidActionsClearBuildpackCachePostExecute(r ApiV3AppsGuidActionsClearBuildpackCachePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidActionsClearBuildpackCachePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/actions/clear_buildpack_cache" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidActionsRestartPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidActionsRestartPostRequest) Execute() (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidActionsRestartPostExecute(r) +} + +/* +V3AppsGuidActionsRestartPost Restart an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsRestartPostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidActionsRestartPost(ctx context.Context, guid string) ApiV3AppsGuidActionsRestartPostRequest { + return ApiV3AppsGuidActionsRestartPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidActionsRestartPost200Response +func (a *DefaultAPIService) V3AppsGuidActionsRestartPostExecute(r ApiV3AppsGuidActionsRestartPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidActionsRestartPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidActionsRestartPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/actions/restart" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidActionsStartPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidActionsStartPostRequest) Execute() (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidActionsStartPostExecute(r) +} + +/* +V3AppsGuidActionsStartPost Start an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsStartPostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidActionsStartPost(ctx context.Context, guid string) ApiV3AppsGuidActionsStartPostRequest { + return ApiV3AppsGuidActionsStartPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidActionsRestartPost200Response +func (a *DefaultAPIService) V3AppsGuidActionsStartPostExecute(r ApiV3AppsGuidActionsStartPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidActionsRestartPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidActionsStartPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/actions/start" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidActionsStopPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidActionsStopPostRequest) Execute() (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidActionsStopPostExecute(r) +} + +/* +V3AppsGuidActionsStopPost Stop an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidActionsStopPostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidActionsStopPost(ctx context.Context, guid string) ApiV3AppsGuidActionsStopPostRequest { + return ApiV3AppsGuidActionsStopPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidActionsRestartPost200Response +func (a *DefaultAPIService) V3AppsGuidActionsStopPostExecute(r ApiV3AppsGuidActionsStopPostRequest) (*V3AppsGuidActionsRestartPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidActionsRestartPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidActionsStopPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/actions/stop" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidBuildsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidBuildsGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidBuildsGetExecute(r) +} + +/* +V3AppsGuidBuildsGet List builds for an app + +Retrieve all builds for the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidBuildsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidBuildsGet(ctx context.Context, guid string) ApiV3AppsGuidBuildsGetRequest { + return ApiV3AppsGuidBuildsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidBuildsGetExecute(r ApiV3AppsGuidBuildsGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidBuildsGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/builds" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidDeleteExecute(r) +} + +/* +V3AppsGuidDelete Delete an app + +Delete the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3AppsGuidDelete(ctx context.Context, guid string) ApiV3AppsGuidDeleteRequest { + return ApiV3AppsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidDeleteExecute(r ApiV3AppsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidDropletsCurrentGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidDropletsCurrentGetRequest) Execute() (*V3AppsGuidDropletsCurrentGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidDropletsCurrentGetExecute(r) +} + +/* +V3AppsGuidDropletsCurrentGet Get current droplet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidDropletsCurrentGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidDropletsCurrentGet(ctx context.Context, guid string) ApiV3AppsGuidDropletsCurrentGetRequest { + return ApiV3AppsGuidDropletsCurrentGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidDropletsCurrentGet200Response +func (a *DefaultAPIService) V3AppsGuidDropletsCurrentGetExecute(r ApiV3AppsGuidDropletsCurrentGetRequest) (*V3AppsGuidDropletsCurrentGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidDropletsCurrentGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidDropletsCurrentGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/droplets/current" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidDropletsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + guids *[]string + states *[]string + current *bool + page *int32 + perPage *int32 + orderBy *string + labelSelector *string +} + +// Comma-delimited list of droplet guids to filter by +func (r ApiV3AppsGuidDropletsGetRequest) Guids(guids []string) ApiV3AppsGuidDropletsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of droplet states to filter by +func (r ApiV3AppsGuidDropletsGetRequest) States(states []string) ApiV3AppsGuidDropletsGetRequest { + r.states = &states + return r +} + +// If true, only include the droplet currently assigned to the app +func (r ApiV3AppsGuidDropletsGetRequest) Current(current bool) ApiV3AppsGuidDropletsGetRequest { + r.current = ¤t + return r +} + +// Page to display +func (r ApiV3AppsGuidDropletsGetRequest) Page(page int32) ApiV3AppsGuidDropletsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3AppsGuidDropletsGetRequest) PerPage(perPage int32) ApiV3AppsGuidDropletsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3AppsGuidDropletsGetRequest) OrderBy(orderBy string) ApiV3AppsGuidDropletsGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3AppsGuidDropletsGetRequest) LabelSelector(labelSelector string) ApiV3AppsGuidDropletsGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3AppsGuidDropletsGetRequest) Execute() (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidDropletsGetExecute(r) +} + +/* +V3AppsGuidDropletsGet List droplets for an app + +Retrieve a list of droplets belonging to an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the app + @return ApiV3AppsGuidDropletsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidDropletsGet(ctx context.Context, guid string) ApiV3AppsGuidDropletsGetRequest { + return ApiV3AppsGuidDropletsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidDropletsGet200Response +func (a *DefaultAPIService) V3AppsGuidDropletsGetExecute(r ApiV3AppsGuidDropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidDropletsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidDropletsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/droplets" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.states != nil { + t := *r.states + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", t, "form", "multi") + } + } + if r.current != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "current", r.current, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidEnvGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidEnvGetRequest) Execute() (*V3AppsGuidEnvGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidEnvGetExecute(r) +} + +/* +V3AppsGuidEnvGet Get environment for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidEnvGet(ctx context.Context, guid string) ApiV3AppsGuidEnvGetRequest { + return ApiV3AppsGuidEnvGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidEnvGet200Response +func (a *DefaultAPIService) V3AppsGuidEnvGetExecute(r ApiV3AppsGuidEnvGetRequest) (*V3AppsGuidEnvGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidEnvGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidEnvGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/env" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidEnvironmentVariablesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidEnvironmentVariablesGetRequest) Execute() (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidEnvironmentVariablesGetExecute(r) +} + +/* +V3AppsGuidEnvironmentVariablesGet Get environment variables for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvironmentVariablesGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidEnvironmentVariablesGet(ctx context.Context, guid string) ApiV3AppsGuidEnvironmentVariablesGetRequest { + return ApiV3AppsGuidEnvironmentVariablesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidEnvironmentVariablesGet200Response +func (a *DefaultAPIService) V3AppsGuidEnvironmentVariablesGetExecute(r ApiV3AppsGuidEnvironmentVariablesGetRequest) (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidEnvironmentVariablesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidEnvironmentVariablesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/environment_variables" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidEnvironmentVariablesPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsGuidEnvironmentVariablesPatchRequest *V3AppsGuidEnvironmentVariablesPatchRequest +} + +func (r ApiV3AppsGuidEnvironmentVariablesPatchRequest) V3AppsGuidEnvironmentVariablesPatchRequest(v3AppsGuidEnvironmentVariablesPatchRequest V3AppsGuidEnvironmentVariablesPatchRequest) ApiV3AppsGuidEnvironmentVariablesPatchRequest { + r.v3AppsGuidEnvironmentVariablesPatchRequest = &v3AppsGuidEnvironmentVariablesPatchRequest + return r +} + +func (r ApiV3AppsGuidEnvironmentVariablesPatchRequest) Execute() (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidEnvironmentVariablesPatchExecute(r) +} + +/* +V3AppsGuidEnvironmentVariablesPatch Update environment variables for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidEnvironmentVariablesPatchRequest +*/ +func (a *DefaultAPIService) V3AppsGuidEnvironmentVariablesPatch(ctx context.Context, guid string) ApiV3AppsGuidEnvironmentVariablesPatchRequest { + return ApiV3AppsGuidEnvironmentVariablesPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidEnvironmentVariablesGet200Response +func (a *DefaultAPIService) V3AppsGuidEnvironmentVariablesPatchExecute(r ApiV3AppsGuidEnvironmentVariablesPatchRequest) (*V3AppsGuidEnvironmentVariablesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidEnvironmentVariablesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidEnvironmentVariablesPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/environment_variables" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3AppsGuidEnvironmentVariablesPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3AppsGuidEnvironmentVariablesPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsGuidEnvironmentVariablesPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidFeaturesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidFeaturesGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidFeaturesGetExecute(r) +} + +/* +V3AppsGuidFeaturesGet List app features + +Retrieves the list of features for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidFeaturesGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidFeaturesGet(ctx context.Context, guid string) ApiV3AppsGuidFeaturesGetRequest { + return ApiV3AppsGuidFeaturesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidFeaturesGetExecute(r ApiV3AppsGuidFeaturesGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidFeaturesGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/features" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidFeaturesNameGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + name string +} + +func (r ApiV3AppsGuidFeaturesNameGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidFeaturesNameGetExecute(r) +} + +/* +V3AppsGuidFeaturesNameGet Get an app feature + +Retrieves a specific feature for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @param name The name of the feature. + @return ApiV3AppsGuidFeaturesNameGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidFeaturesNameGet(ctx context.Context, guid string, name string) ApiV3AppsGuidFeaturesNameGetRequest { + return ApiV3AppsGuidFeaturesNameGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + name: name, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidFeaturesNameGetExecute(r ApiV3AppsGuidFeaturesNameGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidFeaturesNameGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/features/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidFeaturesNamePatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + name string + v3AppsGuidFeaturesNamePatchRequest *V3AppsGuidFeaturesNamePatchRequest +} + +func (r ApiV3AppsGuidFeaturesNamePatchRequest) V3AppsGuidFeaturesNamePatchRequest(v3AppsGuidFeaturesNamePatchRequest V3AppsGuidFeaturesNamePatchRequest) ApiV3AppsGuidFeaturesNamePatchRequest { + r.v3AppsGuidFeaturesNamePatchRequest = &v3AppsGuidFeaturesNamePatchRequest + return r +} + +func (r ApiV3AppsGuidFeaturesNamePatchRequest) Execute() (*http.Response, error) { + return r.ApiService.V3AppsGuidFeaturesNamePatchExecute(r) +} + +/* +V3AppsGuidFeaturesNamePatch Update an app feature + +Updates a specific feature for the specified app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @param name The name of the feature. + @return ApiV3AppsGuidFeaturesNamePatchRequest +*/ +func (a *DefaultAPIService) V3AppsGuidFeaturesNamePatch(ctx context.Context, guid string, name string) ApiV3AppsGuidFeaturesNamePatchRequest { + return ApiV3AppsGuidFeaturesNamePatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + name: name, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3AppsGuidFeaturesNamePatchExecute(r ApiV3AppsGuidFeaturesNamePatchRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidFeaturesNamePatch") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/features/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsGuidFeaturesNamePatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3AppsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + include *[]string +} + +// Include related resources in the response; valid values are space and space.organization. +func (r ApiV3AppsGuidGetRequest) Include(include []string) ApiV3AppsGuidGetRequest { + r.include = &include + return r +} + +func (r ApiV3AppsGuidGetRequest) Execute() (*App, *http.Response, error) { + return r.ApiService.V3AppsGuidGetExecute(r) +} + +/* +V3AppsGuidGet Retrieve a specific app + +Retrieve a specific app by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidGet(ctx context.Context, guid string) ApiV3AppsGuidGetRequest { + return ApiV3AppsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return App +func (a *DefaultAPIService) V3AppsGuidGetExecute(r ApiV3AppsGuidGetRequest) (*App, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *App + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsGuidPatchRequest *V3AppsGuidPatchRequest +} + +func (r ApiV3AppsGuidPatchRequest) V3AppsGuidPatchRequest(v3AppsGuidPatchRequest V3AppsGuidPatchRequest) ApiV3AppsGuidPatchRequest { + r.v3AppsGuidPatchRequest = &v3AppsGuidPatchRequest + return r +} + +func (r ApiV3AppsGuidPatchRequest) Execute() (*App, *http.Response, error) { + return r.ApiService.V3AppsGuidPatchExecute(r) +} + +/* +V3AppsGuidPatch Update an app + +Update an existing app by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the app. + @return ApiV3AppsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3AppsGuidPatch(ctx context.Context, guid string) ApiV3AppsGuidPatchRequest { + return ApiV3AppsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return App +func (a *DefaultAPIService) V3AppsGuidPatchExecute(r ApiV3AppsGuidPatchRequest) (*App, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *App + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidPermissionsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidPermissionsGetRequest) Execute() (*V3AppsGuidPermissionsGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidPermissionsGetExecute(r) +} + +/* +V3AppsGuidPermissionsGet Get permissions for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidPermissionsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidPermissionsGet(ctx context.Context, guid string) ApiV3AppsGuidPermissionsGetRequest { + return ApiV3AppsGuidPermissionsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidPermissionsGet200Response +func (a *DefaultAPIService) V3AppsGuidPermissionsGetExecute(r ApiV3AppsGuidPermissionsGetRequest) (*V3AppsGuidPermissionsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidPermissionsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidPermissionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidProcessesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + guids *string + types *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3AppsGuidProcessesGetRequest) Guids(guids string) ApiV3AppsGuidProcessesGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) Types(types string) ApiV3AppsGuidProcessesGetRequest { + r.types = &types + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) Page(page int32) ApiV3AppsGuidProcessesGetRequest { + r.page = &page + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) PerPage(perPage int32) ApiV3AppsGuidProcessesGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) OrderBy(orderBy string) ApiV3AppsGuidProcessesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) LabelSelector(labelSelector string) ApiV3AppsGuidProcessesGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) CreatedAts(createdAts string) ApiV3AppsGuidProcessesGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) UpdatedAts(updatedAts string) ApiV3AppsGuidProcessesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3AppsGuidProcessesGetRequest) Execute() (*ProcessList, *http.Response, error) { + return r.ApiService.V3AppsGuidProcessesGetExecute(r) +} + +/* +V3AppsGuidProcessesGet List processes for app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidProcessesGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidProcessesGet(ctx context.Context, guid string) ApiV3AppsGuidProcessesGetRequest { + return ApiV3AppsGuidProcessesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ProcessList +func (a *DefaultAPIService) V3AppsGuidProcessesGetExecute(r ApiV3AppsGuidProcessesGetRequest) (*ProcessList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProcessList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidProcessesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/processes" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.types != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidRelationshipsCurrentDropletGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidRelationshipsCurrentDropletGetRequest) Execute() (*V3AppsGuidRelationshipsCurrentDropletGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidRelationshipsCurrentDropletGetExecute(r) +} + +/* +V3AppsGuidRelationshipsCurrentDropletGet Get current droplet association for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidRelationshipsCurrentDropletGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidRelationshipsCurrentDropletGet(ctx context.Context, guid string) ApiV3AppsGuidRelationshipsCurrentDropletGetRequest { + return ApiV3AppsGuidRelationshipsCurrentDropletGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidRelationshipsCurrentDropletGet200Response +func (a *DefaultAPIService) V3AppsGuidRelationshipsCurrentDropletGetExecute(r ApiV3AppsGuidRelationshipsCurrentDropletGetRequest) (*V3AppsGuidRelationshipsCurrentDropletGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidRelationshipsCurrentDropletGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidRelationshipsCurrentDropletGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/relationships/current_droplet" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidRevisionsDeployedGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + page *int32 + perPage *int32 + orderBy *string +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3AppsGuidRevisionsDeployedGetRequest) Page(page int32) ApiV3AppsGuidRevisionsDeployedGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3AppsGuidRevisionsDeployedGetRequest) PerPage(perPage int32) ApiV3AppsGuidRevisionsDeployedGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. +func (r ApiV3AppsGuidRevisionsDeployedGetRequest) OrderBy(orderBy string) ApiV3AppsGuidRevisionsDeployedGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3AppsGuidRevisionsDeployedGetRequest) Execute() (*RevisionsList, *http.Response, error) { + return r.ApiService.V3AppsGuidRevisionsDeployedGetExecute(r) +} + +/* +V3AppsGuidRevisionsDeployedGet List deployed revisions for an app + +Retrieve deployed revisions for an app the user has access to. Deployed revisions are revisions that are linked to started processes in the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the app + @return ApiV3AppsGuidRevisionsDeployedGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidRevisionsDeployedGet(ctx context.Context, guid string) ApiV3AppsGuidRevisionsDeployedGetRequest { + return ApiV3AppsGuidRevisionsDeployedGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return RevisionsList +func (a *DefaultAPIService) V3AppsGuidRevisionsDeployedGetExecute(r ApiV3AppsGuidRevisionsDeployedGetRequest) (*RevisionsList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RevisionsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidRevisionsDeployedGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/revisions/deployed" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidRevisionsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + versions *[]string + labelSelector *string + page *int32 + perPage *int32 + orderBy *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of revision versions to filter by +func (r ApiV3AppsGuidRevisionsGetRequest) Versions(versions []string) ApiV3AppsGuidRevisionsGetRequest { + r.versions = &versions + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3AppsGuidRevisionsGetRequest) LabelSelector(labelSelector string) ApiV3AppsGuidRevisionsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3AppsGuidRevisionsGetRequest) Page(page int32) ApiV3AppsGuidRevisionsGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3AppsGuidRevisionsGetRequest) PerPage(perPage int32) ApiV3AppsGuidRevisionsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. +func (r ApiV3AppsGuidRevisionsGetRequest) OrderBy(orderBy string) ApiV3AppsGuidRevisionsGetRequest { + r.orderBy = &orderBy + return r +} + +// Timestamp to filter by; supports filtering with relational operators +func (r ApiV3AppsGuidRevisionsGetRequest) CreatedAts(createdAts string) ApiV3AppsGuidRevisionsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by; supports filtering with relational operators +func (r ApiV3AppsGuidRevisionsGetRequest) UpdatedAts(updatedAts string) ApiV3AppsGuidRevisionsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3AppsGuidRevisionsGetRequest) Execute() (*RevisionsList, *http.Response, error) { + return r.ApiService.V3AppsGuidRevisionsGetExecute(r) +} + +/* +V3AppsGuidRevisionsGet List revisions for an app + +Retrieve revisions for an app the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the app + @return ApiV3AppsGuidRevisionsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidRevisionsGet(ctx context.Context, guid string) ApiV3AppsGuidRevisionsGetRequest { + return ApiV3AppsGuidRevisionsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return RevisionsList +func (a *DefaultAPIService) V3AppsGuidRevisionsGetExecute(r ApiV3AppsGuidRevisionsGetRequest) (*RevisionsList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RevisionsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidRevisionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/revisions" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.versions != nil { + t := *r.versions + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "versions", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "versions", t, "form", "multi") + } + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidRoutesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + domainGuids *[]string + hosts *[]string + organizationGuids *[]string + paths *[]string + ports *[]int32 + spaceGuids *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string +} + +// Comma-delimited list of domain guids to filter by +func (r ApiV3AppsGuidRoutesGetRequest) DomainGuids(domainGuids []string) ApiV3AppsGuidRoutesGetRequest { + r.domainGuids = &domainGuids + return r +} + +// Comma-delimited list of hostnames to filter by +func (r ApiV3AppsGuidRoutesGetRequest) Hosts(hosts []string) ApiV3AppsGuidRoutesGetRequest { + r.hosts = &hosts + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3AppsGuidRoutesGetRequest) OrganizationGuids(organizationGuids []string) ApiV3AppsGuidRoutesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Comma-delimited list of paths to filter by (e.g. /path1,/path2) +func (r ApiV3AppsGuidRoutesGetRequest) Paths(paths []string) ApiV3AppsGuidRoutesGetRequest { + r.paths = &paths + return r +} + +// Comma-delimited list of ports to filter by (e.g. 3306,5432) +func (r ApiV3AppsGuidRoutesGetRequest) Ports(ports []int32) ApiV3AppsGuidRoutesGetRequest { + r.ports = &ports + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3AppsGuidRoutesGetRequest) SpaceGuids(spaceGuids []string) ApiV3AppsGuidRoutesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3AppsGuidRoutesGetRequest) Page(page int32) ApiV3AppsGuidRoutesGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3AppsGuidRoutesGetRequest) PerPage(perPage int32) ApiV3AppsGuidRoutesGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at +func (r ApiV3AppsGuidRoutesGetRequest) OrderBy(orderBy string) ApiV3AppsGuidRoutesGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3AppsGuidRoutesGetRequest) LabelSelector(labelSelector string) ApiV3AppsGuidRoutesGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3AppsGuidRoutesGetRequest) Execute() (*RouteList, *http.Response, error) { + return r.ApiService.V3AppsGuidRoutesGetExecute(r) +} + +/* +V3AppsGuidRoutesGet Retrieve all routes for an app + +Retrieve all routes that have destinations that point to the given app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The app GUID + @return ApiV3AppsGuidRoutesGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidRoutesGet(ctx context.Context, guid string) ApiV3AppsGuidRoutesGetRequest { + return ApiV3AppsGuidRoutesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return RouteList +func (a *DefaultAPIService) V3AppsGuidRoutesGetExecute(r ApiV3AppsGuidRoutesGetRequest) (*RouteList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidRoutesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/routes" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.domainGuids != nil { + t := *r.domainGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain_guids", t, "form", "multi") + } + } + if r.hosts != nil { + t := *r.hosts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "hosts", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hosts", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.paths != nil { + t := *r.paths + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "paths", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "paths", t, "form", "multi") + } + } + if r.ports != nil { + t := *r.ports + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ports", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ports", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidSidecarsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + page *int32 + perPage *int32 + orderBy *string + createdAts *string + updatedAts *string +} + +func (r ApiV3AppsGuidSidecarsGetRequest) Page(page int32) ApiV3AppsGuidSidecarsGetRequest { + r.page = &page + return r +} + +func (r ApiV3AppsGuidSidecarsGetRequest) PerPage(perPage int32) ApiV3AppsGuidSidecarsGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3AppsGuidSidecarsGetRequest) OrderBy(orderBy string) ApiV3AppsGuidSidecarsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3AppsGuidSidecarsGetRequest) CreatedAts(createdAts string) ApiV3AppsGuidSidecarsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3AppsGuidSidecarsGetRequest) UpdatedAts(updatedAts string) ApiV3AppsGuidSidecarsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3AppsGuidSidecarsGetRequest) Execute() (*V3AppsGuidSidecarsGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidSidecarsGetExecute(r) +} + +/* +V3AppsGuidSidecarsGet List sidecars for an app + +Retrieves all sidecars associated with an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSidecarsGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidSidecarsGet(ctx context.Context, guid string) ApiV3AppsGuidSidecarsGetRequest { + return ApiV3AppsGuidSidecarsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidSidecarsGet200Response +func (a *DefaultAPIService) V3AppsGuidSidecarsGetExecute(r ApiV3AppsGuidSidecarsGetRequest) (*V3AppsGuidSidecarsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidSidecarsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidSidecarsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/sidecars" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidSidecarsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsGuidSidecarsPostRequest *V3AppsGuidSidecarsPostRequest +} + +func (r ApiV3AppsGuidSidecarsPostRequest) V3AppsGuidSidecarsPostRequest(v3AppsGuidSidecarsPostRequest V3AppsGuidSidecarsPostRequest) ApiV3AppsGuidSidecarsPostRequest { + r.v3AppsGuidSidecarsPostRequest = &v3AppsGuidSidecarsPostRequest + return r +} + +func (r ApiV3AppsGuidSidecarsPostRequest) Execute() (*Sidecar, *http.Response, error) { + return r.ApiService.V3AppsGuidSidecarsPostExecute(r) +} + +/* +V3AppsGuidSidecarsPost Create a sidecar associated with an app + +Creates a sidecar associated with an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSidecarsPostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidSidecarsPost(ctx context.Context, guid string) ApiV3AppsGuidSidecarsPostRequest { + return ApiV3AppsGuidSidecarsPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Sidecar +func (a *DefaultAPIService) V3AppsGuidSidecarsPostExecute(r ApiV3AppsGuidSidecarsPostRequest) (*Sidecar, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Sidecar + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidSidecarsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/sidecars" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3AppsGuidSidecarsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3AppsGuidSidecarsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsGuidSidecarsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidSshEnabledGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3AppsGuidSshEnabledGetRequest) Execute() (*V3AppsGuidSshEnabledGet200Response, *http.Response, error) { + return r.ApiService.V3AppsGuidSshEnabledGetExecute(r) +} + +/* +V3AppsGuidSshEnabledGet Get SSH enabled for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidSshEnabledGetRequest +*/ +func (a *DefaultAPIService) V3AppsGuidSshEnabledGet(ctx context.Context, guid string) ApiV3AppsGuidSshEnabledGetRequest { + return ApiV3AppsGuidSshEnabledGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidSshEnabledGet200Response +func (a *DefaultAPIService) V3AppsGuidSshEnabledGetExecute(r ApiV3AppsGuidSshEnabledGetRequest) (*V3AppsGuidSshEnabledGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidSshEnabledGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidSshEnabledGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/ssh_enabled" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsGuidTasksPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsGuidTasksPostRequest *V3AppsGuidTasksPostRequest +} + +func (r ApiV3AppsGuidTasksPostRequest) V3AppsGuidTasksPostRequest(v3AppsGuidTasksPostRequest V3AppsGuidTasksPostRequest) ApiV3AppsGuidTasksPostRequest { + r.v3AppsGuidTasksPostRequest = &v3AppsGuidTasksPostRequest + return r +} + +func (r ApiV3AppsGuidTasksPostRequest) Execute() (*Task, *http.Response, error) { + return r.ApiService.V3AppsGuidTasksPostExecute(r) +} + +/* +V3AppsGuidTasksPost Create a task + +Create a new task for an app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3AppsGuidTasksPostRequest +*/ +func (a *DefaultAPIService) V3AppsGuidTasksPost(ctx context.Context, guid string) ApiV3AppsGuidTasksPostRequest { + return ApiV3AppsGuidTasksPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Task +func (a *DefaultAPIService) V3AppsGuidTasksPostExecute(r ApiV3AppsGuidTasksPostRequest) (*Task, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Task + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsGuidTasksPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps/{guid}/tasks" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3AppsGuidTasksPostRequest == nil { + return localVarReturnValue, nil, reportError("v3AppsGuidTasksPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsGuidTasksPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3AppsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3AppsPostRequest *V3AppsPostRequest +} + +func (r ApiV3AppsPostRequest) V3AppsPostRequest(v3AppsPostRequest V3AppsPostRequest) ApiV3AppsPostRequest { + r.v3AppsPostRequest = &v3AppsPostRequest + return r +} + +func (r ApiV3AppsPostRequest) Execute() (*App, *http.Response, error) { + return r.ApiService.V3AppsPostExecute(r) +} + +/* +V3AppsPost Create an app + +Create a new app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3AppsPostRequest +*/ +func (a *DefaultAPIService) V3AppsPost(ctx context.Context) ApiV3AppsPostRequest { + return ApiV3AppsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return App +func (a *DefaultAPIService) V3AppsPostExecute(r ApiV3AppsPostRequest) (*App, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *App + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3AppsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/apps" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3AppsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3AppsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3BuildpacksGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3BuildpacksGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildpacksGetExecute(r) +} + +/* +V3BuildpacksGet List buildpacks + +Retrieve a list of all buildpacks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildpacksGetRequest +*/ +func (a *DefaultAPIService) V3BuildpacksGet(ctx context.Context) ApiV3BuildpacksGetRequest { + return ApiV3BuildpacksGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildpacksGetExecute(r ApiV3BuildpacksGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildpacksGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/buildpacks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildpacksGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + body *map[string]interface{} +} + +func (r ApiV3BuildpacksGuidPatchRequest) Body(body map[string]interface{}) ApiV3BuildpacksGuidPatchRequest { + r.body = &body + return r +} + +func (r ApiV3BuildpacksGuidPatchRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildpacksGuidPatchExecute(r) +} + +/* +V3BuildpacksGuidPatch Update a buildpack + +Update an existing buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the buildpack. + @return ApiV3BuildpacksGuidPatchRequest +*/ +func (a *DefaultAPIService) V3BuildpacksGuidPatch(ctx context.Context, guid string) ApiV3BuildpacksGuidPatchRequest { + return ApiV3BuildpacksGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildpacksGuidPatchExecute(r ApiV3BuildpacksGuidPatchRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildpacksGuidPatch") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/buildpacks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildpacksGuidUploadPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + bits *os.File +} + +func (r ApiV3BuildpacksGuidUploadPostRequest) Bits(bits *os.File) ApiV3BuildpacksGuidUploadPostRequest { + r.bits = bits + return r +} + +func (r ApiV3BuildpacksGuidUploadPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildpacksGuidUploadPostExecute(r) +} + +/* +V3BuildpacksGuidUploadPost Upload buildpack bits + +Upload a zip file containing a Cloud Foundry compatible buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the buildpack. + @return ApiV3BuildpacksGuidUploadPostRequest +*/ +func (a *DefaultAPIService) V3BuildpacksGuidUploadPost(ctx context.Context, guid string) ApiV3BuildpacksGuidUploadPostRequest { + return ApiV3BuildpacksGuidUploadPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildpacksGuidUploadPostExecute(r ApiV3BuildpacksGuidUploadPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildpacksGuidUploadPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/buildpacks/{guid}/upload" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + var bitsLocalVarFormFileName string + var bitsLocalVarFileName string + var bitsLocalVarFileBytes []byte + + bitsLocalVarFormFileName = "bits" + bitsLocalVarFile := r.bits + + if bitsLocalVarFile != nil { + fbs, _ := io.ReadAll(bitsLocalVarFile) + + bitsLocalVarFileBytes = fbs + bitsLocalVarFileName = bitsLocalVarFile.Name() + bitsLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: bitsLocalVarFileBytes, fileName: bitsLocalVarFileName, formFileName: bitsLocalVarFormFileName}) + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildpacksPostRequest struct { + ctx context.Context + ApiService DefaultAPI + body *map[string]interface{} +} + +func (r ApiV3BuildpacksPostRequest) Body(body map[string]interface{}) ApiV3BuildpacksPostRequest { + r.body = &body + return r +} + +func (r ApiV3BuildpacksPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildpacksPostExecute(r) +} + +/* +V3BuildpacksPost Create a buildpack + +Create a new buildpack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildpacksPostRequest +*/ +func (a *DefaultAPIService) V3BuildpacksPost(ctx context.Context) ApiV3BuildpacksPostRequest { + return ApiV3BuildpacksPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildpacksPostExecute(r ApiV3BuildpacksPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildpacksPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/buildpacks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildsGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3BuildsGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildsGetExecute(r) +} + +/* +V3BuildsGet List builds + +Retrieve a list of all builds. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildsGetRequest +*/ +func (a *DefaultAPIService) V3BuildsGet(ctx context.Context) ApiV3BuildsGetRequest { + return ApiV3BuildsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildsGetExecute(r ApiV3BuildsGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildsGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/builds" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + body *map[string]interface{} +} + +func (r ApiV3BuildsGuidPatchRequest) Body(body map[string]interface{}) ApiV3BuildsGuidPatchRequest { + r.body = &body + return r +} + +func (r ApiV3BuildsGuidPatchRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildsGuidPatchExecute(r) +} + +/* +V3BuildsGuidPatch Update a build + +Update an existing build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the build. + @return ApiV3BuildsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3BuildsGuidPatch(ctx context.Context, guid string) ApiV3BuildsGuidPatchRequest { + return ApiV3BuildsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildsGuidPatchExecute(r ApiV3BuildsGuidPatchRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildsGuidPatch") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/builds/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3BuildsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + body *map[string]interface{} +} + +func (r ApiV3BuildsPostRequest) Body(body map[string]interface{}) ApiV3BuildsPostRequest { + r.body = &body + return r +} + +func (r ApiV3BuildsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3BuildsPostExecute(r) +} + +/* +V3BuildsPost Create a build + +Create a new build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3BuildsPostRequest +*/ +func (a *DefaultAPIService) V3BuildsPost(ctx context.Context) ApiV3BuildsPostRequest { + return ApiV3BuildsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3BuildsPostExecute(r ApiV3BuildsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3BuildsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/builds" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DeploymentsGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3DeploymentsGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DeploymentsGetExecute(r) +} + +/* +V3DeploymentsGet List deployments + +Retrieve a list of all deployments. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DeploymentsGetRequest +*/ +func (a *DefaultAPIService) V3DeploymentsGet(ctx context.Context) ApiV3DeploymentsGetRequest { + return ApiV3DeploymentsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3DeploymentsGetExecute(r ApiV3DeploymentsGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DeploymentsGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/deployments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DeploymentsGuidActionsCancelPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3DeploymentsGuidActionsCancelPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DeploymentsGuidActionsCancelPostExecute(r) +} + +/* +V3DeploymentsGuidActionsCancelPost Cancel a deployment + +Cancel an ongoing deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidActionsCancelPostRequest +*/ +func (a *DefaultAPIService) V3DeploymentsGuidActionsCancelPost(ctx context.Context, guid string) ApiV3DeploymentsGuidActionsCancelPostRequest { + return ApiV3DeploymentsGuidActionsCancelPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3DeploymentsGuidActionsCancelPostExecute(r ApiV3DeploymentsGuidActionsCancelPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DeploymentsGuidActionsCancelPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/deployments/{guid}/actions/cancel" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DeploymentsGuidActionsContinuePostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3DeploymentsGuidActionsContinuePostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DeploymentsGuidActionsContinuePostExecute(r) +} + +/* +V3DeploymentsGuidActionsContinuePost Continue a deployment + +Continue a paused deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidActionsContinuePostRequest +*/ +func (a *DefaultAPIService) V3DeploymentsGuidActionsContinuePost(ctx context.Context, guid string) ApiV3DeploymentsGuidActionsContinuePostRequest { + return ApiV3DeploymentsGuidActionsContinuePostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3DeploymentsGuidActionsContinuePostExecute(r ApiV3DeploymentsGuidActionsContinuePostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DeploymentsGuidActionsContinuePost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/deployments/{guid}/actions/continue" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DeploymentsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3DeploymentsGuidGetRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DeploymentsGuidGetExecute(r) +} + +/* +V3DeploymentsGuidGet Get a deployment + +Retrieve a deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The GUID of the deployment. + @return ApiV3DeploymentsGuidGetRequest +*/ +func (a *DefaultAPIService) V3DeploymentsGuidGet(ctx context.Context, guid string) ApiV3DeploymentsGuidGetRequest { + return ApiV3DeploymentsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3DeploymentsGuidGetExecute(r ApiV3DeploymentsGuidGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DeploymentsGuidGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/deployments/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DeploymentsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + body *map[string]interface{} +} + +func (r ApiV3DeploymentsPostRequest) Body(body map[string]interface{}) ApiV3DeploymentsPostRequest { + r.body = &body + return r +} + +func (r ApiV3DeploymentsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DeploymentsPostExecute(r) +} + +/* +V3DeploymentsPost Create a deployment + +Create a new deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DeploymentsPostRequest +*/ +func (a *DefaultAPIService) V3DeploymentsPost(ctx context.Context) ApiV3DeploymentsPostRequest { + return ApiV3DeploymentsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3DeploymentsPostExecute(r ApiV3DeploymentsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DeploymentsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/deployments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DropletsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + states *[]string + appGuids *[]string + spaceGuids *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *time.Time + updatedAts *time.Time +} + +// Comma-delimited list of droplet guids to filter by +func (r ApiV3DropletsGetRequest) Guids(guids []string) ApiV3DropletsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of droplet states to filter by +func (r ApiV3DropletsGetRequest) States(states []string) ApiV3DropletsGetRequest { + r.states = &states + return r +} + +// Comma-delimited list of app guids to filter by +func (r ApiV3DropletsGetRequest) AppGuids(appGuids []string) ApiV3DropletsGetRequest { + r.appGuids = &appGuids + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3DropletsGetRequest) SpaceGuids(spaceGuids []string) ApiV3DropletsGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3DropletsGetRequest) OrganizationGuids(organizationGuids []string) ApiV3DropletsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Page to display +func (r ApiV3DropletsGetRequest) Page(page int32) ApiV3DropletsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3DropletsGetRequest) PerPage(perPage int32) ApiV3DropletsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3DropletsGetRequest) OrderBy(orderBy string) ApiV3DropletsGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3DropletsGetRequest) LabelSelector(labelSelector string) ApiV3DropletsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by +func (r ApiV3DropletsGetRequest) CreatedAts(createdAts time.Time) ApiV3DropletsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by +func (r ApiV3DropletsGetRequest) UpdatedAts(updatedAts time.Time) ApiV3DropletsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3DropletsGetRequest) Execute() (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + return r.ApiService.V3DropletsGetExecute(r) +} + +/* +V3DropletsGet List droplets + +Retrieve all droplets the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DropletsGetRequest +*/ +func (a *DefaultAPIService) V3DropletsGet(ctx context.Context) ApiV3DropletsGetRequest { + return ApiV3DropletsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3AppsGuidDropletsGet200Response +func (a *DefaultAPIService) V3DropletsGetExecute(r ApiV3DropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidDropletsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DropletsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/droplets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.states != nil { + t := *r.states + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", t, "form", "multi") + } + } + if r.appGuids != nil { + t := *r.appGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DropletsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3DropletsGuidGetRequest) Execute() (*Droplet, *http.Response, error) { + return r.ApiService.V3DropletsGuidGetExecute(r) +} + +/* +V3DropletsGuidGet Get a droplet + +Retrieve a specific droplet. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the droplet + @return ApiV3DropletsGuidGetRequest +*/ +func (a *DefaultAPIService) V3DropletsGuidGet(ctx context.Context, guid string) ApiV3DropletsGuidGetRequest { + return ApiV3DropletsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Droplet +func (a *DefaultAPIService) V3DropletsGuidGetExecute(r ApiV3DropletsGuidGetRequest) (*Droplet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Droplet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DropletsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/droplets/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DropletsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3DropletsPostRequest *V3DropletsPostRequest +} + +func (r ApiV3DropletsPostRequest) V3DropletsPostRequest(v3DropletsPostRequest V3DropletsPostRequest) ApiV3DropletsPostRequest { + r.v3DropletsPostRequest = &v3DropletsPostRequest + return r +} + +func (r ApiV3DropletsPostRequest) Execute() (*Droplet, *http.Response, error) { + return r.ApiService.V3DropletsPostExecute(r) +} + +/* +V3DropletsPost Create a droplet + +Create a droplet without a package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DropletsPostRequest +*/ +func (a *DefaultAPIService) V3DropletsPost(ctx context.Context) ApiV3DropletsPostRequest { + return ApiV3DropletsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Droplet +func (a *DefaultAPIService) V3DropletsPostExecute(r ApiV3DropletsPostRequest) (*Droplet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Droplet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3DropletsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/droplets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3DropletsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3DropletsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3DropletsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3EnvironmentVariableGroupsNameGetRequest struct { + ctx context.Context + ApiService DefaultAPI + name string +} + +func (r ApiV3EnvironmentVariableGroupsNameGetRequest) Execute() (*EnvironmentVariableGroup, *http.Response, error) { + return r.ApiService.V3EnvironmentVariableGroupsNameGetExecute(r) +} + +/* +V3EnvironmentVariableGroupsNameGet Get an environment variable group + +Retrieve a specific environment variable group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the environment variable group (running or staging) + @return ApiV3EnvironmentVariableGroupsNameGetRequest +*/ +func (a *DefaultAPIService) V3EnvironmentVariableGroupsNameGet(ctx context.Context, name string) ApiV3EnvironmentVariableGroupsNameGetRequest { + return ApiV3EnvironmentVariableGroupsNameGetRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return EnvironmentVariableGroup +func (a *DefaultAPIService) V3EnvironmentVariableGroupsNameGetExecute(r ApiV3EnvironmentVariableGroupsNameGetRequest) (*EnvironmentVariableGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentVariableGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3EnvironmentVariableGroupsNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/environment_variable_groups/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3EnvironmentVariableGroupsNamePatchRequest struct { + ctx context.Context + ApiService DefaultAPI + name string + v3EnvironmentVariableGroupsNamePatchRequest *V3EnvironmentVariableGroupsNamePatchRequest +} + +func (r ApiV3EnvironmentVariableGroupsNamePatchRequest) V3EnvironmentVariableGroupsNamePatchRequest(v3EnvironmentVariableGroupsNamePatchRequest V3EnvironmentVariableGroupsNamePatchRequest) ApiV3EnvironmentVariableGroupsNamePatchRequest { + r.v3EnvironmentVariableGroupsNamePatchRequest = &v3EnvironmentVariableGroupsNamePatchRequest + return r +} + +func (r ApiV3EnvironmentVariableGroupsNamePatchRequest) Execute() (*EnvironmentVariableGroup, *http.Response, error) { + return r.ApiService.V3EnvironmentVariableGroupsNamePatchExecute(r) +} + +/* +V3EnvironmentVariableGroupsNamePatch Update environment variable group + +Update the environment variable group. The variables given in the request will be merged with the existing environment variable group. Any requested variables with a value of null will be removed from the group. Environment variable names may not start with VCAP_. PORT is not a valid environment variable. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the environment variable group (running or staging) + @return ApiV3EnvironmentVariableGroupsNamePatchRequest +*/ +func (a *DefaultAPIService) V3EnvironmentVariableGroupsNamePatch(ctx context.Context, name string) ApiV3EnvironmentVariableGroupsNamePatchRequest { + return ApiV3EnvironmentVariableGroupsNamePatchRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return EnvironmentVariableGroup +func (a *DefaultAPIService) V3EnvironmentVariableGroupsNamePatchExecute(r ApiV3EnvironmentVariableGroupsNamePatchRequest) (*EnvironmentVariableGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentVariableGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3EnvironmentVariableGroupsNamePatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/environment_variable_groups/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3EnvironmentVariableGroupsNamePatchRequest == nil { + return localVarReturnValue, nil, reportError("v3EnvironmentVariableGroupsNamePatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3EnvironmentVariableGroupsNamePatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3FeatureFlagsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + page *int32 + perPage *int32 + orderBy *string + updatedAts *time.Time +} + +// Page to display +func (r ApiV3FeatureFlagsGetRequest) Page(page int32) ApiV3FeatureFlagsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3FeatureFlagsGetRequest) PerPage(perPage int32) ApiV3FeatureFlagsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to name ascending; prepend with - to sort descending. +func (r ApiV3FeatureFlagsGetRequest) OrderBy(orderBy string) ApiV3FeatureFlagsGetRequest { + r.orderBy = &orderBy + return r +} + +// Timestamp to filter by +func (r ApiV3FeatureFlagsGetRequest) UpdatedAts(updatedAts time.Time) ApiV3FeatureFlagsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3FeatureFlagsGetRequest) Execute() (*V3FeatureFlagsGet200Response, *http.Response, error) { + return r.ApiService.V3FeatureFlagsGetExecute(r) +} + +/* +V3FeatureFlagsGet List feature flags + +Retrieve all feature flags. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3FeatureFlagsGetRequest +*/ +func (a *DefaultAPIService) V3FeatureFlagsGet(ctx context.Context) ApiV3FeatureFlagsGetRequest { + return ApiV3FeatureFlagsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3FeatureFlagsGet200Response +func (a *DefaultAPIService) V3FeatureFlagsGetExecute(r ApiV3FeatureFlagsGetRequest) (*V3FeatureFlagsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3FeatureFlagsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3FeatureFlagsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/feature_flags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3FeatureFlagsNameGetRequest struct { + ctx context.Context + ApiService DefaultAPI + name string +} + +func (r ApiV3FeatureFlagsNameGetRequest) Execute() (*FeatureFlag, *http.Response, error) { + return r.ApiService.V3FeatureFlagsNameGetExecute(r) +} + +/* +V3FeatureFlagsNameGet Get a feature flag + +Retrieve a specific feature flag. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the feature flag + @return ApiV3FeatureFlagsNameGetRequest +*/ +func (a *DefaultAPIService) V3FeatureFlagsNameGet(ctx context.Context, name string) ApiV3FeatureFlagsNameGetRequest { + return ApiV3FeatureFlagsNameGetRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return FeatureFlag +func (a *DefaultAPIService) V3FeatureFlagsNameGetExecute(r ApiV3FeatureFlagsNameGetRequest) (*FeatureFlag, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FeatureFlag + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3FeatureFlagsNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/feature_flags/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3FeatureFlagsNamePatchRequest struct { + ctx context.Context + ApiService DefaultAPI + name string + v3FeatureFlagsNamePatchRequest *V3FeatureFlagsNamePatchRequest +} + +func (r ApiV3FeatureFlagsNamePatchRequest) V3FeatureFlagsNamePatchRequest(v3FeatureFlagsNamePatchRequest V3FeatureFlagsNamePatchRequest) ApiV3FeatureFlagsNamePatchRequest { + r.v3FeatureFlagsNamePatchRequest = &v3FeatureFlagsNamePatchRequest + return r +} + +func (r ApiV3FeatureFlagsNamePatchRequest) Execute() (*FeatureFlag, *http.Response, error) { + return r.ApiService.V3FeatureFlagsNamePatchExecute(r) +} + +/* +V3FeatureFlagsNamePatch Update a feature flag + +Update the status or custom error message of a feature flag. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The name of the feature flag + @return ApiV3FeatureFlagsNamePatchRequest +*/ +func (a *DefaultAPIService) V3FeatureFlagsNamePatch(ctx context.Context, name string) ApiV3FeatureFlagsNamePatchRequest { + return ApiV3FeatureFlagsNamePatchRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return FeatureFlag +func (a *DefaultAPIService) V3FeatureFlagsNamePatchExecute(r ApiV3FeatureFlagsNamePatchRequest) (*FeatureFlag, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FeatureFlag + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3FeatureFlagsNamePatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/feature_flags/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3FeatureFlagsNamePatchRequest == nil { + return localVarReturnValue, nil, reportError("v3FeatureFlagsNamePatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3FeatureFlagsNamePatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3GetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3GetRequest) Execute() (*V3Get200Response, *http.Response, error) { + return r.ApiService.V3GetExecute(r) +} + +/* +V3Get V3 API Root + +Returns links to all the resources available on the v3 API. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3GetRequest +*/ +func (a *DefaultAPIService) V3Get(ctx context.Context) ApiV3GetRequest { + return ApiV3GetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3Get200Response +func (a *DefaultAPIService) V3GetExecute(r ApiV3GetRequest) (*V3Get200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3Get200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3Get") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3InfoGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3InfoGetRequest) Execute() (*PlatformInfo, *http.Response, error) { + return r.ApiService.V3InfoGetExecute(r) +} + +/* +V3InfoGet Get platform info + +Retrieve Cloud Controller configuration information. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3InfoGetRequest +*/ +func (a *DefaultAPIService) V3InfoGet(ctx context.Context) ApiV3InfoGetRequest { + return ApiV3InfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PlatformInfo +func (a *DefaultAPIService) V3InfoGetExecute(r ApiV3InfoGetRequest) (*PlatformInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PlatformInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3InfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3InfoUsageSummaryGetRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3InfoUsageSummaryGetRequest) Execute() (*UsageSummary, *http.Response, error) { + return r.ApiService.V3InfoUsageSummaryGetExecute(r) +} + +/* +V3InfoUsageSummaryGet Get platform usage summary + +Retrieve a high-level summary of usage across the entire Cloud Foundry installation. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3InfoUsageSummaryGetRequest +*/ +func (a *DefaultAPIService) V3InfoUsageSummaryGet(ctx context.Context) ApiV3InfoUsageSummaryGetRequest { + return ApiV3InfoUsageSummaryGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return UsageSummary +func (a *DefaultAPIService) V3InfoUsageSummaryGetExecute(r ApiV3InfoUsageSummaryGetRequest) (*UsageSummary, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UsageSummary + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3InfoUsageSummaryGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/info/usage_summary" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + names *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *time.Time + updatedAts *time.Time +} + +// Comma-delimited list of isolation segment guids to filter by +func (r ApiV3IsolationSegmentsGetRequest) Guids(guids []string) ApiV3IsolationSegmentsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of isolation segment names to filter by +func (r ApiV3IsolationSegmentsGetRequest) Names(names []string) ApiV3IsolationSegmentsGetRequest { + r.names = &names + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3IsolationSegmentsGetRequest) OrganizationGuids(organizationGuids []string) ApiV3IsolationSegmentsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Page to display +func (r ApiV3IsolationSegmentsGetRequest) Page(page int32) ApiV3IsolationSegmentsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3IsolationSegmentsGetRequest) PerPage(perPage int32) ApiV3IsolationSegmentsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by; defaults to ascending. Prepend with - to sort descending +func (r ApiV3IsolationSegmentsGetRequest) OrderBy(orderBy string) ApiV3IsolationSegmentsGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3IsolationSegmentsGetRequest) LabelSelector(labelSelector string) ApiV3IsolationSegmentsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by +func (r ApiV3IsolationSegmentsGetRequest) CreatedAts(createdAts time.Time) ApiV3IsolationSegmentsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by +func (r ApiV3IsolationSegmentsGetRequest) UpdatedAts(updatedAts time.Time) ApiV3IsolationSegmentsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3IsolationSegmentsGetRequest) Execute() (*V3IsolationSegmentsGet200Response, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGetExecute(r) +} + +/* +V3IsolationSegmentsGet List isolation segments + +Retrieve all isolation segments to which the user has access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3IsolationSegmentsGetRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGet(ctx context.Context) ApiV3IsolationSegmentsGetRequest { + return ApiV3IsolationSegmentsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3IsolationSegmentsGet200Response +func (a *DefaultAPIService) V3IsolationSegmentsGetExecute(r ApiV3IsolationSegmentsGetRequest) (*V3IsolationSegmentsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3IsolationSegmentsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3IsolationSegmentsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidDeleteExecute(r) +} + +/* +V3IsolationSegmentsGuidDelete Delete an isolation segment + +Delete an isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidDelete(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidDeleteRequest { + return ApiV3IsolationSegmentsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3IsolationSegmentsGuidDeleteExecute(r ApiV3IsolationSegmentsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3IsolationSegmentsGuidGetRequest) Execute() (*IsolationSegment, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidGetExecute(r) +} + +/* +V3IsolationSegmentsGuidGet Get an isolation segment + +Retrieve an isolation segment to which the user has access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidGetRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidGetRequest { + return ApiV3IsolationSegmentsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return IsolationSegment +func (a *DefaultAPIService) V3IsolationSegmentsGuidGetExecute(r ApiV3IsolationSegmentsGuidGetRequest) (*IsolationSegment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IsolationSegment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + isolationSegment *IsolationSegment +} + +func (r ApiV3IsolationSegmentsGuidPatchRequest) IsolationSegment(isolationSegment IsolationSegment) ApiV3IsolationSegmentsGuidPatchRequest { + r.isolationSegment = &isolationSegment + return r +} + +func (r ApiV3IsolationSegmentsGuidPatchRequest) Execute() (*IsolationSegment, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidPatchExecute(r) +} + +/* +V3IsolationSegmentsGuidPatch Update an isolation segment + +Update the name or metadata of an isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidPatch(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidPatchRequest { + return ApiV3IsolationSegmentsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return IsolationSegment +func (a *DefaultAPIService) V3IsolationSegmentsGuidPatchExecute(r ApiV3IsolationSegmentsGuidPatchRequest) (*IsolationSegment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IsolationSegment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.isolationSegment == nil { + return localVarReturnValue, nil, reportError("isolationSegment is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.isolationSegment + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest) Execute() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidRelationshipsOrganizationsGetExecute(r) +} + +/* +V3IsolationSegmentsGuidRelationshipsOrganizationsGet List organizations relationship + +List the organizations entitled for the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest { + return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsGetExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest) (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidRelationshipsOrganizationsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}/relationships/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + orgGuid string +} + +func (r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteExecute(r) +} + +/* +V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete Revoke entitlement to isolation segment for an organization + +Revoke the entitlement for the specified organization to the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @param orgGuid The guid of the organization + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete(ctx context.Context, guid string, orgGuid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest { + return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + orgGuid: orgGuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}/relationships/organizations/{org_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org_guid"+"}", url.PathEscape(parameterValueToString(r.orgGuid, "orgGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest +} + +func (r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest = &v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + return r +} + +func (r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) Execute() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidRelationshipsOrganizationsPostExecute(r) +} + +/* +V3IsolationSegmentsGuidRelationshipsOrganizationsPost Entitle organizations for an isolation segment + +Entitle the specified organizations for the isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsPost(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + return ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsOrganizationsPostExecute(r ApiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidRelationshipsOrganizationsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}/relationships/organizations" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest) Execute() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200Response, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsGuidRelationshipsSpacesGetExecute(r) +} + +/* +V3IsolationSegmentsGuidRelationshipsSpacesGet List spaces relationship + +List the spaces to which the isolation segment is assigned. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the isolation segment + @return ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsSpacesGet(ctx context.Context, guid string) ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest { + return ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3IsolationSegmentsGuidRelationshipsSpacesGet200Response +func (a *DefaultAPIService) V3IsolationSegmentsGuidRelationshipsSpacesGetExecute(r ApiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest) (*V3IsolationSegmentsGuidRelationshipsSpacesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsGuidRelationshipsSpacesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments/{guid}/relationships/spaces" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3IsolationSegmentsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + isolationSegment *IsolationSegment +} + +func (r ApiV3IsolationSegmentsPostRequest) IsolationSegment(isolationSegment IsolationSegment) ApiV3IsolationSegmentsPostRequest { + r.isolationSegment = &isolationSegment + return r +} + +func (r ApiV3IsolationSegmentsPostRequest) Execute() (*IsolationSegment, *http.Response, error) { + return r.ApiService.V3IsolationSegmentsPostExecute(r) +} + +/* +V3IsolationSegmentsPost Create an isolation segment + +Create a new isolation segment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3IsolationSegmentsPostRequest +*/ +func (a *DefaultAPIService) V3IsolationSegmentsPost(ctx context.Context) ApiV3IsolationSegmentsPostRequest { + return ApiV3IsolationSegmentsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return IsolationSegment +func (a *DefaultAPIService) V3IsolationSegmentsPostExecute(r ApiV3IsolationSegmentsPostRequest) (*IsolationSegment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IsolationSegment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3IsolationSegmentsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/isolation_segments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.isolationSegment == nil { + return localVarReturnValue, nil, reportError("isolationSegment is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.isolationSegment + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + states *[]string + types *[]string + appGuids *[]string + spaceGuids *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *[]time.Time + updatedAts *[]time.Time +} + +// Comma-delimited list of package guids to filter by +func (r ApiV3PackagesGetRequest) Guids(guids []string) ApiV3PackagesGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of package states to filter by +func (r ApiV3PackagesGetRequest) States(states []string) ApiV3PackagesGetRequest { + r.states = &states + return r +} + +// Comma-delimited list of package types to filter by +func (r ApiV3PackagesGetRequest) Types(types []string) ApiV3PackagesGetRequest { + r.types = &types + return r +} + +// Comma-delimited list of app guids to filter by +func (r ApiV3PackagesGetRequest) AppGuids(appGuids []string) ApiV3PackagesGetRequest { + r.appGuids = &appGuids + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3PackagesGetRequest) SpaceGuids(spaceGuids []string) ApiV3PackagesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3PackagesGetRequest) OrganizationGuids(organizationGuids []string) ApiV3PackagesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Page to display +func (r ApiV3PackagesGetRequest) Page(page int32) ApiV3PackagesGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3PackagesGetRequest) PerPage(perPage int32) ApiV3PackagesGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by; defaults to ascending. Prepend with - to sort descending. Valid values are created_at, updated_at +func (r ApiV3PackagesGetRequest) OrderBy(orderBy string) ApiV3PackagesGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3PackagesGetRequest) LabelSelector(labelSelector string) ApiV3PackagesGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3PackagesGetRequest) CreatedAts(createdAts []time.Time) ApiV3PackagesGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3PackagesGetRequest) UpdatedAts(updatedAts []time.Time) ApiV3PackagesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3PackagesGetRequest) Execute() (*V3PackagesGet200Response, *http.Response, error) { + return r.ApiService.V3PackagesGetExecute(r) +} + +/* +V3PackagesGet List packages + +Retrieve all packages the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3PackagesGetRequest +*/ +func (a *DefaultAPIService) V3PackagesGet(ctx context.Context) ApiV3PackagesGetRequest { + return ApiV3PackagesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3PackagesGet200Response +func (a *DefaultAPIService) V3PackagesGetExecute(r ApiV3PackagesGetRequest) (*V3PackagesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3PackagesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "csv") + } + if r.states != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", r.states, "form", "csv") + } + if r.types != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "form", "csv") + } + if r.appGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", r.appGuids, "form", "csv") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "csv") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "csv") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "csv") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3PackagesGuidDeleteRequest) Execute() (*V3PackagesGuidDelete202Response, *http.Response, error) { + return r.ApiService.V3PackagesGuidDeleteExecute(r) +} + +/* +V3PackagesGuidDelete Delete a package + +Delete a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3PackagesGuidDelete(ctx context.Context, guid string) ApiV3PackagesGuidDeleteRequest { + return ApiV3PackagesGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3PackagesGuidDelete202Response +func (a *DefaultAPIService) V3PackagesGuidDeleteExecute(r ApiV3PackagesGuidDeleteRequest) (*V3PackagesGuidDelete202Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3PackagesGuidDelete202Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGuidDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGuidDropletsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + guids *[]string + states *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string +} + +// Comma-delimited list of droplet guids to filter by +func (r ApiV3PackagesGuidDropletsGetRequest) Guids(guids []string) ApiV3PackagesGuidDropletsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of droplet states to filter by +func (r ApiV3PackagesGuidDropletsGetRequest) States(states []string) ApiV3PackagesGuidDropletsGetRequest { + r.states = &states + return r +} + +// Page to display +func (r ApiV3PackagesGuidDropletsGetRequest) Page(page int32) ApiV3PackagesGuidDropletsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3PackagesGuidDropletsGetRequest) PerPage(perPage int32) ApiV3PackagesGuidDropletsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3PackagesGuidDropletsGetRequest) OrderBy(orderBy string) ApiV3PackagesGuidDropletsGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3PackagesGuidDropletsGetRequest) LabelSelector(labelSelector string) ApiV3PackagesGuidDropletsGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3PackagesGuidDropletsGetRequest) Execute() (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + return r.ApiService.V3PackagesGuidDropletsGetExecute(r) +} + +/* +V3PackagesGuidDropletsGet List droplets for a package + +Retrieve a list of droplets belonging to a package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The guid of the package + @return ApiV3PackagesGuidDropletsGetRequest +*/ +func (a *DefaultAPIService) V3PackagesGuidDropletsGet(ctx context.Context, guid string) ApiV3PackagesGuidDropletsGetRequest { + return ApiV3PackagesGuidDropletsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidDropletsGet200Response +func (a *DefaultAPIService) V3PackagesGuidDropletsGetExecute(r ApiV3PackagesGuidDropletsGetRequest) (*V3AppsGuidDropletsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidDropletsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGuidDropletsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages/{guid}/droplets" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.states != nil { + t := *r.states + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3PackagesGuidGetRequest) Execute() (*Package, *http.Response, error) { + return r.ApiService.V3PackagesGuidGetExecute(r) +} + +/* +V3PackagesGuidGet Get a package + +Retrieve a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidGetRequest +*/ +func (a *DefaultAPIService) V3PackagesGuidGet(ctx context.Context, guid string) ApiV3PackagesGuidGetRequest { + return ApiV3PackagesGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Package +func (a *DefaultAPIService) V3PackagesGuidGetExecute(r ApiV3PackagesGuidGetRequest) (*Package, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Package + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3PackagesGuidPatchRequest *V3PackagesGuidPatchRequest +} + +func (r ApiV3PackagesGuidPatchRequest) V3PackagesGuidPatchRequest(v3PackagesGuidPatchRequest V3PackagesGuidPatchRequest) ApiV3PackagesGuidPatchRequest { + r.v3PackagesGuidPatchRequest = &v3PackagesGuidPatchRequest + return r +} + +func (r ApiV3PackagesGuidPatchRequest) Execute() (*Package, *http.Response, error) { + return r.ApiService.V3PackagesGuidPatchExecute(r) +} + +/* +V3PackagesGuidPatch Update a package + +Update a package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidPatchRequest +*/ +func (a *DefaultAPIService) V3PackagesGuidPatch(ctx context.Context, guid string) ApiV3PackagesGuidPatchRequest { + return ApiV3PackagesGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Package +func (a *DefaultAPIService) V3PackagesGuidPatchExecute(r ApiV3PackagesGuidPatchRequest) (*Package, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Package + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3PackagesGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3PackagesGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3PackagesGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesGuidUploadPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + bits *os.File + resources *[]V3PackagesGuidUploadPostRequestResourcesInner +} + +// A binary zip file containing the package bits +func (r ApiV3PackagesGuidUploadPostRequest) Bits(bits *os.File) ApiV3PackagesGuidUploadPostRequest { + r.bits = bits + return r +} + +func (r ApiV3PackagesGuidUploadPostRequest) Resources(resources []V3PackagesGuidUploadPostRequestResourcesInner) ApiV3PackagesGuidUploadPostRequest { + r.resources = &resources + return r +} + +func (r ApiV3PackagesGuidUploadPostRequest) Execute() (*Package, *http.Response, error) { + return r.ApiService.V3PackagesGuidUploadPostExecute(r) +} + +/* +V3PackagesGuidUploadPost Upload package bits + +Upload a new package by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3PackagesGuidUploadPostRequest +*/ +func (a *DefaultAPIService) V3PackagesGuidUploadPost(ctx context.Context, guid string) ApiV3PackagesGuidUploadPostRequest { + return ApiV3PackagesGuidUploadPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Package +func (a *DefaultAPIService) V3PackagesGuidUploadPostExecute(r ApiV3PackagesGuidUploadPostRequest) (*Package, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Package + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesGuidUploadPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages/{guid}/upload" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + var bitsLocalVarFormFileName string + var bitsLocalVarFileName string + var bitsLocalVarFileBytes []byte + + bitsLocalVarFormFileName = "bits" + bitsLocalVarFile := r.bits + + if bitsLocalVarFile != nil { + fbs, _ := io.ReadAll(bitsLocalVarFile) + + bitsLocalVarFileBytes = fbs + bitsLocalVarFileName = bitsLocalVarFile.Name() + bitsLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: bitsLocalVarFileBytes, fileName: bitsLocalVarFileName, formFileName: bitsLocalVarFormFileName}) + } + if r.resources != nil { + parameterAddToHeaderOrQuery(localVarFormParams, "resources", r.resources, "", "csv") + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3PackagesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3PackagesPostRequest *V3PackagesPostRequest +} + +func (r ApiV3PackagesPostRequest) V3PackagesPostRequest(v3PackagesPostRequest V3PackagesPostRequest) ApiV3PackagesPostRequest { + r.v3PackagesPostRequest = &v3PackagesPostRequest + return r +} + +func (r ApiV3PackagesPostRequest) Execute() (*Package, *http.Response, error) { + return r.ApiService.V3PackagesPostExecute(r) +} + +/* +V3PackagesPost Create a package + +Create a new package. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3PackagesPostRequest +*/ +func (a *DefaultAPIService) V3PackagesPost(ctx context.Context) ApiV3PackagesPostRequest { + return ApiV3PackagesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Package +func (a *DefaultAPIService) V3PackagesPostExecute(r ApiV3PackagesPostRequest) (*Package, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Package + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3PackagesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/packages" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3PackagesPostRequest == nil { + return localVarReturnValue, nil, reportError("v3PackagesPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3PackagesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ProcessesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *string + types *string + appGuids *string + spaceGuids *string + organizationGuids *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3ProcessesGetRequest) Guids(guids string) ApiV3ProcessesGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3ProcessesGetRequest) Types(types string) ApiV3ProcessesGetRequest { + r.types = &types + return r +} + +func (r ApiV3ProcessesGetRequest) AppGuids(appGuids string) ApiV3ProcessesGetRequest { + r.appGuids = &appGuids + return r +} + +func (r ApiV3ProcessesGetRequest) SpaceGuids(spaceGuids string) ApiV3ProcessesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +func (r ApiV3ProcessesGetRequest) OrganizationGuids(organizationGuids string) ApiV3ProcessesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +func (r ApiV3ProcessesGetRequest) Page(page int32) ApiV3ProcessesGetRequest { + r.page = &page + return r +} + +func (r ApiV3ProcessesGetRequest) PerPage(perPage int32) ApiV3ProcessesGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3ProcessesGetRequest) OrderBy(orderBy string) ApiV3ProcessesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3ProcessesGetRequest) LabelSelector(labelSelector string) ApiV3ProcessesGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3ProcessesGetRequest) CreatedAts(createdAts string) ApiV3ProcessesGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3ProcessesGetRequest) UpdatedAts(updatedAts string) ApiV3ProcessesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ProcessesGetRequest) Execute() (*ProcessList, *http.Response, error) { + return r.ApiService.V3ProcessesGetExecute(r) +} + +/* +V3ProcessesGet List processes + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ProcessesGetRequest +*/ +func (a *DefaultAPIService) V3ProcessesGet(ctx context.Context) ApiV3ProcessesGetRequest { + return ApiV3ProcessesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ProcessList +func (a *DefaultAPIService) V3ProcessesGetExecute(r ApiV3ProcessesGetRequest) (*ProcessList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProcessList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.types != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", r.types, "form", "") + } + if r.appGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", r.appGuids, "form", "") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ProcessesGuidActionsScalePostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + processScale *ProcessScale +} + +func (r ApiV3ProcessesGuidActionsScalePostRequest) ProcessScale(processScale ProcessScale) ApiV3ProcessesGuidActionsScalePostRequest { + r.processScale = &processScale + return r +} + +func (r ApiV3ProcessesGuidActionsScalePostRequest) Execute() (*Process, *http.Response, error) { + return r.ApiService.V3ProcessesGuidActionsScalePostExecute(r) +} + +/* +V3ProcessesGuidActionsScalePost Scale a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidActionsScalePostRequest +*/ +func (a *DefaultAPIService) V3ProcessesGuidActionsScalePost(ctx context.Context, guid string) ApiV3ProcessesGuidActionsScalePostRequest { + return ApiV3ProcessesGuidActionsScalePostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Process +func (a *DefaultAPIService) V3ProcessesGuidActionsScalePostExecute(r ApiV3ProcessesGuidActionsScalePostRequest) (*Process, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Process + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGuidActionsScalePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes/{guid}/actions/scale" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.processScale + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ProcessesGuidInstancesIndexDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + index int32 +} + +func (r ApiV3ProcessesGuidInstancesIndexDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ProcessesGuidInstancesIndexDeleteExecute(r) +} + +/* +V3ProcessesGuidInstancesIndexDelete Terminate a process instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param index + @return ApiV3ProcessesGuidInstancesIndexDeleteRequest +*/ +func (a *DefaultAPIService) V3ProcessesGuidInstancesIndexDelete(ctx context.Context, guid string, index int32) ApiV3ProcessesGuidInstancesIndexDeleteRequest { + return ApiV3ProcessesGuidInstancesIndexDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + index: index, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ProcessesGuidInstancesIndexDeleteExecute(r ApiV3ProcessesGuidInstancesIndexDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGuidInstancesIndexDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes/{guid}/instances/{index}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"index"+"}", url.PathEscape(parameterValueToString(r.index, "index")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ProcessesGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + processUpdate *ProcessUpdate +} + +func (r ApiV3ProcessesGuidPatchRequest) ProcessUpdate(processUpdate ProcessUpdate) ApiV3ProcessesGuidPatchRequest { + r.processUpdate = &processUpdate + return r +} + +func (r ApiV3ProcessesGuidPatchRequest) Execute() (*Process, *http.Response, error) { + return r.ApiService.V3ProcessesGuidPatchExecute(r) +} + +/* +V3ProcessesGuidPatch Update a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ProcessesGuidPatch(ctx context.Context, guid string) ApiV3ProcessesGuidPatchRequest { + return ApiV3ProcessesGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Process +func (a *DefaultAPIService) V3ProcessesGuidPatchExecute(r ApiV3ProcessesGuidPatchRequest) (*Process, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Process + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.processUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ProcessesGuidSidecarsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + page *int32 + perPage *int32 + orderBy *string + createdAts *string + updatedAts *string +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) Page(page int32) ApiV3ProcessesGuidSidecarsGetRequest { + r.page = &page + return r +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) PerPage(perPage int32) ApiV3ProcessesGuidSidecarsGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) OrderBy(orderBy string) ApiV3ProcessesGuidSidecarsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) CreatedAts(createdAts string) ApiV3ProcessesGuidSidecarsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) UpdatedAts(updatedAts string) ApiV3ProcessesGuidSidecarsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ProcessesGuidSidecarsGetRequest) Execute() (*V3AppsGuidSidecarsGet200Response, *http.Response, error) { + return r.ApiService.V3ProcessesGuidSidecarsGetExecute(r) +} + +/* +V3ProcessesGuidSidecarsGet List sidecars for a process + +Retrieves all sidecars associated with a process. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidSidecarsGetRequest +*/ +func (a *DefaultAPIService) V3ProcessesGuidSidecarsGet(ctx context.Context, guid string) ApiV3ProcessesGuidSidecarsGetRequest { + return ApiV3ProcessesGuidSidecarsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsGuidSidecarsGet200Response +func (a *DefaultAPIService) V3ProcessesGuidSidecarsGetExecute(r ApiV3ProcessesGuidSidecarsGetRequest) (*V3AppsGuidSidecarsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsGuidSidecarsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGuidSidecarsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes/{guid}/sidecars" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ProcessesGuidStatsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ProcessesGuidStatsGetRequest) Execute() ([]ProcessStats, *http.Response, error) { + return r.ApiService.V3ProcessesGuidStatsGetExecute(r) +} + +/* +V3ProcessesGuidStatsGet Get stats for a process + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ProcessesGuidStatsGetRequest +*/ +func (a *DefaultAPIService) V3ProcessesGuidStatsGet(ctx context.Context, guid string) ApiV3ProcessesGuidStatsGetRequest { + return ApiV3ProcessesGuidStatsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return []ProcessStats +func (a *DefaultAPIService) V3ProcessesGuidStatsGetExecute(r ApiV3ProcessesGuidStatsGetRequest) ([]ProcessStats, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProcessStats + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ProcessesGuidStatsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/processes/{guid}/stats" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ResourceMatchesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + resourceMatchRequest *ResourceMatchRequest +} + +func (r ApiV3ResourceMatchesPostRequest) ResourceMatchRequest(resourceMatchRequest ResourceMatchRequest) ApiV3ResourceMatchesPostRequest { + r.resourceMatchRequest = &resourceMatchRequest + return r +} + +func (r ApiV3ResourceMatchesPostRequest) Execute() (*ResourceMatchResponse, *http.Response, error) { + return r.ApiService.V3ResourceMatchesPostExecute(r) +} + +/* +V3ResourceMatchesPost Create a resource match + +This endpoint matches given resource SHA-1/file size pairs against the Cloud Controller cache and reports the subset that describes already cached files. This is usually used to avoid uploading duplicate files when pushing an app which has only been partially changed. The path and mode fields are not used when matching. + +When uploading package bits, the response from this endpoint should be used as the resources form field. As such, it is useful to include the path and mode fields for each resource even though they are not used when determining a resource match. + +Cloud Foundry operators may set minimum/maximum file sizes to match against. If the file size provided is outside this range, it will not be matched against. + +If the resource_matching feature flag is disabled, resource matching will always return an empty array. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ResourceMatchesPostRequest +*/ +func (a *DefaultAPIService) V3ResourceMatchesPost(ctx context.Context) ApiV3ResourceMatchesPostRequest { + return ApiV3ResourceMatchesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ResourceMatchResponse +func (a *DefaultAPIService) V3ResourceMatchesPostExecute(r ApiV3ResourceMatchesPostRequest) (*ResourceMatchResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceMatchResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ResourceMatchesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/resource_matches" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.resourceMatchRequest == nil { + return localVarReturnValue, nil, reportError("resourceMatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceMatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RevisionsGuidEnvironmentVariablesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3RevisionsGuidEnvironmentVariablesGetRequest) Execute() (*EnvironmentVariables, *http.Response, error) { + return r.ApiService.V3RevisionsGuidEnvironmentVariablesGetExecute(r) +} + +/* +V3RevisionsGuidEnvironmentVariablesGet Get environment variables for a revision + +Retrieve the environment variables associated with the revision. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the revision + @return ApiV3RevisionsGuidEnvironmentVariablesGetRequest +*/ +func (a *DefaultAPIService) V3RevisionsGuidEnvironmentVariablesGet(ctx context.Context, guid string) ApiV3RevisionsGuidEnvironmentVariablesGetRequest { + return ApiV3RevisionsGuidEnvironmentVariablesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return EnvironmentVariables +func (a *DefaultAPIService) V3RevisionsGuidEnvironmentVariablesGetExecute(r ApiV3RevisionsGuidEnvironmentVariablesGetRequest) (*EnvironmentVariables, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentVariables + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RevisionsGuidEnvironmentVariablesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/revisions/{guid}/environment_variables" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RevisionsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3RevisionsGuidPatchRequest *V3RevisionsGuidPatchRequest +} + +func (r ApiV3RevisionsGuidPatchRequest) V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest V3RevisionsGuidPatchRequest) ApiV3RevisionsGuidPatchRequest { + r.v3RevisionsGuidPatchRequest = &v3RevisionsGuidPatchRequest + return r +} + +func (r ApiV3RevisionsGuidPatchRequest) Execute() (*Revision, *http.Response, error) { + return r.ApiService.V3RevisionsGuidPatchExecute(r) +} + +/* +V3RevisionsGuidPatch Update a revision + +Update metadata for a specific revision. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the revision + @return ApiV3RevisionsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3RevisionsGuidPatch(ctx context.Context, guid string) ApiV3RevisionsGuidPatchRequest { + return ApiV3RevisionsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Revision +func (a *DefaultAPIService) V3RevisionsGuidPatchExecute(r ApiV3RevisionsGuidPatchRequest) (*Revision, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Revision + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RevisionsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/revisions/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3RevisionsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RolesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + types *[]string + spaceGuids *[]string + organizationGuids *[]string + userGuids *[]string + page *int32 + perPage *int32 + orderBy *string + include *[]string + createdAts *[]string + updatedAts *[]string +} + +// Comma-delimited list of role guids to filter by +func (r ApiV3RolesGetRequest) Guids(guids []string) ApiV3RolesGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of role types to filter by +func (r ApiV3RolesGetRequest) Types(types []string) ApiV3RolesGetRequest { + r.types = &types + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3RolesGetRequest) SpaceGuids(spaceGuids []string) ApiV3RolesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3RolesGetRequest) OrganizationGuids(organizationGuids []string) ApiV3RolesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Comma-delimited list of user guids to filter by +func (r ApiV3RolesGetRequest) UserGuids(userGuids []string) ApiV3RolesGetRequest { + r.userGuids = &userGuids + return r +} + +// Page to display, valid values are integers >= 1 +func (r ApiV3RolesGetRequest) Page(page int32) ApiV3RolesGetRequest { + r.page = &page + return r +} + +// Number of results per page, valid values are 1 through 5000 +func (r ApiV3RolesGetRequest) PerPage(perPage int32) ApiV3RolesGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by, defaults to ascending, prepend with - to sort descending +func (r ApiV3RolesGetRequest) OrderBy(orderBy string) ApiV3RolesGetRequest { + r.orderBy = &orderBy + return r +} + +// Optionally include a list of unique related resources in the response +func (r ApiV3RolesGetRequest) Include(include []string) ApiV3RolesGetRequest { + r.include = &include + return r +} + +// Timestamp to filter by, supports filtering with relational operators +func (r ApiV3RolesGetRequest) CreatedAts(createdAts []string) ApiV3RolesGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by, supports filtering with relational operators +func (r ApiV3RolesGetRequest) UpdatedAts(updatedAts []string) ApiV3RolesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3RolesGetRequest) Execute() (*RolesList, *http.Response, error) { + return r.ApiService.V3RolesGetExecute(r) +} + +/* +V3RolesGet List roles + +List roles that the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RolesGetRequest +*/ +func (a *DefaultAPIService) V3RolesGet(ctx context.Context) ApiV3RolesGetRequest { + return ApiV3RolesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RolesList +func (a *DefaultAPIService) V3RolesGetExecute(r ApiV3RolesGetRequest) (*RolesList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RolesList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.types != nil { + t := *r.types + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "types", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.userGuids != nil { + t := *r.userGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + if r.createdAts != nil { + t := *r.createdAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", t, "form", "multi") + } + } + if r.updatedAts != nil { + t := *r.updatedAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RolesGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3RolesGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3RolesGuidDeleteExecute(r) +} + +/* +V3RolesGuidDelete Delete a role + +Delete an individual role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the role + @return ApiV3RolesGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3RolesGuidDelete(ctx context.Context, guid string) ApiV3RolesGuidDeleteRequest { + return ApiV3RolesGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3RolesGuidDeleteExecute(r ApiV3RolesGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RolesGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/roles/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3RolesGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + include *[]string +} + +// Optionally include a list of unique related resources in the response +func (r ApiV3RolesGuidGetRequest) Include(include []string) ApiV3RolesGuidGetRequest { + r.include = &include + return r +} + +func (r ApiV3RolesGuidGetRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.V3RolesGuidGetExecute(r) +} + +/* +V3RolesGuidGet Get a role + +Get an individual role resource. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the role + @return ApiV3RolesGuidGetRequest +*/ +func (a *DefaultAPIService) V3RolesGuidGet(ctx context.Context, guid string) ApiV3RolesGuidGetRequest { + return ApiV3RolesGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Role +func (a *DefaultAPIService) V3RolesGuidGetExecute(r ApiV3RolesGuidGetRequest) (*Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RolesGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/roles/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RolesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3RolesPostRequest *V3RolesPostRequest +} + +func (r ApiV3RolesPostRequest) V3RolesPostRequest(v3RolesPostRequest V3RolesPostRequest) ApiV3RolesPostRequest { + r.v3RolesPostRequest = &v3RolesPostRequest + return r +} + +func (r ApiV3RolesPostRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.V3RolesPostExecute(r) +} + +/* +V3RolesPost Create a role + +Create a new role for a user in an organization or space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RolesPostRequest +*/ +func (a *DefaultAPIService) V3RolesPost(ctx context.Context) ApiV3RolesPostRequest { + return ApiV3RolesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Role +func (a *DefaultAPIService) V3RolesPostExecute(r ApiV3RolesPostRequest) (*Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RolesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3RolesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RoutesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + appGuids *string + domainGuids *string + hosts *string + organizationGuids *string + paths *string + ports *string + spaceGuids *string + serviceInstanceGuids *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + include *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of app guids to filter by +func (r ApiV3RoutesGetRequest) AppGuids(appGuids string) ApiV3RoutesGetRequest { + r.appGuids = &appGuids + return r +} + +// Comma-delimited list of domain guids to filter by +func (r ApiV3RoutesGetRequest) DomainGuids(domainGuids string) ApiV3RoutesGetRequest { + r.domainGuids = &domainGuids + return r +} + +// Comma-delimited list of hostnames to filter by +func (r ApiV3RoutesGetRequest) Hosts(hosts string) ApiV3RoutesGetRequest { + r.hosts = &hosts + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3RoutesGetRequest) OrganizationGuids(organizationGuids string) ApiV3RoutesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Comma-delimited list of paths to filter by (e.g. /path1,/path2) +func (r ApiV3RoutesGetRequest) Paths(paths string) ApiV3RoutesGetRequest { + r.paths = &paths + return r +} + +// Comma-delimited list of ports to filter by (e.g. 3306,5432) +func (r ApiV3RoutesGetRequest) Ports(ports string) ApiV3RoutesGetRequest { + r.ports = &ports + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3RoutesGetRequest) SpaceGuids(spaceGuids string) ApiV3RoutesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of service instance guids to filter by +func (r ApiV3RoutesGetRequest) ServiceInstanceGuids(serviceInstanceGuids string) ApiV3RoutesGetRequest { + r.serviceInstanceGuids = &serviceInstanceGuids + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3RoutesGetRequest) Page(page int32) ApiV3RoutesGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3RoutesGetRequest) PerPage(perPage int32) ApiV3RoutesGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at +func (r ApiV3RoutesGetRequest) OrderBy(orderBy string) ApiV3RoutesGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3RoutesGetRequest) LabelSelector(labelSelector string) ApiV3RoutesGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Optionally include a list of unique related resources in the response. Valid values are domain, space.organization, space +func (r ApiV3RoutesGetRequest) Include(include string) ApiV3RoutesGetRequest { + r.include = &include + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3RoutesGetRequest) CreatedAts(createdAts string) ApiV3RoutesGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3RoutesGetRequest) UpdatedAts(updatedAts string) ApiV3RoutesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3RoutesGetRequest) Execute() (*V3RoutesGet200Response, *http.Response, error) { + return r.ApiService.V3RoutesGetExecute(r) +} + +/* +V3RoutesGet List routes + +Retrieve all routes the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RoutesGetRequest +*/ +func (a *DefaultAPIService) V3RoutesGet(ctx context.Context) ApiV3RoutesGetRequest { + return ApiV3RoutesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3RoutesGet200Response +func (a *DefaultAPIService) V3RoutesGetExecute(r ApiV3RoutesGetRequest) (*V3RoutesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3RoutesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RoutesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/routes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.appGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", r.appGuids, "form", "") + } + if r.domainGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain_guids", r.domainGuids, "form", "") + } + if r.hosts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "hosts", r.hosts, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.paths != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "paths", r.paths, "form", "") + } + if r.ports != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ports", r.ports, "form", "") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "") + } + if r.serviceInstanceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_guids", r.serviceInstanceGuids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RoutesGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + include *string +} + +// Optionally include additional related resources in the response. Valid values are domain, space.organization, space +func (r ApiV3RoutesGuidGetRequest) Include(include string) ApiV3RoutesGuidGetRequest { + r.include = &include + return r +} + +func (r ApiV3RoutesGuidGetRequest) Execute() (*Route, *http.Response, error) { + return r.ApiService.V3RoutesGuidGetExecute(r) +} + +/* +V3RoutesGuidGet Get a route + +Retrieve a route by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The route GUID + @return ApiV3RoutesGuidGetRequest +*/ +func (a *DefaultAPIService) V3RoutesGuidGet(ctx context.Context, guid string) ApiV3RoutesGuidGetRequest { + return ApiV3RoutesGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Route +func (a *DefaultAPIService) V3RoutesGuidGetExecute(r ApiV3RoutesGuidGetRequest) (*Route, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Route + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RoutesGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/routes/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3RoutesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3RoutesPostRequest *V3RoutesPostRequest +} + +func (r ApiV3RoutesPostRequest) V3RoutesPostRequest(v3RoutesPostRequest V3RoutesPostRequest) ApiV3RoutesPostRequest { + r.v3RoutesPostRequest = &v3RoutesPostRequest + return r +} + +func (r ApiV3RoutesPostRequest) Execute() (*Route, *http.Response, error) { + return r.ApiService.V3RoutesPostExecute(r) +} + +/* +V3RoutesPost Create a route + +Create a new route. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3RoutesPostRequest +*/ +func (a *DefaultAPIService) V3RoutesPost(ctx context.Context) ApiV3RoutesPostRequest { + return ApiV3RoutesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Route +func (a *DefaultAPIService) V3RoutesPostExecute(r ApiV3RoutesPostRequest) (*Route, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Route + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3RoutesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/routes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3RoutesPostRequest == nil { + return localVarReturnValue, nil, reportError("v3RoutesPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3RoutesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SecurityGroupsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + names *[]string + globallyEnabledRunning *bool + globallyEnabledStaging *bool + runningSpaceGuids *[]string + stagingSpaceGuids *[]string + page *int32 + perPage *int32 + orderBy *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of security group guids to filter by +func (r ApiV3SecurityGroupsGetRequest) Guids(guids []string) ApiV3SecurityGroupsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of security group names to filter by +func (r ApiV3SecurityGroupsGetRequest) Names(names []string) ApiV3SecurityGroupsGetRequest { + r.names = &names + return r +} + +// If true, only include the security groups that are enabled for running +func (r ApiV3SecurityGroupsGetRequest) GloballyEnabledRunning(globallyEnabledRunning bool) ApiV3SecurityGroupsGetRequest { + r.globallyEnabledRunning = &globallyEnabledRunning + return r +} + +// If true, only include the security groups that are enabled for staging +func (r ApiV3SecurityGroupsGetRequest) GloballyEnabledStaging(globallyEnabledStaging bool) ApiV3SecurityGroupsGetRequest { + r.globallyEnabledStaging = &globallyEnabledStaging + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3SecurityGroupsGetRequest) RunningSpaceGuids(runningSpaceGuids []string) ApiV3SecurityGroupsGetRequest { + r.runningSpaceGuids = &runningSpaceGuids + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3SecurityGroupsGetRequest) StagingSpaceGuids(stagingSpaceGuids []string) ApiV3SecurityGroupsGetRequest { + r.stagingSpaceGuids = &stagingSpaceGuids + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3SecurityGroupsGetRequest) Page(page int32) ApiV3SecurityGroupsGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3SecurityGroupsGetRequest) PerPage(perPage int32) ApiV3SecurityGroupsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at +func (r ApiV3SecurityGroupsGetRequest) OrderBy(orderBy string) ApiV3SecurityGroupsGetRequest { + r.orderBy = &orderBy + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3SecurityGroupsGetRequest) CreatedAts(createdAts string) ApiV3SecurityGroupsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3SecurityGroupsGetRequest) UpdatedAts(updatedAts string) ApiV3SecurityGroupsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3SecurityGroupsGetRequest) Execute() (*SecurityGroupList, *http.Response, error) { + return r.ApiService.V3SecurityGroupsGetExecute(r) +} + +/* +V3SecurityGroupsGet List security groups + +Retrieves a list of security groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SecurityGroupsGetRequest +*/ +func (a *DefaultAPIService) V3SecurityGroupsGet(ctx context.Context) ApiV3SecurityGroupsGetRequest { + return ApiV3SecurityGroupsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SecurityGroupList +func (a *DefaultAPIService) V3SecurityGroupsGetExecute(r ApiV3SecurityGroupsGetRequest) (*SecurityGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SecurityGroupsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/security_groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.globallyEnabledRunning != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "globally_enabled_running", r.globallyEnabledRunning, "form", "") + } + if r.globallyEnabledStaging != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "globally_enabled_staging", r.globallyEnabledStaging, "form", "") + } + if r.runningSpaceGuids != nil { + t := *r.runningSpaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "running_space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "running_space_guids", t, "form", "multi") + } + } + if r.stagingSpaceGuids != nil { + t := *r.stagingSpaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "staging_space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "staging_space_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SecurityGroupsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SecurityGroupsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3SecurityGroupsGuidDeleteExecute(r) +} + +/* +V3SecurityGroupsGuidDelete Delete a security group + +Deletes a security group by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3SecurityGroupsGuidDelete(ctx context.Context, guid string) ApiV3SecurityGroupsGuidDeleteRequest { + return ApiV3SecurityGroupsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3SecurityGroupsGuidDeleteExecute(r ApiV3SecurityGroupsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SecurityGroupsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/security_groups/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SecurityGroupsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SecurityGroupsGuidGetRequest) Execute() (*SecurityGroup, *http.Response, error) { + return r.ApiService.V3SecurityGroupsGuidGetExecute(r) +} + +/* +V3SecurityGroupsGuidGet Get a security group + +Retrieves a security group by its GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidGetRequest +*/ +func (a *DefaultAPIService) V3SecurityGroupsGuidGet(ctx context.Context, guid string) ApiV3SecurityGroupsGuidGetRequest { + return ApiV3SecurityGroupsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return SecurityGroup +func (a *DefaultAPIService) V3SecurityGroupsGuidGetExecute(r ApiV3SecurityGroupsGuidGetRequest) (*SecurityGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SecurityGroupsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/security_groups/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SecurityGroupsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + securityGroupUpdate *SecurityGroupUpdate +} + +func (r ApiV3SecurityGroupsGuidPatchRequest) SecurityGroupUpdate(securityGroupUpdate SecurityGroupUpdate) ApiV3SecurityGroupsGuidPatchRequest { + r.securityGroupUpdate = &securityGroupUpdate + return r +} + +func (r ApiV3SecurityGroupsGuidPatchRequest) Execute() (*SecurityGroup, *http.Response, error) { + return r.ApiService.V3SecurityGroupsGuidPatchExecute(r) +} + +/* +V3SecurityGroupsGuidPatch Update a security group + +Updates the specified attributes of the security group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The security group GUID + @return ApiV3SecurityGroupsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3SecurityGroupsGuidPatch(ctx context.Context, guid string) ApiV3SecurityGroupsGuidPatchRequest { + return ApiV3SecurityGroupsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return SecurityGroup +func (a *DefaultAPIService) V3SecurityGroupsGuidPatchExecute(r ApiV3SecurityGroupsGuidPatchRequest) (*SecurityGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SecurityGroupsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/security_groups/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.securityGroupUpdate == nil { + return localVarReturnValue, nil, reportError("securityGroupUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.securityGroupUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SecurityGroupsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + securityGroupCreate *SecurityGroupCreate +} + +func (r ApiV3SecurityGroupsPostRequest) SecurityGroupCreate(securityGroupCreate SecurityGroupCreate) ApiV3SecurityGroupsPostRequest { + r.securityGroupCreate = &securityGroupCreate + return r +} + +func (r ApiV3SecurityGroupsPostRequest) Execute() (*SecurityGroup, *http.Response, error) { + return r.ApiService.V3SecurityGroupsPostExecute(r) +} + +/* +V3SecurityGroupsPost Create a security group + +Creates a new security group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SecurityGroupsPostRequest +*/ +func (a *DefaultAPIService) V3SecurityGroupsPost(ctx context.Context) ApiV3SecurityGroupsPostRequest { + return ApiV3SecurityGroupsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SecurityGroup +func (a *DefaultAPIService) V3SecurityGroupsPostExecute(r ApiV3SecurityGroupsPostRequest) (*SecurityGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SecurityGroupsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/security_groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.securityGroupCreate == nil { + return localVarReturnValue, nil, reportError("securityGroupCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.securityGroupCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceBrokersGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *[]string + page *int32 + perPage *int32 + spaceGuids *[]string + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of service broker names to filter by +func (r ApiV3ServiceBrokersGetRequest) Names(names []string) ApiV3ServiceBrokersGetRequest { + r.names = &names + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3ServiceBrokersGetRequest) Page(page int32) ApiV3ServiceBrokersGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3ServiceBrokersGetRequest) PerPage(perPage int32) ApiV3ServiceBrokersGetRequest { + r.perPage = &perPage + return r +} + +// Comma-delimited list of space GUIDs to filter by +func (r ApiV3ServiceBrokersGetRequest) SpaceGuids(spaceGuids []string) ApiV3ServiceBrokersGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name +func (r ApiV3ServiceBrokersGetRequest) OrderBy(orderBy string) ApiV3ServiceBrokersGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3ServiceBrokersGetRequest) LabelSelector(labelSelector string) ApiV3ServiceBrokersGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServiceBrokersGetRequest) CreatedAts(createdAts string) ApiV3ServiceBrokersGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServiceBrokersGetRequest) UpdatedAts(updatedAts string) ApiV3ServiceBrokersGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServiceBrokersGetRequest) Execute() (*ServiceBrokerList, *http.Response, error) { + return r.ApiService.V3ServiceBrokersGetExecute(r) +} + +/* +V3ServiceBrokersGet List service brokers + +Retrieves the service brokers the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceBrokersGetRequest +*/ +func (a *DefaultAPIService) V3ServiceBrokersGet(ctx context.Context) ApiV3ServiceBrokersGetRequest { + return ApiV3ServiceBrokersGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceBrokerList +func (a *DefaultAPIService) V3ServiceBrokersGetExecute(r ApiV3ServiceBrokersGetRequest) (*ServiceBrokerList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceBrokerList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceBrokersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_brokers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceBrokersGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceBrokersGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceBrokersGuidDeleteExecute(r) +} + +/* +V3ServiceBrokersGuidDelete Delete a service broker + +Creates a job to delete an existing service broker. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServiceBrokersGuidDelete(ctx context.Context, guid string) ApiV3ServiceBrokersGuidDeleteRequest { + return ApiV3ServiceBrokersGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceBrokersGuidDeleteExecute(r ApiV3ServiceBrokersGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceBrokersGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_brokers/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServiceBrokersGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceBrokersGuidGetRequest) Execute() (*ServiceBroker, *http.Response, error) { + return r.ApiService.V3ServiceBrokersGuidGetExecute(r) +} + +/* +V3ServiceBrokersGuidGet Get a service broker + +Retrieves the service broker by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServiceBrokersGuidGet(ctx context.Context, guid string) ApiV3ServiceBrokersGuidGetRequest { + return ApiV3ServiceBrokersGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceBroker +func (a *DefaultAPIService) V3ServiceBrokersGuidGetExecute(r ApiV3ServiceBrokersGuidGetRequest) (*ServiceBroker, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceBroker + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceBrokersGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_brokers/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceBrokersGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + serviceBrokerUpdate *ServiceBrokerUpdate +} + +func (r ApiV3ServiceBrokersGuidPatchRequest) ServiceBrokerUpdate(serviceBrokerUpdate ServiceBrokerUpdate) ApiV3ServiceBrokersGuidPatchRequest { + r.serviceBrokerUpdate = &serviceBrokerUpdate + return r +} + +func (r ApiV3ServiceBrokersGuidPatchRequest) Execute() (*ServiceBroker, *http.Response, error) { + return r.ApiService.V3ServiceBrokersGuidPatchExecute(r) +} + +/* +V3ServiceBrokersGuidPatch Update a service broker + +Updates a service broker. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service broker GUID + @return ApiV3ServiceBrokersGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServiceBrokersGuidPatch(ctx context.Context, guid string) ApiV3ServiceBrokersGuidPatchRequest { + return ApiV3ServiceBrokersGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceBroker +func (a *DefaultAPIService) V3ServiceBrokersGuidPatchExecute(r ApiV3ServiceBrokersGuidPatchRequest) (*ServiceBroker, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceBroker + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceBrokersGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_brokers/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceBrokerUpdate == nil { + return localVarReturnValue, nil, reportError("serviceBrokerUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceBrokerUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceBrokersPostRequest struct { + ctx context.Context + ApiService DefaultAPI + serviceBrokerCreate *ServiceBrokerCreate +} + +func (r ApiV3ServiceBrokersPostRequest) ServiceBrokerCreate(serviceBrokerCreate ServiceBrokerCreate) ApiV3ServiceBrokersPostRequest { + r.serviceBrokerCreate = &serviceBrokerCreate + return r +} + +func (r ApiV3ServiceBrokersPostRequest) Execute() (*ServiceBroker, *http.Response, error) { + return r.ApiService.V3ServiceBrokersPostExecute(r) +} + +/* +V3ServiceBrokersPost Create a service broker + +Creates a new service broker and a job to synchronize the service offerings and service plans with those in the broker’s catalog. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceBrokersPostRequest +*/ +func (a *DefaultAPIService) V3ServiceBrokersPost(ctx context.Context) ApiV3ServiceBrokersPostRequest { + return ApiV3ServiceBrokersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceBroker +func (a *DefaultAPIService) V3ServiceBrokersPostExecute(r ApiV3ServiceBrokersPostRequest) (*ServiceBroker, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceBroker + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceBrokersPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_brokers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceBrokerCreate == nil { + return localVarReturnValue, nil, reportError("serviceBrokerCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceBrokerCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceCredentialBindingsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsGuidDeleteExecute(r) +} + +/* +V3ServiceCredentialBindingsGuidDelete Delete a service credential binding + +This endpoint deletes a service credential binding. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidDeleteRequest { + return ApiV3ServiceCredentialBindingsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidDeleteExecute(r ApiV3ServiceCredentialBindingsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsGuidDetailsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceCredentialBindingsGuidDetailsGetRequest) Execute() (*V3ServiceCredentialBindingsGuidDetailsGet200Response, *http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsGuidDetailsGetExecute(r) +} + +/* +V3ServiceCredentialBindingsGuidDetailsGet Get a service credential binding details + +This endpoint retrieves the service credential binding details. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidDetailsGetRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidDetailsGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidDetailsGetRequest { + return ApiV3ServiceCredentialBindingsGuidDetailsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3ServiceCredentialBindingsGuidDetailsGet200Response +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidDetailsGetExecute(r ApiV3ServiceCredentialBindingsGuidDetailsGetRequest) (*V3ServiceCredentialBindingsGuidDetailsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3ServiceCredentialBindingsGuidDetailsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsGuidDetailsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings/{guid}/details" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + include *[]string +} + +func (r ApiV3ServiceCredentialBindingsGuidGetRequest) Include(include []string) ApiV3ServiceCredentialBindingsGuidGetRequest { + r.include = &include + return r +} + +func (r ApiV3ServiceCredentialBindingsGuidGetRequest) Execute() (*ServiceCredentialBinding, *http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsGuidGetExecute(r) +} + +/* +V3ServiceCredentialBindingsGuidGet Get a service credential binding + +This endpoint retrieves the service credential binding by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidGetRequest { + return ApiV3ServiceCredentialBindingsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceCredentialBinding +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidGetExecute(r ApiV3ServiceCredentialBindingsGuidGetRequest) (*ServiceCredentialBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceCredentialBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsGuidParametersGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceCredentialBindingsGuidParametersGetRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsGuidParametersGetExecute(r) +} + +/* +V3ServiceCredentialBindingsGuidParametersGet Get parameters for a service credential binding + +Queries the Service Broker for the parameters associated with this service credential binding. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidParametersGetRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidParametersGet(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidParametersGetRequest { + return ApiV3ServiceCredentialBindingsGuidParametersGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidParametersGetExecute(r ApiV3ServiceCredentialBindingsGuidParametersGetRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsGuidParametersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings/{guid}/parameters" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3ServiceCredentialBindingsGuidPatchRequest *V3ServiceCredentialBindingsGuidPatchRequest +} + +func (r ApiV3ServiceCredentialBindingsGuidPatchRequest) V3ServiceCredentialBindingsGuidPatchRequest(v3ServiceCredentialBindingsGuidPatchRequest V3ServiceCredentialBindingsGuidPatchRequest) ApiV3ServiceCredentialBindingsGuidPatchRequest { + r.v3ServiceCredentialBindingsGuidPatchRequest = &v3ServiceCredentialBindingsGuidPatchRequest + return r +} + +func (r ApiV3ServiceCredentialBindingsGuidPatchRequest) Execute() (*ServiceCredentialBinding, *http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsGuidPatchExecute(r) +} + +/* +V3ServiceCredentialBindingsGuidPatch Update a service credential binding + +This endpoint updates a service credential binding with labels and annotations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceCredentialBindingsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceCredentialBindingsGuidPatchRequest { + return ApiV3ServiceCredentialBindingsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceCredentialBinding +func (a *DefaultAPIService) V3ServiceCredentialBindingsGuidPatchExecute(r ApiV3ServiceCredentialBindingsGuidPatchRequest) (*ServiceCredentialBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceCredentialBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3ServiceCredentialBindingsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3ServiceCredentialBindingsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceCredentialBindingsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceCredentialBindingsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3ServiceCredentialBindingsPostRequest *V3ServiceCredentialBindingsPostRequest +} + +func (r ApiV3ServiceCredentialBindingsPostRequest) V3ServiceCredentialBindingsPostRequest(v3ServiceCredentialBindingsPostRequest V3ServiceCredentialBindingsPostRequest) ApiV3ServiceCredentialBindingsPostRequest { + r.v3ServiceCredentialBindingsPostRequest = &v3ServiceCredentialBindingsPostRequest + return r +} + +func (r ApiV3ServiceCredentialBindingsPostRequest) Execute() (*ServiceCredentialBinding, *http.Response, error) { + return r.ApiService.V3ServiceCredentialBindingsPostExecute(r) +} + +/* +V3ServiceCredentialBindingsPost Create a service credential binding + +This endpoint creates a new service credential binding. Service credential bindings can be of type app or key; key is only valid for managed service instances. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceCredentialBindingsPostRequest +*/ +func (a *DefaultAPIService) V3ServiceCredentialBindingsPost(ctx context.Context) ApiV3ServiceCredentialBindingsPostRequest { + return ApiV3ServiceCredentialBindingsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceCredentialBinding +func (a *DefaultAPIService) V3ServiceCredentialBindingsPostExecute(r ApiV3ServiceCredentialBindingsPostRequest) (*ServiceCredentialBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceCredentialBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceCredentialBindingsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_credential_bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3ServiceCredentialBindingsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3ServiceCredentialBindingsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceCredentialBindingsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *[]string + guids *[]string + type_ *string + spaceGuids *[]string + organizationGuids *[]string + servicePlanGuids *[]string + servicePlanNames *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *[]time.Time + updatedAts *[]time.Time +} + +// Comma-delimited list of service instance names to filter by +func (r ApiV3ServiceInstancesGetRequest) Names(names []string) ApiV3ServiceInstancesGetRequest { + r.names = &names + return r +} + +// Comma-delimited list of service instance guids to filter by +func (r ApiV3ServiceInstancesGetRequest) Guids(guids []string) ApiV3ServiceInstancesGetRequest { + r.guids = &guids + return r +} + +// Filter by type +func (r ApiV3ServiceInstancesGetRequest) Type_(type_ string) ApiV3ServiceInstancesGetRequest { + r.type_ = &type_ + return r +} + +// Comma-delimited list of space guids to filter by +func (r ApiV3ServiceInstancesGetRequest) SpaceGuids(spaceGuids []string) ApiV3ServiceInstancesGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization guids to filter by +func (r ApiV3ServiceInstancesGetRequest) OrganizationGuids(organizationGuids []string) ApiV3ServiceInstancesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Comma-delimited list of service plan guids to filter by +func (r ApiV3ServiceInstancesGetRequest) ServicePlanGuids(servicePlanGuids []string) ApiV3ServiceInstancesGetRequest { + r.servicePlanGuids = &servicePlanGuids + return r +} + +// Comma-delimited list of service plan names to filter by +func (r ApiV3ServiceInstancesGetRequest) ServicePlanNames(servicePlanNames []string) ApiV3ServiceInstancesGetRequest { + r.servicePlanNames = &servicePlanNames + return r +} + +// Page to display +func (r ApiV3ServiceInstancesGetRequest) Page(page int32) ApiV3ServiceInstancesGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3ServiceInstancesGetRequest) PerPage(perPage int32) ApiV3ServiceInstancesGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3ServiceInstancesGetRequest) OrderBy(orderBy string) ApiV3ServiceInstancesGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3ServiceInstancesGetRequest) LabelSelector(labelSelector string) ApiV3ServiceInstancesGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by +func (r ApiV3ServiceInstancesGetRequest) CreatedAts(createdAts []time.Time) ApiV3ServiceInstancesGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by +func (r ApiV3ServiceInstancesGetRequest) UpdatedAts(updatedAts []time.Time) ApiV3ServiceInstancesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServiceInstancesGetRequest) Execute() (*V3ServiceInstancesGet200Response, *http.Response, error) { + return r.ApiService.V3ServiceInstancesGetExecute(r) +} + +/* +V3ServiceInstancesGet Retrieve service instances + +Retrieves the service instances the user has access to, including access granted by service instance sharing. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceInstancesGetRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGet(ctx context.Context) ApiV3ServiceInstancesGetRequest { + return ApiV3ServiceInstancesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3ServiceInstancesGet200Response +func (a *DefaultAPIService) V3ServiceInstancesGetExecute(r ApiV3ServiceInstancesGetRequest) (*V3ServiceInstancesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3ServiceInstancesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.servicePlanGuids != nil { + t := *r.servicePlanGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_plan_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_plan_guids", t, "form", "multi") + } + } + if r.servicePlanNames != nil { + t := *r.servicePlanNames + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_plan_names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_plan_names", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + t := *r.createdAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", t, "form", "multi") + } + } + if r.updatedAts != nil { + t := *r.updatedAts + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGuidCredentialsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceInstancesGuidCredentialsGetRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.V3ServiceInstancesGuidCredentialsGetExecute(r) +} + +/* +V3ServiceInstancesGuidCredentialsGet Get credentials for a user-provided service instance + +Retrieves the credentials for a user-provided service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidCredentialsGetRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGuidCredentialsGet(ctx context.Context, guid string) ApiV3ServiceInstancesGuidCredentialsGetRequest { + return ApiV3ServiceInstancesGuidCredentialsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]string +func (a *DefaultAPIService) V3ServiceInstancesGuidCredentialsGetExecute(r ApiV3ServiceInstancesGuidCredentialsGetRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGuidCredentialsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances/{guid}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3ServiceInstancesGuidPatchRequest *V3ServiceInstancesGuidPatchRequest +} + +func (r ApiV3ServiceInstancesGuidPatchRequest) V3ServiceInstancesGuidPatchRequest(v3ServiceInstancesGuidPatchRequest V3ServiceInstancesGuidPatchRequest) ApiV3ServiceInstancesGuidPatchRequest { + r.v3ServiceInstancesGuidPatchRequest = &v3ServiceInstancesGuidPatchRequest + return r +} + +func (r ApiV3ServiceInstancesGuidPatchRequest) Execute() (*ServiceInstance, *http.Response, error) { + return r.ApiService.V3ServiceInstancesGuidPatchExecute(r) +} + +/* +V3ServiceInstancesGuidPatch Update a service instance + +Updates a service instance with the provided attributes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGuidPatch(ctx context.Context, guid string) ApiV3ServiceInstancesGuidPatchRequest { + return ApiV3ServiceInstancesGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceInstance +func (a *DefaultAPIService) V3ServiceInstancesGuidPatchExecute(r ApiV3ServiceInstancesGuidPatchRequest) (*ServiceInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceInstancesGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest +} + +func (r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest(v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + r.v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest = &v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + return r +} + +func (r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) Execute() (*V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest, *http.Response, error) { + return r.ApiService.V3ServiceInstancesGuidRelationshipsSharedSpacesPostExecute(r) +} + +/* +V3ServiceInstancesGuidRelationshipsSharedSpacesPost Share a service instance to other spaces + +Shares the service instance with the specified spaces. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesPost(ctx context.Context, guid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesPostExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) (*V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGuidRelationshipsSharedSpacesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances/{guid}/relationships/shared_spaces" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + spaceGuid string +} + +func (r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteExecute(r) +} + +/* +V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete Unshare a service instance from another space + +Unshares the service instance from the specified space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @param spaceGuid GUID of the space + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete(ctx context.Context, guid string, spaceGuid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest { + return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + spaceGuid: spaceGuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances/{guid}/relationships/shared_spaces/{space_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"space_guid"+"}", url.PathEscape(parameterValueToString(r.spaceGuid, "spaceGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest) Execute() (*UsageSummary, *http.Response, error) { + return r.ApiService.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetExecute(r) +} + +/* +V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet Get usage summary in shared spaces + +Returns the number of bound apps in spaces where the service instance has been shared to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid GUID of the service instance + @return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest +*/ +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet(ctx context.Context, guid string) ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest { + return ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return UsageSummary +func (a *DefaultAPIService) V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetExecute(r ApiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest) (*UsageSummary, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UsageSummary + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_instances/{guid}/relationships/shared_spaces/usage_summary" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceOfferingsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *[]string + available *bool + serviceBrokerGuids *[]string + serviceBrokerNames *[]string + spaceGuids *[]string + organizationGuids *[]string + labelSelector *string + orderBy *string + page *int32 + perPage *int32 + createdAts *string + updatedAts *string +} + +// Comma-delimited list of names to filter by +func (r ApiV3ServiceOfferingsGetRequest) Names(names []string) ApiV3ServiceOfferingsGetRequest { + r.names = &names + return r +} + +// Filter by the available property; valid values are true or false +func (r ApiV3ServiceOfferingsGetRequest) Available(available bool) ApiV3ServiceOfferingsGetRequest { + r.available = &available + return r +} + +// Comma-delimited list of service broker GUIDs to filter by +func (r ApiV3ServiceOfferingsGetRequest) ServiceBrokerGuids(serviceBrokerGuids []string) ApiV3ServiceOfferingsGetRequest { + r.serviceBrokerGuids = &serviceBrokerGuids + return r +} + +// Comma-delimited list of service broker names to filter by +func (r ApiV3ServiceOfferingsGetRequest) ServiceBrokerNames(serviceBrokerNames []string) ApiV3ServiceOfferingsGetRequest { + r.serviceBrokerNames = &serviceBrokerNames + return r +} + +// Comma-delimited list of space GUIDs to filter by +func (r ApiV3ServiceOfferingsGetRequest) SpaceGuids(spaceGuids []string) ApiV3ServiceOfferingsGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization GUIDs to filter by +func (r ApiV3ServiceOfferingsGetRequest) OrganizationGuids(organizationGuids []string) ApiV3ServiceOfferingsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3ServiceOfferingsGetRequest) LabelSelector(labelSelector string) ApiV3ServiceOfferingsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name +func (r ApiV3ServiceOfferingsGetRequest) OrderBy(orderBy string) ApiV3ServiceOfferingsGetRequest { + r.orderBy = &orderBy + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3ServiceOfferingsGetRequest) Page(page int32) ApiV3ServiceOfferingsGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3ServiceOfferingsGetRequest) PerPage(perPage int32) ApiV3ServiceOfferingsGetRequest { + r.perPage = &perPage + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServiceOfferingsGetRequest) CreatedAts(createdAts string) ApiV3ServiceOfferingsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServiceOfferingsGetRequest) UpdatedAts(updatedAts string) ApiV3ServiceOfferingsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServiceOfferingsGetRequest) Execute() (*ServiceOfferingList, *http.Response, error) { + return r.ApiService.V3ServiceOfferingsGetExecute(r) +} + +/* +V3ServiceOfferingsGet List service offerings + +Retrieves the service offerings the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceOfferingsGetRequest +*/ +func (a *DefaultAPIService) V3ServiceOfferingsGet(ctx context.Context) ApiV3ServiceOfferingsGetRequest { + return ApiV3ServiceOfferingsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceOfferingList +func (a *DefaultAPIService) V3ServiceOfferingsGetExecute(r ApiV3ServiceOfferingsGetRequest) (*ServiceOfferingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceOfferingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceOfferingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_offerings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.available != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "available", r.available, "form", "") + } + if r.serviceBrokerGuids != nil { + t := *r.serviceBrokerGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_guids", t, "form", "multi") + } + } + if r.serviceBrokerNames != nil { + t := *r.serviceBrokerNames + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_names", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceOfferingsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + purge *bool +} + +// If true, any service plans, instances, and bindings associated with this service offering will also be deleted +func (r ApiV3ServiceOfferingsGuidDeleteRequest) Purge(purge bool) ApiV3ServiceOfferingsGuidDeleteRequest { + r.purge = &purge + return r +} + +func (r ApiV3ServiceOfferingsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceOfferingsGuidDeleteExecute(r) +} + +/* +V3ServiceOfferingsGuidDelete Delete a service offering + +Deletes a service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServiceOfferingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidDeleteRequest { + return ApiV3ServiceOfferingsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceOfferingsGuidDeleteExecute(r ApiV3ServiceOfferingsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceOfferingsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_offerings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.purge != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "purge", r.purge, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServiceOfferingsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceOfferingsGuidGetRequest) Execute() (*ServiceOffering, *http.Response, error) { + return r.ApiService.V3ServiceOfferingsGuidGetExecute(r) +} + +/* +V3ServiceOfferingsGuidGet Get a service offering + +Retrieves the service offering by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServiceOfferingsGuidGet(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidGetRequest { + return ApiV3ServiceOfferingsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceOffering +func (a *DefaultAPIService) V3ServiceOfferingsGuidGetExecute(r ApiV3ServiceOfferingsGuidGetRequest) (*ServiceOffering, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceOffering + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceOfferingsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_offerings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceOfferingsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + serviceOfferingUpdate *ServiceOfferingUpdate +} + +func (r ApiV3ServiceOfferingsGuidPatchRequest) ServiceOfferingUpdate(serviceOfferingUpdate ServiceOfferingUpdate) ApiV3ServiceOfferingsGuidPatchRequest { + r.serviceOfferingUpdate = &serviceOfferingUpdate + return r +} + +func (r ApiV3ServiceOfferingsGuidPatchRequest) Execute() (*ServiceOffering, *http.Response, error) { + return r.ApiService.V3ServiceOfferingsGuidPatchExecute(r) +} + +/* +V3ServiceOfferingsGuidPatch Update a service offering + +Updates a service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service offering GUID + @return ApiV3ServiceOfferingsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServiceOfferingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceOfferingsGuidPatchRequest { + return ApiV3ServiceOfferingsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceOffering +func (a *DefaultAPIService) V3ServiceOfferingsGuidPatchExecute(r ApiV3ServiceOfferingsGuidPatchRequest) (*ServiceOffering, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceOffering + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceOfferingsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_offerings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceOfferingUpdate == nil { + return localVarReturnValue, nil, reportError("serviceOfferingUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceOfferingUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceOfferingsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + serviceOfferingCreate *ServiceOfferingCreate +} + +func (r ApiV3ServiceOfferingsPostRequest) ServiceOfferingCreate(serviceOfferingCreate ServiceOfferingCreate) ApiV3ServiceOfferingsPostRequest { + r.serviceOfferingCreate = &serviceOfferingCreate + return r +} + +func (r ApiV3ServiceOfferingsPostRequest) Execute() (*ServiceOffering, *http.Response, error) { + return r.ApiService.V3ServiceOfferingsPostExecute(r) +} + +/* +V3ServiceOfferingsPost Create a service offering + +Creates a new service offering. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceOfferingsPostRequest +*/ +func (a *DefaultAPIService) V3ServiceOfferingsPost(ctx context.Context) ApiV3ServiceOfferingsPostRequest { + return ApiV3ServiceOfferingsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceOffering +func (a *DefaultAPIService) V3ServiceOfferingsPostExecute(r ApiV3ServiceOfferingsPostRequest) (*ServiceOffering, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceOffering + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceOfferingsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_offerings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.serviceOfferingCreate == nil { + return localVarReturnValue, nil, reportError("serviceOfferingCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceOfferingCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *[]string + available *bool + brokerCatalogIds *[]string + spaceGuids *[]string + organizationGuids *[]string + serviceBrokerGuids *[]string + serviceBrokerNames *[]string + serviceOfferingGuids *[]string + serviceOfferingNames *[]string + serviceInstanceGuids *[]string + include *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + fields *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of names to filter by +func (r ApiV3ServicePlansGetRequest) Names(names []string) ApiV3ServicePlansGetRequest { + r.names = &names + return r +} + +// Filter by the available property; valid values are true or false +func (r ApiV3ServicePlansGetRequest) Available(available bool) ApiV3ServicePlansGetRequest { + r.available = &available + return r +} + +// Comma-delimited list of IDs provided by the service broker for the service plan to filter by +func (r ApiV3ServicePlansGetRequest) BrokerCatalogIds(brokerCatalogIds []string) ApiV3ServicePlansGetRequest { + r.brokerCatalogIds = &brokerCatalogIds + return r +} + +// Comma-delimited list of space GUIDs to filter by +func (r ApiV3ServicePlansGetRequest) SpaceGuids(spaceGuids []string) ApiV3ServicePlansGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +// Comma-delimited list of organization GUIDs to filter by +func (r ApiV3ServicePlansGetRequest) OrganizationGuids(organizationGuids []string) ApiV3ServicePlansGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Comma-delimited list of service broker GUIDs to filter by +func (r ApiV3ServicePlansGetRequest) ServiceBrokerGuids(serviceBrokerGuids []string) ApiV3ServicePlansGetRequest { + r.serviceBrokerGuids = &serviceBrokerGuids + return r +} + +// Comma-delimited list of service broker names to filter by +func (r ApiV3ServicePlansGetRequest) ServiceBrokerNames(serviceBrokerNames []string) ApiV3ServicePlansGetRequest { + r.serviceBrokerNames = &serviceBrokerNames + return r +} + +// Comma-delimited list of service Offering GUIDs to filter by +func (r ApiV3ServicePlansGetRequest) ServiceOfferingGuids(serviceOfferingGuids []string) ApiV3ServicePlansGetRequest { + r.serviceOfferingGuids = &serviceOfferingGuids + return r +} + +// Comma-delimited list of service Offering names to filter by +func (r ApiV3ServicePlansGetRequest) ServiceOfferingNames(serviceOfferingNames []string) ApiV3ServicePlansGetRequest { + r.serviceOfferingNames = &serviceOfferingNames + return r +} + +// Comma-delimited list of service Instance GUIDs to filter by +func (r ApiV3ServicePlansGetRequest) ServiceInstanceGuids(serviceInstanceGuids []string) ApiV3ServicePlansGetRequest { + r.serviceInstanceGuids = &serviceInstanceGuids + return r +} + +// Optionally include a list of related resources in the response; valid values are space.organization and service_offering +func (r ApiV3ServicePlansGetRequest) Include(include []string) ApiV3ServicePlansGetRequest { + r.include = &include + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3ServicePlansGetRequest) Page(page int32) ApiV3ServicePlansGetRequest { + r.page = &page + return r +} + +// Number of results per page; valid values are 1 through 5000 +func (r ApiV3ServicePlansGetRequest) PerPage(perPage int32) ApiV3ServicePlansGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name +func (r ApiV3ServicePlansGetRequest) OrderBy(orderBy string) ApiV3ServicePlansGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3ServicePlansGetRequest) LabelSelector(labelSelector string) ApiV3ServicePlansGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Allowed values for fields +func (r ApiV3ServicePlansGetRequest) Fields(fields string) ApiV3ServicePlansGetRequest { + r.fields = &fields + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServicePlansGetRequest) CreatedAts(createdAts string) ApiV3ServicePlansGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3ServicePlansGetRequest) UpdatedAts(updatedAts string) ApiV3ServicePlansGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServicePlansGetRequest) Execute() (*ServicePlanList, *http.Response, error) { + return r.ApiService.V3ServicePlansGetExecute(r) +} + +/* +V3ServicePlansGet List service plans + +Retrieves the service plans the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServicePlansGetRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGet(ctx context.Context) ApiV3ServicePlansGetRequest { + return ApiV3ServicePlansGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServicePlanList +func (a *DefaultAPIService) V3ServicePlansGetExecute(r ApiV3ServicePlansGetRequest) (*ServicePlanList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlanList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.available != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "available", r.available, "form", "") + } + if r.brokerCatalogIds != nil { + t := *r.brokerCatalogIds + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "broker_catalog_ids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "broker_catalog_ids", t, "form", "multi") + } + } + if r.spaceGuids != nil { + t := *r.spaceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.serviceBrokerGuids != nil { + t := *r.serviceBrokerGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_guids", t, "form", "multi") + } + } + if r.serviceBrokerNames != nil { + t := *r.serviceBrokerNames + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_broker_names", t, "form", "multi") + } + } + if r.serviceOfferingGuids != nil { + t := *r.serviceOfferingGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_offering_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_offering_guids", t, "form", "multi") + } + } + if r.serviceOfferingNames != nil { + t := *r.serviceOfferingNames + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_offering_names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_offering_names", t, "form", "multi") + } + } + if r.serviceInstanceGuids != nil { + t := *r.serviceInstanceGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_guids", t, "form", "multi") + } + } + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.fields != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "fields", r.fields, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + purge *bool +} + +// If true, any service plans, instances, and bindings associated with this service plan will also be deleted +func (r ApiV3ServicePlansGuidDeleteRequest) Purge(purge bool) ApiV3ServicePlansGuidDeleteRequest { + r.purge = &purge + return r +} + +func (r ApiV3ServicePlansGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServicePlansGuidDeleteExecute(r) +} + +/* +V3ServicePlansGuidDelete Delete a service plan + +Deletes a service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidDelete(ctx context.Context, guid string) ApiV3ServicePlansGuidDeleteRequest { + return ApiV3ServicePlansGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServicePlansGuidDeleteExecute(r ApiV3ServicePlansGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.purge != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "purge", r.purge, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServicePlansGuidGetRequest) Execute() (*ServicePlan, *http.Response, error) { + return r.ApiService.V3ServicePlansGuidGetExecute(r) +} + +/* +V3ServicePlansGuidGet Get a service plan + +Retrieves the service plan by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidGet(ctx context.Context, guid string) ApiV3ServicePlansGuidGetRequest { + return ApiV3ServicePlansGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServicePlan +func (a *DefaultAPIService) V3ServicePlansGuidGetExecute(r ApiV3ServicePlansGuidGetRequest) (*ServicePlan, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlan + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + servicePlanUpdate *ServicePlanUpdate +} + +func (r ApiV3ServicePlansGuidPatchRequest) ServicePlanUpdate(servicePlanUpdate ServicePlanUpdate) ApiV3ServicePlansGuidPatchRequest { + r.servicePlanUpdate = &servicePlanUpdate + return r +} + +func (r ApiV3ServicePlansGuidPatchRequest) Execute() (*ServicePlan, *http.Response, error) { + return r.ApiService.V3ServicePlansGuidPatchExecute(r) +} + +/* +V3ServicePlansGuidPatch Update a service plan + +Updates a service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidPatch(ctx context.Context, guid string) ApiV3ServicePlansGuidPatchRequest { + return ApiV3ServicePlansGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServicePlan +func (a *DefaultAPIService) V3ServicePlansGuidPatchExecute(r ApiV3ServicePlansGuidPatchRequest) (*ServicePlan, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlan + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.servicePlanUpdate == nil { + return localVarReturnValue, nil, reportError("servicePlanUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.servicePlanUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidVisibilityGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServicePlansGuidVisibilityGetRequest) Execute() (*ServicePlanVisibility, *http.Response, error) { + return r.ApiService.V3ServicePlansGuidVisibilityGetExecute(r) +} + +/* +V3ServicePlansGuidVisibilityGet Get a service plan visibility + +Retrieves the service plan visibility for a given plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityGetRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityGet(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityGetRequest { + return ApiV3ServicePlansGuidVisibilityGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServicePlanVisibility +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityGetExecute(r ApiV3ServicePlansGuidVisibilityGetRequest) (*ServicePlanVisibility, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlanVisibility + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidVisibilityGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}/visibility" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + organizationGuid string +} + +func (r ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServicePlansGuidVisibilityOrganizationGuidDeleteExecute(r) +} + +/* +V3ServicePlansGuidVisibilityOrganizationGuidDelete Remove organization from a service plan visibility + +Removes an organization from a service plan visibility list of organizations. Defined only for service plans which are organization-restricted. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @param organizationGuid The organization GUID + @return ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityOrganizationGuidDelete(ctx context.Context, guid string, organizationGuid string) ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest { + return ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + organizationGuid: organizationGuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityOrganizationGuidDeleteExecute(r ApiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidVisibilityOrganizationGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}/visibility/{organization_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"organization_guid"+"}", url.PathEscape(parameterValueToString(r.organizationGuid, "organizationGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidVisibilityPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + servicePlanVisibilityUpdate *ServicePlanVisibilityUpdate +} + +func (r ApiV3ServicePlansGuidVisibilityPatchRequest) ServicePlanVisibilityUpdate(servicePlanVisibilityUpdate ServicePlanVisibilityUpdate) ApiV3ServicePlansGuidVisibilityPatchRequest { + r.servicePlanVisibilityUpdate = &servicePlanVisibilityUpdate + return r +} + +func (r ApiV3ServicePlansGuidVisibilityPatchRequest) Execute() (*ServicePlanVisibility, *http.Response, error) { + return r.ApiService.V3ServicePlansGuidVisibilityPatchExecute(r) +} + +/* +V3ServicePlansGuidVisibilityPatch Update a service plan visibility + +Updates a service plan visibility. Replaces the existing list of organizations when the service plan is organization visible. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityPatchRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityPatch(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityPatchRequest { + return ApiV3ServicePlansGuidVisibilityPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServicePlanVisibility +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityPatchExecute(r ApiV3ServicePlansGuidVisibilityPatchRequest) (*ServicePlanVisibility, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlanVisibility + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidVisibilityPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}/visibility" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.servicePlanVisibilityUpdate == nil { + return localVarReturnValue, nil, reportError("servicePlanVisibilityUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.servicePlanVisibilityUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansGuidVisibilityPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + servicePlanVisibilityApply *ServicePlanVisibilityApply +} + +func (r ApiV3ServicePlansGuidVisibilityPostRequest) ServicePlanVisibilityApply(servicePlanVisibilityApply ServicePlanVisibilityApply) ApiV3ServicePlansGuidVisibilityPostRequest { + r.servicePlanVisibilityApply = &servicePlanVisibilityApply + return r +} + +func (r ApiV3ServicePlansGuidVisibilityPostRequest) Execute() (*ServicePlanVisibility, *http.Response, error) { + return r.ApiService.V3ServicePlansGuidVisibilityPostExecute(r) +} + +/* +V3ServicePlansGuidVisibilityPost Apply a service plan visibility + +Applies a service plan visibility. Appends to the existing list of organizations when the service plan is organization visible. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid The service plan GUID + @return ApiV3ServicePlansGuidVisibilityPostRequest +*/ +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityPost(ctx context.Context, guid string) ApiV3ServicePlansGuidVisibilityPostRequest { + return ApiV3ServicePlansGuidVisibilityPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServicePlanVisibility +func (a *DefaultAPIService) V3ServicePlansGuidVisibilityPostExecute(r ApiV3ServicePlansGuidVisibilityPostRequest) (*ServicePlanVisibility, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlanVisibility + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansGuidVisibilityPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans/{guid}/visibility" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.servicePlanVisibilityApply == nil { + return localVarReturnValue, nil, reportError("servicePlanVisibilityApply is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.servicePlanVisibilityApply + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServicePlansPostRequest struct { + ctx context.Context + ApiService DefaultAPI + servicePlanCreate *ServicePlanCreate +} + +func (r ApiV3ServicePlansPostRequest) ServicePlanCreate(servicePlanCreate ServicePlanCreate) ApiV3ServicePlansPostRequest { + r.servicePlanCreate = &servicePlanCreate + return r +} + +func (r ApiV3ServicePlansPostRequest) Execute() (*ServicePlan, *http.Response, error) { + return r.ApiService.V3ServicePlansPostExecute(r) +} + +/* +V3ServicePlansPost Create a service plan + +Creates a new service plan. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServicePlansPostRequest +*/ +func (a *DefaultAPIService) V3ServicePlansPost(ctx context.Context) ApiV3ServicePlansPostRequest { + return ApiV3ServicePlansPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServicePlan +func (a *DefaultAPIService) V3ServicePlansPostExecute(r ApiV3ServicePlansPostRequest) (*ServicePlan, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServicePlan + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServicePlansPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_plans" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.servicePlanCreate == nil { + return localVarReturnValue, nil, reportError("servicePlanCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.servicePlanCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + routeGuids *[]string + serviceInstanceGuids *[]string + serviceInstanceNames *[]string + labelSelector *string + guids *[]string + createdAts *string + updatedAts *string + include *[]string + page *int32 + perPage *int32 + orderBy *string +} + +func (r ApiV3ServiceRouteBindingsGetRequest) RouteGuids(routeGuids []string) ApiV3ServiceRouteBindingsGetRequest { + r.routeGuids = &routeGuids + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) ServiceInstanceGuids(serviceInstanceGuids []string) ApiV3ServiceRouteBindingsGetRequest { + r.serviceInstanceGuids = &serviceInstanceGuids + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) ServiceInstanceNames(serviceInstanceNames []string) ApiV3ServiceRouteBindingsGetRequest { + r.serviceInstanceNames = &serviceInstanceNames + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) LabelSelector(labelSelector string) ApiV3ServiceRouteBindingsGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) Guids(guids []string) ApiV3ServiceRouteBindingsGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) CreatedAts(createdAts string) ApiV3ServiceRouteBindingsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) UpdatedAts(updatedAts string) ApiV3ServiceRouteBindingsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) Include(include []string) ApiV3ServiceRouteBindingsGetRequest { + r.include = &include + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) Page(page int32) ApiV3ServiceRouteBindingsGetRequest { + r.page = &page + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) PerPage(perPage int32) ApiV3ServiceRouteBindingsGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) OrderBy(orderBy string) ApiV3ServiceRouteBindingsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3ServiceRouteBindingsGetRequest) Execute() (*V3ServiceRouteBindingsGet200Response, *http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsGetExecute(r) +} + +/* +V3ServiceRouteBindingsGet List service route bindings + +Retrieves the service route bindings the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceRouteBindingsGetRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsGet(ctx context.Context) ApiV3ServiceRouteBindingsGetRequest { + return ApiV3ServiceRouteBindingsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3ServiceRouteBindingsGet200Response +func (a *DefaultAPIService) V3ServiceRouteBindingsGetExecute(r ApiV3ServiceRouteBindingsGetRequest) (*V3ServiceRouteBindingsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3ServiceRouteBindingsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.routeGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "route_guids", r.routeGuids, "form", "csv") + } + if r.serviceInstanceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_guids", r.serviceInstanceGuids, "form", "csv") + } + if r.serviceInstanceNames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_names", r.serviceInstanceNames, "form", "csv") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "csv") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "csv") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceRouteBindingsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsGuidDeleteExecute(r) +} + +/* +V3ServiceRouteBindingsGuidDelete Delete a service route binding + +Deletes a service route binding. When deleting route bindings originating from user-provided service instances, the delete operation does not require interactions with service brokers, therefore the API will respond synchronously to the delete request. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidDelete(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidDeleteRequest { + return ApiV3ServiceRouteBindingsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidDeleteExecute(r ApiV3ServiceRouteBindingsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + include *[]string +} + +func (r ApiV3ServiceRouteBindingsGuidGetRequest) Include(include []string) ApiV3ServiceRouteBindingsGuidGetRequest { + r.include = &include + return r +} + +func (r ApiV3ServiceRouteBindingsGuidGetRequest) Execute() (*ServiceRouteBinding, *http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsGuidGetExecute(r) +} + +/* +V3ServiceRouteBindingsGuidGet Get a service route binding + +Retrieves the service route binding by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidGet(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidGetRequest { + return ApiV3ServiceRouteBindingsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceRouteBinding +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidGetExecute(r ApiV3ServiceRouteBindingsGuidGetRequest) (*ServiceRouteBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceRouteBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.include != nil { + t := *r.include + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", t, "form", "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsGuidParametersGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceRouteBindingsGuidParametersGetRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsGuidParametersGetExecute(r) +} + +/* +V3ServiceRouteBindingsGuidParametersGet Get parameters for a route binding + +Queries the Service Broker for the parameters associated with this service route binding. This endpoint is not available for User-Provided Service Instances. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidParametersGetRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidParametersGet(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidParametersGetRequest { + return ApiV3ServiceRouteBindingsGuidParametersGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return map[string]string +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidParametersGetExecute(r ApiV3ServiceRouteBindingsGuidParametersGetRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsGuidParametersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings/{guid}/parameters" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3ServiceRouteBindingsGuidPatchRequest *V3ServiceRouteBindingsGuidPatchRequest +} + +func (r ApiV3ServiceRouteBindingsGuidPatchRequest) V3ServiceRouteBindingsGuidPatchRequest(v3ServiceRouteBindingsGuidPatchRequest V3ServiceRouteBindingsGuidPatchRequest) ApiV3ServiceRouteBindingsGuidPatchRequest { + r.v3ServiceRouteBindingsGuidPatchRequest = &v3ServiceRouteBindingsGuidPatchRequest + return r +} + +func (r ApiV3ServiceRouteBindingsGuidPatchRequest) Execute() (*ServiceRouteBinding, *http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsGuidPatchExecute(r) +} + +/* +V3ServiceRouteBindingsGuidPatch Update a service route binding + +Updates a service route binding with labels and annotations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceRouteBindingsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidPatch(ctx context.Context, guid string) ApiV3ServiceRouteBindingsGuidPatchRequest { + return ApiV3ServiceRouteBindingsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceRouteBinding +func (a *DefaultAPIService) V3ServiceRouteBindingsGuidPatchExecute(r ApiV3ServiceRouteBindingsGuidPatchRequest) (*ServiceRouteBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceRouteBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3ServiceRouteBindingsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3ServiceRouteBindingsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceRouteBindingsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceRouteBindingsPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3ServiceRouteBindingsPostRequest *V3ServiceRouteBindingsPostRequest +} + +func (r ApiV3ServiceRouteBindingsPostRequest) V3ServiceRouteBindingsPostRequest(v3ServiceRouteBindingsPostRequest V3ServiceRouteBindingsPostRequest) ApiV3ServiceRouteBindingsPostRequest { + r.v3ServiceRouteBindingsPostRequest = &v3ServiceRouteBindingsPostRequest + return r +} + +func (r ApiV3ServiceRouteBindingsPostRequest) Execute() (*ServiceRouteBinding, *http.Response, error) { + return r.ApiService.V3ServiceRouteBindingsPostExecute(r) +} + +/* +V3ServiceRouteBindingsPost Create a service route binding + +Creates a new route service binding. The service instance and the route must be in the same space. +To bind a route to a user-provided service instance, the service instance must have the route_service_url property set. +To bind a route to a managed service instance, the service offering must be bindable, and the service offering must have route_forwarding set in the requires property. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceRouteBindingsPostRequest +*/ +func (a *DefaultAPIService) V3ServiceRouteBindingsPost(ctx context.Context) ApiV3ServiceRouteBindingsPostRequest { + return ApiV3ServiceRouteBindingsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServiceRouteBinding +func (a *DefaultAPIService) V3ServiceRouteBindingsPostExecute(r ApiV3ServiceRouteBindingsPostRequest) (*ServiceRouteBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceRouteBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceRouteBindingsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_route_bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3ServiceRouteBindingsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3ServiceRouteBindingsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3ServiceRouteBindingsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceUsageEventsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + page *int32 + perPage *int32 + orderBy *string + afterGuid *string + guids *[]string + serviceInstanceTypes *[]string + serviceOfferingGuids *[]string + createdAts *string + updatedAts *string +} + +func (r ApiV3ServiceUsageEventsGetRequest) Page(page int32) ApiV3ServiceUsageEventsGetRequest { + r.page = &page + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) PerPage(perPage int32) ApiV3ServiceUsageEventsGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) OrderBy(orderBy string) ApiV3ServiceUsageEventsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) AfterGuid(afterGuid string) ApiV3ServiceUsageEventsGetRequest { + r.afterGuid = &afterGuid + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) Guids(guids []string) ApiV3ServiceUsageEventsGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) ServiceInstanceTypes(serviceInstanceTypes []string) ApiV3ServiceUsageEventsGetRequest { + r.serviceInstanceTypes = &serviceInstanceTypes + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) ServiceOfferingGuids(serviceOfferingGuids []string) ApiV3ServiceUsageEventsGetRequest { + r.serviceOfferingGuids = &serviceOfferingGuids + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) CreatedAts(createdAts string) ApiV3ServiceUsageEventsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) UpdatedAts(updatedAts string) ApiV3ServiceUsageEventsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3ServiceUsageEventsGetRequest) Execute() (*V3ServiceUsageEventsGet200Response, *http.Response, error) { + return r.ApiService.V3ServiceUsageEventsGetExecute(r) +} + +/* +V3ServiceUsageEventsGet List service usage events + +Retrieve all service usage events the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceUsageEventsGetRequest +*/ +func (a *DefaultAPIService) V3ServiceUsageEventsGet(ctx context.Context) ApiV3ServiceUsageEventsGetRequest { + return ApiV3ServiceUsageEventsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3ServiceUsageEventsGet200Response +func (a *DefaultAPIService) V3ServiceUsageEventsGetExecute(r ApiV3ServiceUsageEventsGetRequest) (*V3ServiceUsageEventsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3ServiceUsageEventsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceUsageEventsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_usage_events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.afterGuid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after_guid", r.afterGuid, "form", "") + } + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "csv") + } + if r.serviceInstanceTypes != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_instance_types", r.serviceInstanceTypes, "form", "csv") + } + if r.serviceOfferingGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_offering_guids", r.serviceOfferingGuids, "form", "csv") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceUsageEventsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3ServiceUsageEventsGuidGetRequest) Execute() (*ServiceUsageEvent, *http.Response, error) { + return r.ApiService.V3ServiceUsageEventsGuidGetExecute(r) +} + +/* +V3ServiceUsageEventsGuidGet Get a service usage event + +Retrieve a service usage event by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3ServiceUsageEventsGuidGetRequest +*/ +func (a *DefaultAPIService) V3ServiceUsageEventsGuidGet(ctx context.Context, guid string) ApiV3ServiceUsageEventsGuidGetRequest { + return ApiV3ServiceUsageEventsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return ServiceUsageEvent +func (a *DefaultAPIService) V3ServiceUsageEventsGuidGetExecute(r ApiV3ServiceUsageEventsGuidGetRequest) (*ServiceUsageEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceUsageEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceUsageEventsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_usage_events/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3ServiceUsageEventsPostRequest struct { + ctx context.Context + ApiService DefaultAPI +} + +func (r ApiV3ServiceUsageEventsPostRequest) Execute() (*http.Response, error) { + return r.ApiService.V3ServiceUsageEventsPostExecute(r) +} + +/* +V3ServiceUsageEventsPost Purge and seed service usage events + +Destroys all existing events. Populates new usage events, one for each existing service instance. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3ServiceUsageEventsPostRequest +*/ +func (a *DefaultAPIService) V3ServiceUsageEventsPost(ctx context.Context) ApiV3ServiceUsageEventsPostRequest { + return ApiV3ServiceUsageEventsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3ServiceUsageEventsPostExecute(r ApiV3ServiceUsageEventsPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3ServiceUsageEventsPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/service_usage_events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SidecarsGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SidecarsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3SidecarsGuidDeleteExecute(r) +} + +/* +V3SidecarsGuidDelete Delete a sidecar + +Deletes a sidecar by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3SidecarsGuidDelete(ctx context.Context, guid string) ApiV3SidecarsGuidDeleteRequest { + return ApiV3SidecarsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3SidecarsGuidDeleteExecute(r ApiV3SidecarsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SidecarsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/sidecars/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SidecarsGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SidecarsGuidGetRequest) Execute() (*Sidecar, *http.Response, error) { + return r.ApiService.V3SidecarsGuidGetExecute(r) +} + +/* +V3SidecarsGuidGet Get a sidecar + +Retrieve a sidecar by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidGetRequest +*/ +func (a *DefaultAPIService) V3SidecarsGuidGet(ctx context.Context, guid string) ApiV3SidecarsGuidGetRequest { + return ApiV3SidecarsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Sidecar +func (a *DefaultAPIService) V3SidecarsGuidGetExecute(r ApiV3SidecarsGuidGetRequest) (*Sidecar, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Sidecar + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SidecarsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/sidecars/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SidecarsGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3SidecarsGuidPatchRequest *V3SidecarsGuidPatchRequest +} + +func (r ApiV3SidecarsGuidPatchRequest) V3SidecarsGuidPatchRequest(v3SidecarsGuidPatchRequest V3SidecarsGuidPatchRequest) ApiV3SidecarsGuidPatchRequest { + r.v3SidecarsGuidPatchRequest = &v3SidecarsGuidPatchRequest + return r +} + +func (r ApiV3SidecarsGuidPatchRequest) Execute() (*Sidecar, *http.Response, error) { + return r.ApiService.V3SidecarsGuidPatchExecute(r) +} + +/* +V3SidecarsGuidPatch Update a sidecar + +Updates the attributes of a sidecar. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SidecarsGuidPatchRequest +*/ +func (a *DefaultAPIService) V3SidecarsGuidPatch(ctx context.Context, guid string) ApiV3SidecarsGuidPatchRequest { + return ApiV3SidecarsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Sidecar +func (a *DefaultAPIService) V3SidecarsGuidPatchExecute(r ApiV3SidecarsGuidPatchRequest) (*Sidecar, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Sidecar + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SidecarsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/sidecars/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SidecarsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3SidecarsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SidecarsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *string + names *string + organizationGuids *string + spaceGuids *string + page *int32 + perPage *int32 + orderBy *string + createdAts *string + updatedAts *string +} + +func (r ApiV3SpaceQuotasGetRequest) Guids(guids string) ApiV3SpaceQuotasGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3SpaceQuotasGetRequest) Names(names string) ApiV3SpaceQuotasGetRequest { + r.names = &names + return r +} + +func (r ApiV3SpaceQuotasGetRequest) OrganizationGuids(organizationGuids string) ApiV3SpaceQuotasGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +func (r ApiV3SpaceQuotasGetRequest) SpaceGuids(spaceGuids string) ApiV3SpaceQuotasGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +func (r ApiV3SpaceQuotasGetRequest) Page(page int32) ApiV3SpaceQuotasGetRequest { + r.page = &page + return r +} + +func (r ApiV3SpaceQuotasGetRequest) PerPage(perPage int32) ApiV3SpaceQuotasGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3SpaceQuotasGetRequest) OrderBy(orderBy string) ApiV3SpaceQuotasGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3SpaceQuotasGetRequest) CreatedAts(createdAts string) ApiV3SpaceQuotasGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3SpaceQuotasGetRequest) UpdatedAts(updatedAts string) ApiV3SpaceQuotasGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3SpaceQuotasGetRequest) Execute() (*V3SpaceQuotasGet200Response, *http.Response, error) { + return r.ApiService.V3SpaceQuotasGetExecute(r) +} + +/* +V3SpaceQuotasGet List space quotas + +List all space quota resources that the user has permission to view. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpaceQuotasGetRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasGet(ctx context.Context) ApiV3SpaceQuotasGetRequest { + return ApiV3SpaceQuotasGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3SpaceQuotasGet200Response +func (a *DefaultAPIService) V3SpaceQuotasGetExecute(r ApiV3SpaceQuotasGetRequest) (*V3SpaceQuotasGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3SpaceQuotasGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpaceQuotasGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3SpaceQuotasGuidDeleteExecute(r) +} + +/* +V3SpaceQuotasGuidDelete Delete a space quota + +Delete a space quota by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasGuidDelete(ctx context.Context, guid string) ApiV3SpaceQuotasGuidDeleteRequest { + return ApiV3SpaceQuotasGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3SpaceQuotasGuidDeleteExecute(r ApiV3SpaceQuotasGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpaceQuotasGuidGetRequest) Execute() (*SpaceQuota, *http.Response, error) { + return r.ApiService.V3SpaceQuotasGuidGetExecute(r) +} + +/* +V3SpaceQuotasGuidGet Get a space quota + +Retrieve a space quota by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidGetRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasGuidGet(ctx context.Context, guid string) ApiV3SpaceQuotasGuidGetRequest { + return ApiV3SpaceQuotasGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return SpaceQuota +func (a *DefaultAPIService) V3SpaceQuotasGuidGetExecute(r ApiV3SpaceQuotasGuidGetRequest) (*SpaceQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SpaceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3SpaceQuotasGuidPatchRequest *V3SpaceQuotasGuidPatchRequest +} + +func (r ApiV3SpaceQuotasGuidPatchRequest) V3SpaceQuotasGuidPatchRequest(v3SpaceQuotasGuidPatchRequest V3SpaceQuotasGuidPatchRequest) ApiV3SpaceQuotasGuidPatchRequest { + r.v3SpaceQuotasGuidPatchRequest = &v3SpaceQuotasGuidPatchRequest + return r +} + +func (r ApiV3SpaceQuotasGuidPatchRequest) Execute() (*SpaceQuota, *http.Response, error) { + return r.ApiService.V3SpaceQuotasGuidPatchExecute(r) +} + +/* +V3SpaceQuotasGuidPatch Update a space quota + +Update the specified parameters of a space quota. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpaceQuotasGuidPatchRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasGuidPatch(ctx context.Context, guid string) ApiV3SpaceQuotasGuidPatchRequest { + return ApiV3SpaceQuotasGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return SpaceQuota +func (a *DefaultAPIService) V3SpaceQuotasGuidPatchExecute(r ApiV3SpaceQuotasGuidPatchRequest) (*SpaceQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SpaceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SpaceQuotasGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3SpaceQuotasGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SpaceQuotasGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3SpaceQuotasPostRequest *V3SpaceQuotasPostRequest +} + +func (r ApiV3SpaceQuotasPostRequest) V3SpaceQuotasPostRequest(v3SpaceQuotasPostRequest V3SpaceQuotasPostRequest) ApiV3SpaceQuotasPostRequest { + r.v3SpaceQuotasPostRequest = &v3SpaceQuotasPostRequest + return r +} + +func (r ApiV3SpaceQuotasPostRequest) Execute() (*SpaceQuota, *http.Response, error) { + return r.ApiService.V3SpaceQuotasPostExecute(r) +} + +/* +V3SpaceQuotasPost Create a space quota + +Create a new space quota scoped to a specific organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpaceQuotasPostRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasPost(ctx context.Context) ApiV3SpaceQuotasPostRequest { + return ApiV3SpaceQuotasPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return SpaceQuota +func (a *DefaultAPIService) V3SpaceQuotasPostExecute(r ApiV3SpaceQuotasPostRequest) (*SpaceQuota, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SpaceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SpaceQuotasPostRequest == nil { + return localVarReturnValue, nil, reportError("v3SpaceQuotasPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SpaceQuotasPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + quotaGuid string + v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest +} + +func (r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest) V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest { + r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest = &v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + return r +} + +func (r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest) Execute() (*V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response, *http.Response, error) { + return r.ApiService.V3SpaceQuotasQuotaGuidRelationshipsSpacesPostExecute(r) +} + +/* +V3SpaceQuotasQuotaGuidRelationshipsSpacesPost Apply a space quota to spaces + +Apply a space quota to one or more spaces. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasQuotaGuidRelationshipsSpacesPost(ctx context.Context, quotaGuid string) ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest { + return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest{ + ApiService: a, + ctx: ctx, + quotaGuid: quotaGuid, + } +} + +// Execute executes the request +// @return V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response +func (a *DefaultAPIService) V3SpaceQuotasQuotaGuidRelationshipsSpacesPostExecute(r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest) (*V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasQuotaGuidRelationshipsSpacesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas/{quota_guid}/relationships/spaces" + localVarPath = strings.Replace(localVarPath, "{"+"quota_guid"+"}", url.PathEscape(parameterValueToString(r.quotaGuid, "quotaGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + quotaGuid string + spaceGuid string +} + +func (r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteExecute(r) +} + +/* +V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete Remove a space quota from a space + +Remove a space quota from a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param quotaGuid + @param spaceGuid + @return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete(ctx context.Context, quotaGuid string, spaceGuid string) ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest { + return ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + quotaGuid: quotaGuid, + spaceGuid: spaceGuid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteExecute(r ApiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/space_quotas/{quota_guid}/relationships/spaces/{space_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"quota_guid"+"}", url.PathEscape(parameterValueToString(r.quotaGuid, "quotaGuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"space_guid"+"}", url.PathEscape(parameterValueToString(r.spaceGuid, "spaceGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SpacesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *string + guids *string + organizationGuids *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + include *string + createdAts *string + updatedAts *string +} + +func (r ApiV3SpacesGetRequest) Names(names string) ApiV3SpacesGetRequest { + r.names = &names + return r +} + +func (r ApiV3SpacesGetRequest) Guids(guids string) ApiV3SpacesGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3SpacesGetRequest) OrganizationGuids(organizationGuids string) ApiV3SpacesGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +func (r ApiV3SpacesGetRequest) Page(page int32) ApiV3SpacesGetRequest { + r.page = &page + return r +} + +func (r ApiV3SpacesGetRequest) PerPage(perPage int32) ApiV3SpacesGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3SpacesGetRequest) OrderBy(orderBy string) ApiV3SpacesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3SpacesGetRequest) LabelSelector(labelSelector string) ApiV3SpacesGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3SpacesGetRequest) Include(include string) ApiV3SpacesGetRequest { + r.include = &include + return r +} + +func (r ApiV3SpacesGetRequest) CreatedAts(createdAts string) ApiV3SpacesGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3SpacesGetRequest) UpdatedAts(updatedAts string) ApiV3SpacesGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3SpacesGetRequest) Execute() (*V3SpacesGet200Response, *http.Response, error) { + return r.ApiService.V3SpacesGetExecute(r) +} + +/* +V3SpacesGet List spaces + +Retrieve all spaces the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpacesGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGet(ctx context.Context) ApiV3SpacesGetRequest { + return ApiV3SpacesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3SpacesGet200Response +func (a *DefaultAPIService) V3SpacesGetExecute(r ApiV3SpacesGetRequest) (*V3SpacesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3SpacesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpacesGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3SpacesGuidDeleteExecute(r) +} + +/* +V3SpacesGuidDelete Delete a space + +Delete a space by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidDelete(ctx context.Context, guid string) ApiV3SpacesGuidDeleteRequest { + return ApiV3SpacesGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3SpacesGuidDeleteExecute(r ApiV3SpacesGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidFeaturesGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpacesGuidFeaturesGetRequest) Execute() (*V3SpacesGuidFeaturesGet200Response, *http.Response, error) { + return r.ApiService.V3SpacesGuidFeaturesGetExecute(r) +} + +/* +V3SpacesGuidFeaturesGet List space features + +Retrieve the list of features for the specified space. Currently, the only feature on spaces is the SSH feature. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidFeaturesGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidFeaturesGet(ctx context.Context, guid string) ApiV3SpacesGuidFeaturesGetRequest { + return ApiV3SpacesGuidFeaturesGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3SpacesGuidFeaturesGet200Response +func (a *DefaultAPIService) V3SpacesGuidFeaturesGetExecute(r ApiV3SpacesGuidFeaturesGetRequest) (*V3SpacesGuidFeaturesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3SpacesGuidFeaturesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidFeaturesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/features" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidFeaturesNameGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + name string +} + +func (r ApiV3SpacesGuidFeaturesNameGetRequest) Execute() (*SpaceFeature, *http.Response, error) { + return r.ApiService.V3SpacesGuidFeaturesNameGetExecute(r) +} + +/* +V3SpacesGuidFeaturesNameGet Get a space feature + +Retrieve a space feature by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param name + @return ApiV3SpacesGuidFeaturesNameGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidFeaturesNameGet(ctx context.Context, guid string, name string) ApiV3SpacesGuidFeaturesNameGetRequest { + return ApiV3SpacesGuidFeaturesNameGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + name: name, + } +} + +// Execute executes the request +// @return SpaceFeature +func (a *DefaultAPIService) V3SpacesGuidFeaturesNameGetExecute(r ApiV3SpacesGuidFeaturesNameGetRequest) (*SpaceFeature, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SpaceFeature + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidFeaturesNameGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/features/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidFeaturesPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + name string + v3SpacesGuidFeaturesPatchRequest *V3SpacesGuidFeaturesPatchRequest +} + +func (r ApiV3SpacesGuidFeaturesPatchRequest) V3SpacesGuidFeaturesPatchRequest(v3SpacesGuidFeaturesPatchRequest V3SpacesGuidFeaturesPatchRequest) ApiV3SpacesGuidFeaturesPatchRequest { + r.v3SpacesGuidFeaturesPatchRequest = &v3SpacesGuidFeaturesPatchRequest + return r +} + +func (r ApiV3SpacesGuidFeaturesPatchRequest) Execute() (*SpaceFeature, *http.Response, error) { + return r.ApiService.V3SpacesGuidFeaturesPatchExecute(r) +} + +/* +V3SpacesGuidFeaturesPatch Update space features + +Update a space feature. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param name + @return ApiV3SpacesGuidFeaturesPatchRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidFeaturesPatch(ctx context.Context, guid string, name string) ApiV3SpacesGuidFeaturesPatchRequest { + return ApiV3SpacesGuidFeaturesPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + name: name, + } +} + +// Execute executes the request +// @return SpaceFeature +func (a *DefaultAPIService) V3SpacesGuidFeaturesPatchExecute(r ApiV3SpacesGuidFeaturesPatchRequest) (*SpaceFeature, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SpaceFeature + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidFeaturesPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/features" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SpacesGuidFeaturesPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3SpacesGuidFeaturesPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SpacesGuidFeaturesPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpacesGuidGetRequest) Execute() (*Space, *http.Response, error) { + return r.ApiService.V3SpacesGuidGetExecute(r) +} + +/* +V3SpacesGuidGet Get a space + +Retrieve a space by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidGet(ctx context.Context, guid string) ApiV3SpacesGuidGetRequest { + return ApiV3SpacesGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Space +func (a *DefaultAPIService) V3SpacesGuidGetExecute(r ApiV3SpacesGuidGetRequest) (*Space, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Space + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3SpacesGuidPatchRequest *V3SpacesGuidPatchRequest +} + +func (r ApiV3SpacesGuidPatchRequest) V3SpacesGuidPatchRequest(v3SpacesGuidPatchRequest V3SpacesGuidPatchRequest) ApiV3SpacesGuidPatchRequest { + r.v3SpacesGuidPatchRequest = &v3SpacesGuidPatchRequest + return r +} + +func (r ApiV3SpacesGuidPatchRequest) Execute() (*Space, *http.Response, error) { + return r.ApiService.V3SpacesGuidPatchExecute(r) +} + +/* +V3SpacesGuidPatch Update a space + +Update a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidPatchRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidPatch(ctx context.Context, guid string) ApiV3SpacesGuidPatchRequest { + return ApiV3SpacesGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Space +func (a *DefaultAPIService) V3SpacesGuidPatchExecute(r ApiV3SpacesGuidPatchRequest) (*Space, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Space + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SpacesGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3SpacesGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SpacesGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest) Execute() (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) { + return r.ApiService.V3SpacesGuidRelationshipsIsolationSegmentGetExecute(r) +} + +/* +V3SpacesGuidRelationshipsIsolationSegmentGet Get assigned isolation segment + +Retrieve the isolation segment assigned to the space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidRelationshipsIsolationSegmentGet(ctx context.Context, guid string) ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest { + return ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsPostRequestRelationshipsSpace +func (a *DefaultAPIService) V3SpacesGuidRelationshipsIsolationSegmentGetExecute(r ApiV3SpacesGuidRelationshipsIsolationSegmentGetRequest) (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsPostRequestRelationshipsSpace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidRelationshipsIsolationSegmentGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/relationships/isolation_segment" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3AppsPostRequestRelationshipsSpace *V3AppsPostRequestRelationshipsSpace +} + +func (r ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest) V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace V3AppsPostRequestRelationshipsSpace) ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest { + r.v3AppsPostRequestRelationshipsSpace = &v3AppsPostRequestRelationshipsSpace + return r +} + +func (r ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest) Execute() (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) { + return r.ApiService.V3SpacesGuidRelationshipsIsolationSegmentPatchExecute(r) +} + +/* +V3SpacesGuidRelationshipsIsolationSegmentPatch Manage isolation segment + +Assign or unassign an isolation segment to a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidRelationshipsIsolationSegmentPatch(ctx context.Context, guid string) ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest { + return ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3AppsPostRequestRelationshipsSpace +func (a *DefaultAPIService) V3SpacesGuidRelationshipsIsolationSegmentPatchExecute(r ApiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest) (*V3AppsPostRequestRelationshipsSpace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3AppsPostRequestRelationshipsSpace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidRelationshipsIsolationSegmentPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/relationships/isolation_segment" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3AppsPostRequestRelationshipsSpace == nil { + return localVarReturnValue, nil, reportError("v3AppsPostRequestRelationshipsSpace is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3AppsPostRequestRelationshipsSpace + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesGuidUsersGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + guids *string + usernames *string + partialUsernames *string + origins *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3SpacesGuidUsersGetRequest) Guids(guids string) ApiV3SpacesGuidUsersGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) Usernames(usernames string) ApiV3SpacesGuidUsersGetRequest { + r.usernames = &usernames + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) PartialUsernames(partialUsernames string) ApiV3SpacesGuidUsersGetRequest { + r.partialUsernames = &partialUsernames + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) Origins(origins string) ApiV3SpacesGuidUsersGetRequest { + r.origins = &origins + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) Page(page int32) ApiV3SpacesGuidUsersGetRequest { + r.page = &page + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) PerPage(perPage int32) ApiV3SpacesGuidUsersGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) OrderBy(orderBy string) ApiV3SpacesGuidUsersGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) LabelSelector(labelSelector string) ApiV3SpacesGuidUsersGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) CreatedAts(createdAts string) ApiV3SpacesGuidUsersGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) UpdatedAts(updatedAts string) ApiV3SpacesGuidUsersGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3SpacesGuidUsersGetRequest) Execute() (*V3SpacesGuidUsersGet200Response, *http.Response, error) { + return r.ApiService.V3SpacesGuidUsersGetExecute(r) +} + +/* +V3SpacesGuidUsersGet List users for a space + +Retrieve all users with a role in the specified space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3SpacesGuidUsersGetRequest +*/ +func (a *DefaultAPIService) V3SpacesGuidUsersGet(ctx context.Context, guid string) ApiV3SpacesGuidUsersGetRequest { + return ApiV3SpacesGuidUsersGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3SpacesGuidUsersGet200Response +func (a *DefaultAPIService) V3SpacesGuidUsersGetExecute(r ApiV3SpacesGuidUsersGetRequest) (*V3SpacesGuidUsersGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3SpacesGuidUsersGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesGuidUsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces/{guid}/users" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.usernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usernames", r.usernames, "form", "") + } + if r.partialUsernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "partial_usernames", r.partialUsernames, "form", "") + } + if r.origins != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "origins", r.origins, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3SpacesPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3SpacesPostRequest *V3SpacesPostRequest +} + +func (r ApiV3SpacesPostRequest) V3SpacesPostRequest(v3SpacesPostRequest V3SpacesPostRequest) ApiV3SpacesPostRequest { + r.v3SpacesPostRequest = &v3SpacesPostRequest + return r +} + +func (r ApiV3SpacesPostRequest) Execute() (*Space, *http.Response, error) { + return r.ApiService.V3SpacesPostExecute(r) +} + +/* +V3SpacesPost Create a space + +Create a space. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3SpacesPostRequest +*/ +func (a *DefaultAPIService) V3SpacesPost(ctx context.Context) ApiV3SpacesPostRequest { + return ApiV3SpacesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Space +func (a *DefaultAPIService) V3SpacesPostExecute(r ApiV3SpacesPostRequest) (*Space, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Space + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3SpacesPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/spaces" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3SpacesPostRequest == nil { + return localVarReturnValue, nil, reportError("v3SpacesPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3SpacesPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3StacksGetRequest struct { + ctx context.Context + ApiService DefaultAPI + names *string + default_ *bool + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3StacksGetRequest) Names(names string) ApiV3StacksGetRequest { + r.names = &names + return r +} + +func (r ApiV3StacksGetRequest) Default_(default_ bool) ApiV3StacksGetRequest { + r.default_ = &default_ + return r +} + +func (r ApiV3StacksGetRequest) Page(page int32) ApiV3StacksGetRequest { + r.page = &page + return r +} + +func (r ApiV3StacksGetRequest) PerPage(perPage int32) ApiV3StacksGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3StacksGetRequest) OrderBy(orderBy string) ApiV3StacksGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3StacksGetRequest) LabelSelector(labelSelector string) ApiV3StacksGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3StacksGetRequest) CreatedAts(createdAts string) ApiV3StacksGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3StacksGetRequest) UpdatedAts(updatedAts string) ApiV3StacksGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3StacksGetRequest) Execute() (*V3StacksGet200Response, *http.Response, error) { + return r.ApiService.V3StacksGetExecute(r) +} + +/* +V3StacksGet List all stacks + +Retrieve all stacks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3StacksGetRequest +*/ +func (a *DefaultAPIService) V3StacksGet(ctx context.Context) ApiV3StacksGetRequest { + return ApiV3StacksGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3StacksGet200Response +func (a *DefaultAPIService) V3StacksGetExecute(r ApiV3StacksGetRequest) (*V3StacksGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3StacksGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.default_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "default", r.default_, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } else { + var defaultValue int32 = 50 + r.perPage = &defaultValue + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3StacksGuidAppsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3StacksGuidAppsGetRequest) Page(page int32) ApiV3StacksGuidAppsGetRequest { + r.page = &page + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) PerPage(perPage int32) ApiV3StacksGuidAppsGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) OrderBy(orderBy string) ApiV3StacksGuidAppsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) LabelSelector(labelSelector string) ApiV3StacksGuidAppsGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) CreatedAts(createdAts string) ApiV3StacksGuidAppsGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) UpdatedAts(updatedAts string) ApiV3StacksGuidAppsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3StacksGuidAppsGetRequest) Execute() (*V3StacksGuidAppsGet200Response, *http.Response, error) { + return r.ApiService.V3StacksGuidAppsGetExecute(r) +} + +/* +V3StacksGuidAppsGet List apps on a stack + +Retrieve all apps using a given stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidAppsGetRequest +*/ +func (a *DefaultAPIService) V3StacksGuidAppsGet(ctx context.Context, guid string) ApiV3StacksGuidAppsGetRequest { + return ApiV3StacksGuidAppsGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3StacksGuidAppsGet200Response +func (a *DefaultAPIService) V3StacksGuidAppsGetExecute(r ApiV3StacksGuidAppsGetRequest) (*V3StacksGuidAppsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3StacksGuidAppsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksGuidAppsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks/{guid}/apps" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } else { + var defaultValue int32 = 50 + r.perPage = &defaultValue + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3StacksGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3StacksGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3StacksGuidDeleteExecute(r) +} + +/* +V3StacksGuidDelete Delete a stack + +Delete a stack by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3StacksGuidDelete(ctx context.Context, guid string) ApiV3StacksGuidDeleteRequest { + return ApiV3StacksGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3StacksGuidDeleteExecute(r ApiV3StacksGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3StacksGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3StacksGuidGetRequest) Execute() (*Stack, *http.Response, error) { + return r.ApiService.V3StacksGuidGetExecute(r) +} + +/* +V3StacksGuidGet Get a stack by GUID + +Retrieve a stack by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidGetRequest +*/ +func (a *DefaultAPIService) V3StacksGuidGet(ctx context.Context, guid string) ApiV3StacksGuidGetRequest { + return ApiV3StacksGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Stack +func (a *DefaultAPIService) V3StacksGuidGetExecute(r ApiV3StacksGuidGetRequest) (*Stack, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stack + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3StacksGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3RevisionsGuidPatchRequest *V3RevisionsGuidPatchRequest +} + +func (r ApiV3StacksGuidPatchRequest) V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest V3RevisionsGuidPatchRequest) ApiV3StacksGuidPatchRequest { + r.v3RevisionsGuidPatchRequest = &v3RevisionsGuidPatchRequest + return r +} + +func (r ApiV3StacksGuidPatchRequest) Execute() (*Stack, *http.Response, error) { + return r.ApiService.V3StacksGuidPatchExecute(r) +} + +/* +V3StacksGuidPatch Update a stack + +Update the specified parameters of a stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3StacksGuidPatchRequest +*/ +func (a *DefaultAPIService) V3StacksGuidPatch(ctx context.Context, guid string) ApiV3StacksGuidPatchRequest { + return ApiV3StacksGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Stack +func (a *DefaultAPIService) V3StacksGuidPatchExecute(r ApiV3StacksGuidPatchRequest) (*Stack, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stack + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3RevisionsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3RevisionsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3RevisionsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3StacksPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3StacksPostRequest *V3StacksPostRequest +} + +func (r ApiV3StacksPostRequest) V3StacksPostRequest(v3StacksPostRequest V3StacksPostRequest) ApiV3StacksPostRequest { + r.v3StacksPostRequest = &v3StacksPostRequest + return r +} + +func (r ApiV3StacksPostRequest) Execute() (*Stack, *http.Response, error) { + return r.ApiService.V3StacksPostExecute(r) +} + +/* +V3StacksPost Create a stack + +Create a new stack. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3StacksPostRequest +*/ +func (a *DefaultAPIService) V3StacksPost(ctx context.Context) ApiV3StacksPostRequest { + return ApiV3StacksPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Stack +func (a *DefaultAPIService) V3StacksPostExecute(r ApiV3StacksPostRequest) (*Stack, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Stack + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3StacksPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/stacks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3StacksPostRequest == nil { + return localVarReturnValue, nil, reportError("v3StacksPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3StacksPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3TasksGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *string + names *string + states *string + appGuids *string + spaceGuids *string + organizationGuids *string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +func (r ApiV3TasksGetRequest) Guids(guids string) ApiV3TasksGetRequest { + r.guids = &guids + return r +} + +func (r ApiV3TasksGetRequest) Names(names string) ApiV3TasksGetRequest { + r.names = &names + return r +} + +func (r ApiV3TasksGetRequest) States(states string) ApiV3TasksGetRequest { + r.states = &states + return r +} + +func (r ApiV3TasksGetRequest) AppGuids(appGuids string) ApiV3TasksGetRequest { + r.appGuids = &appGuids + return r +} + +func (r ApiV3TasksGetRequest) SpaceGuids(spaceGuids string) ApiV3TasksGetRequest { + r.spaceGuids = &spaceGuids + return r +} + +func (r ApiV3TasksGetRequest) OrganizationGuids(organizationGuids string) ApiV3TasksGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +func (r ApiV3TasksGetRequest) Page(page int32) ApiV3TasksGetRequest { + r.page = &page + return r +} + +func (r ApiV3TasksGetRequest) PerPage(perPage int32) ApiV3TasksGetRequest { + r.perPage = &perPage + return r +} + +func (r ApiV3TasksGetRequest) OrderBy(orderBy string) ApiV3TasksGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiV3TasksGetRequest) LabelSelector(labelSelector string) ApiV3TasksGetRequest { + r.labelSelector = &labelSelector + return r +} + +func (r ApiV3TasksGetRequest) CreatedAts(createdAts string) ApiV3TasksGetRequest { + r.createdAts = &createdAts + return r +} + +func (r ApiV3TasksGetRequest) UpdatedAts(updatedAts string) ApiV3TasksGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3TasksGetRequest) Execute() (*V3TasksGet200Response, *http.Response, error) { + return r.ApiService.V3TasksGetExecute(r) +} + +/* +V3TasksGet List all tasks + +Retrieve all tasks the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3TasksGetRequest +*/ +func (a *DefaultAPIService) V3TasksGet(ctx context.Context) ApiV3TasksGetRequest { + return ApiV3TasksGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3TasksGet200Response +func (a *DefaultAPIService) V3TasksGetExecute(r ApiV3TasksGetRequest) (*V3TasksGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3TasksGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3TasksGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "") + } + if r.names != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", r.names, "form", "") + } + if r.states != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "states", r.states, "form", "") + } + if r.appGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_guids", r.appGuids, "form", "") + } + if r.spaceGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "space_guids", r.spaceGuids, "form", "") + } + if r.organizationGuids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", r.organizationGuids, "form", "") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } else { + var defaultValue int32 = 50 + r.perPage = &defaultValue + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3TasksGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3TasksGuidGetRequest) Execute() (*Task, *http.Response, error) { + return r.ApiService.V3TasksGuidGetExecute(r) +} + +/* +V3TasksGuidGet Get a task + +Retrieve a specific task by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidGetRequest +*/ +func (a *DefaultAPIService) V3TasksGuidGet(ctx context.Context, guid string) ApiV3TasksGuidGetRequest { + return ApiV3TasksGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Task +func (a *DefaultAPIService) V3TasksGuidGetExecute(r ApiV3TasksGuidGetRequest) (*Task, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Task + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3TasksGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/tasks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3TasksGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3RevisionsGuidPatchRequest *V3RevisionsGuidPatchRequest +} + +func (r ApiV3TasksGuidPatchRequest) V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest V3RevisionsGuidPatchRequest) ApiV3TasksGuidPatchRequest { + r.v3RevisionsGuidPatchRequest = &v3RevisionsGuidPatchRequest + return r +} + +func (r ApiV3TasksGuidPatchRequest) Execute() (*Task, *http.Response, error) { + return r.ApiService.V3TasksGuidPatchExecute(r) +} + +/* +V3TasksGuidPatch Update a task + +Update the specified parameters of a task. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidPatchRequest +*/ +func (a *DefaultAPIService) V3TasksGuidPatch(ctx context.Context, guid string) ApiV3TasksGuidPatchRequest { + return ApiV3TasksGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Task +func (a *DefaultAPIService) V3TasksGuidPatchExecute(r ApiV3TasksGuidPatchRequest) (*Task, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Task + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3TasksGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/tasks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3RevisionsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3RevisionsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3RevisionsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3TasksGuidPostRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3TasksGuidPostRequest) Execute() (*Task, *http.Response, error) { + return r.ApiService.V3TasksGuidPostExecute(r) +} + +/* +V3TasksGuidPost Cancel a task + +Cancels a running task. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3TasksGuidPostRequest +*/ +func (a *DefaultAPIService) V3TasksGuidPost(ctx context.Context, guid string) ApiV3TasksGuidPostRequest { + return ApiV3TasksGuidPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Task +func (a *DefaultAPIService) V3TasksGuidPostExecute(r ApiV3TasksGuidPostRequest) (*Task, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Task + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3TasksGuidPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/tasks/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3UsersGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guids *[]string + usernames *[]string + partialUsernames *[]string + origins *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of user guids to filter by +func (r ApiV3UsersGetRequest) Guids(guids []string) ApiV3UsersGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of usernames to filter by. Mutually exclusive with partial_usernames +func (r ApiV3UsersGetRequest) Usernames(usernames []string) ApiV3UsersGetRequest { + r.usernames = &usernames + return r +} + +// Comma-delimited list of strings to search by. When using this query parameter, all the users that contain the string provided in their username will be returned. Mutually exclusive with usernames +func (r ApiV3UsersGetRequest) PartialUsernames(partialUsernames []string) ApiV3UsersGetRequest { + r.partialUsernames = &partialUsernames + return r +} + +// Comma-delimited list of user origins (user stores) to filter by, for example, users authenticated by UAA have the origin “uaa”; users authenticated by an LDAP provider have the origin “ldap”; when filtering by origins, usernames must be included +func (r ApiV3UsersGetRequest) Origins(origins []string) ApiV3UsersGetRequest { + r.origins = &origins + return r +} + +// Page to display; valid values are integers >= 1 +func (r ApiV3UsersGetRequest) Page(page int32) ApiV3UsersGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3UsersGetRequest) PerPage(perPage int32) ApiV3UsersGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by. Defaults to ascending; prepend with - to sort descending +func (r ApiV3UsersGetRequest) OrderBy(orderBy string) ApiV3UsersGetRequest { + r.orderBy = &orderBy + return r +} + +// A query string containing a list of label selector requirements +func (r ApiV3UsersGetRequest) LabelSelector(labelSelector string) ApiV3UsersGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3UsersGetRequest) CreatedAts(createdAts string) ApiV3UsersGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators +func (r ApiV3UsersGetRequest) UpdatedAts(updatedAts string) ApiV3UsersGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3UsersGetRequest) Execute() (*V3UsersGet200Response, *http.Response, error) { + return r.ApiService.V3UsersGetExecute(r) +} + +/* +V3UsersGet List users + +Retrieve all users that the current user can see. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3UsersGetRequest +*/ +func (a *DefaultAPIService) V3UsersGet(ctx context.Context) ApiV3UsersGetRequest { + return ApiV3UsersGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3UsersGet200Response +func (a *DefaultAPIService) V3UsersGetExecute(r ApiV3UsersGetRequest) (*V3UsersGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3UsersGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3UsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", r.guids, "form", "csv") + } + if r.usernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usernames", r.usernames, "form", "csv") + } + if r.partialUsernames != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "partial_usernames", r.partialUsernames, "form", "csv") + } + if r.origins != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "origins", r.origins, "form", "csv") + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3UsersGuidDeleteRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3UsersGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3UsersGuidDeleteExecute(r) +} + +/* +V3UsersGuidDelete Delete a user + +Delete a user by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidDeleteRequest +*/ +func (a *DefaultAPIService) V3UsersGuidDelete(ctx context.Context, guid string) ApiV3UsersGuidDeleteRequest { + return ApiV3UsersGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DefaultAPIService) V3UsersGuidDeleteExecute(r ApiV3UsersGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3UsersGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/users/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3UsersGuidGetRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string +} + +func (r ApiV3UsersGuidGetRequest) Execute() (*User, *http.Response, error) { + return r.ApiService.V3UsersGuidGetExecute(r) +} + +/* +V3UsersGuidGet Get a user + +Retrieve a user by GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidGetRequest +*/ +func (a *DefaultAPIService) V3UsersGuidGet(ctx context.Context, guid string) ApiV3UsersGuidGetRequest { + return ApiV3UsersGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return User +func (a *DefaultAPIService) V3UsersGuidGetExecute(r ApiV3UsersGuidGetRequest) (*User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3UsersGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/users/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3UsersGuidPatchRequest struct { + ctx context.Context + ApiService DefaultAPI + guid string + v3UsersGuidPatchRequest *V3UsersGuidPatchRequest +} + +func (r ApiV3UsersGuidPatchRequest) V3UsersGuidPatchRequest(v3UsersGuidPatchRequest V3UsersGuidPatchRequest) ApiV3UsersGuidPatchRequest { + r.v3UsersGuidPatchRequest = &v3UsersGuidPatchRequest + return r +} + +func (r ApiV3UsersGuidPatchRequest) Execute() (*User, *http.Response, error) { + return r.ApiService.V3UsersGuidPatchExecute(r) +} + +/* +V3UsersGuidPatch Update a user + +Update a user’s metadata. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid Unique identifier for the user + @return ApiV3UsersGuidPatchRequest +*/ +func (a *DefaultAPIService) V3UsersGuidPatch(ctx context.Context, guid string) ApiV3UsersGuidPatchRequest { + return ApiV3UsersGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return User +func (a *DefaultAPIService) V3UsersGuidPatchExecute(r ApiV3UsersGuidPatchRequest) (*User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3UsersGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/users/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3UsersGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3UsersGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3UsersGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3UsersPostRequest struct { + ctx context.Context + ApiService DefaultAPI + v3UsersPostRequest *V3UsersPostRequest +} + +func (r ApiV3UsersPostRequest) V3UsersPostRequest(v3UsersPostRequest V3UsersPostRequest) ApiV3UsersPostRequest { + r.v3UsersPostRequest = &v3UsersPostRequest + return r +} + +func (r ApiV3UsersPostRequest) Execute() (*User, *http.Response, error) { + return r.ApiService.V3UsersPostExecute(r) +} + +/* +V3UsersPost Create a user + +Creates a user in the Cloud Controller database. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3UsersPostRequest +*/ +func (a *DefaultAPIService) V3UsersPost(ctx context.Context) ApiV3UsersPostRequest { + return ApiV3UsersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return User +func (a *DefaultAPIService) V3UsersPostExecute(r ApiV3UsersPostRequest) (*User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.V3UsersPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3UsersPostRequest == nil { + return localVarReturnValue, nil, reportError("v3UsersPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3UsersPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_domains.go b/api_domains.go new file mode 100644 index 0000000..9eb053d --- /dev/null +++ b/api_domains.go @@ -0,0 +1,972 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +type DomainsAPI interface { + + /* + V3DomainsGet List domains + + Retrieve all domains the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DomainsGetRequest + */ + V3DomainsGet(ctx context.Context) ApiV3DomainsGetRequest + + // V3DomainsGetExecute executes the request + // @return V3DomainsGet200Response + V3DomainsGetExecute(r ApiV3DomainsGetRequest) (*V3DomainsGet200Response, *http.Response, error) + + /* + V3DomainsGuidDelete Delete a domain + + Delete a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidDeleteRequest + */ + V3DomainsGuidDelete(ctx context.Context, guid string) ApiV3DomainsGuidDeleteRequest + + // V3DomainsGuidDeleteExecute executes the request + V3DomainsGuidDeleteExecute(r ApiV3DomainsGuidDeleteRequest) (*http.Response, error) + + /* + V3DomainsGuidGet Get a domain + + Retrieve a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidGetRequest + */ + V3DomainsGuidGet(ctx context.Context, guid string) ApiV3DomainsGuidGetRequest + + // V3DomainsGuidGetExecute executes the request + // @return Domain + V3DomainsGuidGetExecute(r ApiV3DomainsGuidGetRequest) (*Domain, *http.Response, error) + + /* + V3DomainsGuidPatch Update a domain + + Update a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidPatchRequest + */ + V3DomainsGuidPatch(ctx context.Context, guid string) ApiV3DomainsGuidPatchRequest + + // V3DomainsGuidPatchExecute executes the request + // @return Domain + V3DomainsGuidPatchExecute(r ApiV3DomainsGuidPatchRequest) (*Domain, *http.Response, error) + + /* + V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete Unshare a domain + + Unshare a domain from an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param orgGuid + @return ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest + */ + V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete(ctx context.Context, guid string, orgGuid string) ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest + + // V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteExecute executes the request + V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteExecute(r ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest) (*http.Response, error) + + /* + V3DomainsGuidRelationshipsSharedOrganizationsPost Share a domain + + Share a domain with other organizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest + */ + V3DomainsGuidRelationshipsSharedOrganizationsPost(ctx context.Context, guid string) ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest + + // V3DomainsGuidRelationshipsSharedOrganizationsPostExecute executes the request + // @return V3DomainsGuidRelationshipsSharedOrganizationsPost200Response + V3DomainsGuidRelationshipsSharedOrganizationsPostExecute(r ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) (*V3DomainsGuidRelationshipsSharedOrganizationsPost200Response, *http.Response, error) + + /* + V3DomainsPost Create a domain + + Create a new domain. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DomainsPostRequest + */ + V3DomainsPost(ctx context.Context) ApiV3DomainsPostRequest + + // V3DomainsPostExecute executes the request + // @return Domain + V3DomainsPostExecute(r ApiV3DomainsPostRequest) (*Domain, *http.Response, error) +} + +// DomainsAPIService DomainsAPI service +type DomainsAPIService service + +type ApiV3DomainsGetRequest struct { + ctx context.Context + ApiService DomainsAPI + guids *[]string + names *[]string + organizationGuids *[]string + page *int32 + perPage *int32 + orderBy *string + labelSelector *string + createdAts *string + updatedAts *string +} + +// Comma-delimited list of guids to filter by +func (r ApiV3DomainsGetRequest) Guids(guids []string) ApiV3DomainsGetRequest { + r.guids = &guids + return r +} + +// Comma-delimited list of domain names to filter by +func (r ApiV3DomainsGetRequest) Names(names []string) ApiV3DomainsGetRequest { + r.names = &names + return r +} + +// Comma-delimited list of owning organization guids to filter by +func (r ApiV3DomainsGetRequest) OrganizationGuids(organizationGuids []string) ApiV3DomainsGetRequest { + r.organizationGuids = &organizationGuids + return r +} + +// Page to display +func (r ApiV3DomainsGetRequest) Page(page int32) ApiV3DomainsGetRequest { + r.page = &page + return r +} + +// Number of results per page +func (r ApiV3DomainsGetRequest) PerPage(perPage int32) ApiV3DomainsGetRequest { + r.perPage = &perPage + return r +} + +// Value to sort by +func (r ApiV3DomainsGetRequest) OrderBy(orderBy string) ApiV3DomainsGetRequest { + r.orderBy = &orderBy + return r +} + +// List of label selector requirements +func (r ApiV3DomainsGetRequest) LabelSelector(labelSelector string) ApiV3DomainsGetRequest { + r.labelSelector = &labelSelector + return r +} + +// Timestamp to filter by +func (r ApiV3DomainsGetRequest) CreatedAts(createdAts string) ApiV3DomainsGetRequest { + r.createdAts = &createdAts + return r +} + +// Timestamp to filter by +func (r ApiV3DomainsGetRequest) UpdatedAts(updatedAts string) ApiV3DomainsGetRequest { + r.updatedAts = &updatedAts + return r +} + +func (r ApiV3DomainsGetRequest) Execute() (*V3DomainsGet200Response, *http.Response, error) { + return r.ApiService.V3DomainsGetExecute(r) +} + +/* +V3DomainsGet List domains + +Retrieve all domains the user has access to. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DomainsGetRequest +*/ +func (a *DomainsAPIService) V3DomainsGet(ctx context.Context) ApiV3DomainsGetRequest { + return ApiV3DomainsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V3DomainsGet200Response +func (a *DomainsAPIService) V3DomainsGetExecute(r ApiV3DomainsGetRequest) (*V3DomainsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3DomainsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.guids != nil { + t := *r.guids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "guids", t, "form", "multi") + } + } + if r.names != nil { + t := *r.names + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "names", t, "form", "multi") + } + } + if r.organizationGuids != nil { + t := *r.organizationGuids + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "organization_guids", t, "form", "multi") + } + } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") + } + if r.perPage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") + } + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_by", r.orderBy, "form", "") + } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "form", "") + } + if r.createdAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_ats", r.createdAts, "form", "") + } + if r.updatedAts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_ats", r.updatedAts, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DomainsGuidDeleteRequest struct { + ctx context.Context + ApiService DomainsAPI + guid string +} + +func (r ApiV3DomainsGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DomainsGuidDeleteExecute(r) +} + +/* +V3DomainsGuidDelete Delete a domain + +Delete a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidDeleteRequest +*/ +func (a *DomainsAPIService) V3DomainsGuidDelete(ctx context.Context, guid string) ApiV3DomainsGuidDeleteRequest { + return ApiV3DomainsGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +func (a *DomainsAPIService) V3DomainsGuidDeleteExecute(r ApiV3DomainsGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DomainsGuidGetRequest struct { + ctx context.Context + ApiService DomainsAPI + guid string +} + +func (r ApiV3DomainsGuidGetRequest) Execute() (*Domain, *http.Response, error) { + return r.ApiService.V3DomainsGuidGetExecute(r) +} + +/* +V3DomainsGuidGet Get a domain + +Retrieve a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidGetRequest +*/ +func (a *DomainsAPIService) V3DomainsGuidGet(ctx context.Context, guid string) ApiV3DomainsGuidGetRequest { + return ApiV3DomainsGuidGetRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Domain +func (a *DomainsAPIService) V3DomainsGuidGetExecute(r ApiV3DomainsGuidGetRequest) (*Domain, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Domain + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DomainsGuidPatchRequest struct { + ctx context.Context + ApiService DomainsAPI + guid string + v3DomainsGuidPatchRequest *V3DomainsGuidPatchRequest +} + +func (r ApiV3DomainsGuidPatchRequest) V3DomainsGuidPatchRequest(v3DomainsGuidPatchRequest V3DomainsGuidPatchRequest) ApiV3DomainsGuidPatchRequest { + r.v3DomainsGuidPatchRequest = &v3DomainsGuidPatchRequest + return r +} + +func (r ApiV3DomainsGuidPatchRequest) Execute() (*Domain, *http.Response, error) { + return r.ApiService.V3DomainsGuidPatchExecute(r) +} + +/* +V3DomainsGuidPatch Update a domain + +Update a domain by its guid. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidPatchRequest +*/ +func (a *DomainsAPIService) V3DomainsGuidPatch(ctx context.Context, guid string) ApiV3DomainsGuidPatchRequest { + return ApiV3DomainsGuidPatchRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return Domain +func (a *DomainsAPIService) V3DomainsGuidPatchExecute(r ApiV3DomainsGuidPatchRequest) (*Domain, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Domain + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGuidPatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains/{guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3DomainsGuidPatchRequest == nil { + return localVarReturnValue, nil, reportError("v3DomainsGuidPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3DomainsGuidPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest struct { + ctx context.Context + ApiService DomainsAPI + guid string + orgGuid string +} + +func (r ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteExecute(r) +} + +/* +V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete Unshare a domain + +Unshare a domain from an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @param orgGuid + @return ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest +*/ +func (a *DomainsAPIService) V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete(ctx context.Context, guid string, orgGuid string) ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest { + return ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + orgGuid: orgGuid, + } +} + +// Execute executes the request +func (a *DomainsAPIService) V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteExecute(r ApiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains/{guid}/relationships/shared_organizations/{org_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"org_guid"+"}", url.PathEscape(parameterValueToString(r.orgGuid, "orgGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest struct { + ctx context.Context + ApiService DomainsAPI + guid string + v3DomainsGuidRelationshipsSharedOrganizationsPostRequest *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest +} + +func (r ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) V3DomainsGuidRelationshipsSharedOrganizationsPostRequest(v3DomainsGuidRelationshipsSharedOrganizationsPostRequest V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + r.v3DomainsGuidRelationshipsSharedOrganizationsPostRequest = &v3DomainsGuidRelationshipsSharedOrganizationsPostRequest + return r +} + +func (r ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) Execute() (*V3DomainsGuidRelationshipsSharedOrganizationsPost200Response, *http.Response, error) { + return r.ApiService.V3DomainsGuidRelationshipsSharedOrganizationsPostExecute(r) +} + +/* +V3DomainsGuidRelationshipsSharedOrganizationsPost Share a domain + +Share a domain with other organizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param guid + @return ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest +*/ +func (a *DomainsAPIService) V3DomainsGuidRelationshipsSharedOrganizationsPost(ctx context.Context, guid string) ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + return ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest{ + ApiService: a, + ctx: ctx, + guid: guid, + } +} + +// Execute executes the request +// @return V3DomainsGuidRelationshipsSharedOrganizationsPost200Response +func (a *DomainsAPIService) V3DomainsGuidRelationshipsSharedOrganizationsPostExecute(r ApiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) (*V3DomainsGuidRelationshipsSharedOrganizationsPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsGuidRelationshipsSharedOrganizationsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains/{guid}/relationships/shared_organizations" + localVarPath = strings.Replace(localVarPath, "{"+"guid"+"}", url.PathEscape(parameterValueToString(r.guid, "guid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3DomainsGuidRelationshipsSharedOrganizationsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3DomainsGuidRelationshipsSharedOrganizationsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3DomainsGuidRelationshipsSharedOrganizationsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiV3DomainsPostRequest struct { + ctx context.Context + ApiService DomainsAPI + v3DomainsPostRequest *V3DomainsPostRequest +} + +func (r ApiV3DomainsPostRequest) V3DomainsPostRequest(v3DomainsPostRequest V3DomainsPostRequest) ApiV3DomainsPostRequest { + r.v3DomainsPostRequest = &v3DomainsPostRequest + return r +} + +func (r ApiV3DomainsPostRequest) Execute() (*Domain, *http.Response, error) { + return r.ApiService.V3DomainsPostExecute(r) +} + +/* +V3DomainsPost Create a domain + +Create a new domain. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiV3DomainsPostRequest +*/ +func (a *DomainsAPIService) V3DomainsPost(ctx context.Context) ApiV3DomainsPostRequest { + return ApiV3DomainsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Domain +func (a *DomainsAPIService) V3DomainsPostExecute(r ApiV3DomainsPostRequest) (*Domain, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Domain + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainsAPIService.V3DomainsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v3/domains" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v3DomainsPostRequest == nil { + return localVarReturnValue, nil, reportError("v3DomainsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v3DomainsPostRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/client.go b/client.go new file mode 100644 index 0000000..487f667 --- /dev/null +++ b/client.go @@ -0,0 +1,666 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Cloud Controller API API vv3 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AppUsageEventsAPI AppUsageEventsAPI + + AuditEventsAPI AuditEventsAPI + + DefaultAPI DefaultAPI + + DomainsAPI DomainsAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AppUsageEventsAPI = (*AppUsageEventsAPIService)(&c.common) + c.AuditEventsAPI = (*AuditEventsAPIService)(&c.common) + c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.DomainsAPI = (*DomainsAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/configuration.go b/configuration.go new file mode 100644 index 0000000..20b5456 --- /dev/null +++ b/configuration.go @@ -0,0 +1,218 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/docs/App.md b/docs/App.md new file mode 100644 index 0000000..d43ecf4 --- /dev/null +++ b/docs/App.md @@ -0,0 +1,219 @@ +# App + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **time.Time** | The time with zone when the object was created | +**Guid** | **string** | Unique identifier for the app | +**Lifecycle** | [**AppLifecycle**](AppLifecycle.md) | | +**Links** | [**AppLinks**](AppLinks.md) | | +**Metadata** | [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | +**Name** | **string** | Name of the app | +**Relationships** | [**AppRelationships**](AppRelationships.md) | | +**State** | **string** | Current desired state of the app | +**UpdatedAt** | **time.Time** | The time with zone when the object was last updated | + +## Methods + +### NewApp + +`func NewApp(createdAt time.Time, guid string, lifecycle AppLifecycle, links AppLinks, metadata V3AppsGuidTasksPostRequestMetadata, name string, relationships AppRelationships, state string, updatedAt time.Time, ) *App` + +NewApp instantiates a new App object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppWithDefaults + +`func NewAppWithDefaults() *App` + +NewAppWithDefaults instantiates a new App object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *App) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *App) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *App) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetGuid + +`func (o *App) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *App) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *App) SetGuid(v string)` + +SetGuid sets Guid field to given value. + + +### GetLifecycle + +`func (o *App) GetLifecycle() AppLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *App) GetLifecycleOk() (*AppLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *App) SetLifecycle(v AppLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + + +### GetLinks + +`func (o *App) GetLinks() AppLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *App) GetLinksOk() (*AppLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *App) SetLinks(v AppLinks)` + +SetLinks sets Links field to given value. + + +### GetMetadata + +`func (o *App) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *App) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *App) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + + +### GetName + +`func (o *App) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *App) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *App) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelationships + +`func (o *App) GetRelationships() AppRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *App) GetRelationshipsOk() (*AppRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *App) SetRelationships(v AppRelationships)` + +SetRelationships sets Relationships field to given value. + + +### GetState + +`func (o *App) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *App) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *App) SetState(v string)` + +SetState sets State field to given value. + + +### GetUpdatedAt + +`func (o *App) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *App) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *App) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppLifecycle.md b/docs/AppLifecycle.md new file mode 100644 index 0000000..7ea8601 --- /dev/null +++ b/docs/AppLifecycle.md @@ -0,0 +1,72 @@ +# AppLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**V3AppsGuidPatchRequestLifecycleData**](V3AppsGuidPatchRequestLifecycleData.md) | | +**Type** | **string** | | + +## Methods + +### NewAppLifecycle + +`func NewAppLifecycle(data V3AppsGuidPatchRequestLifecycleData, type_ string, ) *AppLifecycle` + +NewAppLifecycle instantiates a new AppLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppLifecycleWithDefaults + +`func NewAppLifecycleWithDefaults() *AppLifecycle` + +NewAppLifecycleWithDefaults instantiates a new AppLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *AppLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AppLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AppLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *AppLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AppLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AppLifecycle) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppLinks.md b/docs/AppLinks.md new file mode 100644 index 0000000..eac566f --- /dev/null +++ b/docs/AppLinks.md @@ -0,0 +1,368 @@ +# AppLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CurrentDroplet** | Pointer to [**Link**](Link.md) | | [optional] +**DeployedRevisions** | Pointer to [**Link**](Link.md) | | [optional] +**Droplets** | Pointer to [**Link**](Link.md) | | [optional] +**EnvironmentVariables** | Pointer to [**Link**](Link.md) | | [optional] +**Features** | Pointer to [**Link**](Link.md) | | [optional] +**Packages** | Pointer to [**Link**](Link.md) | | [optional] +**Processes** | Pointer to [**Link**](Link.md) | | [optional] +**Revisions** | Pointer to [**Link**](Link.md) | | [optional] +**Self** | Pointer to [**Link**](Link.md) | | [optional] +**Space** | Pointer to [**Link**](Link.md) | | [optional] +**Start** | Pointer to [**LinkWithMethod**](LinkWithMethod.md) | | [optional] +**Stop** | Pointer to [**LinkWithMethod**](LinkWithMethod.md) | | [optional] +**Tasks** | Pointer to [**Link**](Link.md) | | [optional] + +## Methods + +### NewAppLinks + +`func NewAppLinks() *AppLinks` + +NewAppLinks instantiates a new AppLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppLinksWithDefaults + +`func NewAppLinksWithDefaults() *AppLinks` + +NewAppLinksWithDefaults instantiates a new AppLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrentDroplet + +`func (o *AppLinks) GetCurrentDroplet() Link` + +GetCurrentDroplet returns the CurrentDroplet field if non-nil, zero value otherwise. + +### GetCurrentDropletOk + +`func (o *AppLinks) GetCurrentDropletOk() (*Link, bool)` + +GetCurrentDropletOk returns a tuple with the CurrentDroplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentDroplet + +`func (o *AppLinks) SetCurrentDroplet(v Link)` + +SetCurrentDroplet sets CurrentDroplet field to given value. + +### HasCurrentDroplet + +`func (o *AppLinks) HasCurrentDroplet() bool` + +HasCurrentDroplet returns a boolean if a field has been set. + +### GetDeployedRevisions + +`func (o *AppLinks) GetDeployedRevisions() Link` + +GetDeployedRevisions returns the DeployedRevisions field if non-nil, zero value otherwise. + +### GetDeployedRevisionsOk + +`func (o *AppLinks) GetDeployedRevisionsOk() (*Link, bool)` + +GetDeployedRevisionsOk returns a tuple with the DeployedRevisions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployedRevisions + +`func (o *AppLinks) SetDeployedRevisions(v Link)` + +SetDeployedRevisions sets DeployedRevisions field to given value. + +### HasDeployedRevisions + +`func (o *AppLinks) HasDeployedRevisions() bool` + +HasDeployedRevisions returns a boolean if a field has been set. + +### GetDroplets + +`func (o *AppLinks) GetDroplets() Link` + +GetDroplets returns the Droplets field if non-nil, zero value otherwise. + +### GetDropletsOk + +`func (o *AppLinks) GetDropletsOk() (*Link, bool)` + +GetDropletsOk returns a tuple with the Droplets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDroplets + +`func (o *AppLinks) SetDroplets(v Link)` + +SetDroplets sets Droplets field to given value. + +### HasDroplets + +`func (o *AppLinks) HasDroplets() bool` + +HasDroplets returns a boolean if a field has been set. + +### GetEnvironmentVariables + +`func (o *AppLinks) GetEnvironmentVariables() Link` + +GetEnvironmentVariables returns the EnvironmentVariables field if non-nil, zero value otherwise. + +### GetEnvironmentVariablesOk + +`func (o *AppLinks) GetEnvironmentVariablesOk() (*Link, bool)` + +GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentVariables + +`func (o *AppLinks) SetEnvironmentVariables(v Link)` + +SetEnvironmentVariables sets EnvironmentVariables field to given value. + +### HasEnvironmentVariables + +`func (o *AppLinks) HasEnvironmentVariables() bool` + +HasEnvironmentVariables returns a boolean if a field has been set. + +### GetFeatures + +`func (o *AppLinks) GetFeatures() Link` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *AppLinks) GetFeaturesOk() (*Link, bool)` + +GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatures + +`func (o *AppLinks) SetFeatures(v Link)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *AppLinks) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + +### GetPackages + +`func (o *AppLinks) GetPackages() Link` + +GetPackages returns the Packages field if non-nil, zero value otherwise. + +### GetPackagesOk + +`func (o *AppLinks) GetPackagesOk() (*Link, bool)` + +GetPackagesOk returns a tuple with the Packages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackages + +`func (o *AppLinks) SetPackages(v Link)` + +SetPackages sets Packages field to given value. + +### HasPackages + +`func (o *AppLinks) HasPackages() bool` + +HasPackages returns a boolean if a field has been set. + +### GetProcesses + +`func (o *AppLinks) GetProcesses() Link` + +GetProcesses returns the Processes field if non-nil, zero value otherwise. + +### GetProcessesOk + +`func (o *AppLinks) GetProcessesOk() (*Link, bool)` + +GetProcessesOk returns a tuple with the Processes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcesses + +`func (o *AppLinks) SetProcesses(v Link)` + +SetProcesses sets Processes field to given value. + +### HasProcesses + +`func (o *AppLinks) HasProcesses() bool` + +HasProcesses returns a boolean if a field has been set. + +### GetRevisions + +`func (o *AppLinks) GetRevisions() Link` + +GetRevisions returns the Revisions field if non-nil, zero value otherwise. + +### GetRevisionsOk + +`func (o *AppLinks) GetRevisionsOk() (*Link, bool)` + +GetRevisionsOk returns a tuple with the Revisions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevisions + +`func (o *AppLinks) SetRevisions(v Link)` + +SetRevisions sets Revisions field to given value. + +### HasRevisions + +`func (o *AppLinks) HasRevisions() bool` + +HasRevisions returns a boolean if a field has been set. + +### GetSelf + +`func (o *AppLinks) GetSelf() Link` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *AppLinks) GetSelfOk() (*Link, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *AppLinks) SetSelf(v Link)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *AppLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSpace + +`func (o *AppLinks) GetSpace() Link` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *AppLinks) GetSpaceOk() (*Link, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *AppLinks) SetSpace(v Link)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *AppLinks) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetStart + +`func (o *AppLinks) GetStart() LinkWithMethod` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *AppLinks) GetStartOk() (*LinkWithMethod, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *AppLinks) SetStart(v LinkWithMethod)` + +SetStart sets Start field to given value. + +### HasStart + +`func (o *AppLinks) HasStart() bool` + +HasStart returns a boolean if a field has been set. + +### GetStop + +`func (o *AppLinks) GetStop() LinkWithMethod` + +GetStop returns the Stop field if non-nil, zero value otherwise. + +### GetStopOk + +`func (o *AppLinks) GetStopOk() (*LinkWithMethod, bool)` + +GetStopOk returns a tuple with the Stop field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStop + +`func (o *AppLinks) SetStop(v LinkWithMethod)` + +SetStop sets Stop field to given value. + +### HasStop + +`func (o *AppLinks) HasStop() bool` + +HasStop returns a boolean if a field has been set. + +### GetTasks + +`func (o *AppLinks) GetTasks() Link` + +GetTasks returns the Tasks field if non-nil, zero value otherwise. + +### GetTasksOk + +`func (o *AppLinks) GetTasksOk() (*Link, bool)` + +GetTasksOk returns a tuple with the Tasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTasks + +`func (o *AppLinks) SetTasks(v Link)` + +SetTasks sets Tasks field to given value. + +### HasTasks + +`func (o *AppLinks) HasTasks() bool` + +HasTasks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppRelationships.md b/docs/AppRelationships.md new file mode 100644 index 0000000..6b63073 --- /dev/null +++ b/docs/AppRelationships.md @@ -0,0 +1,77 @@ +# AppRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CurrentDroplet** | Pointer to [**V3DropletsPostRequestRelationshipsApp**](V3DropletsPostRequestRelationshipsApp.md) | | [optional] +**Space** | [**V3DropletsPostRequestRelationshipsApp**](V3DropletsPostRequestRelationshipsApp.md) | | + +## Methods + +### NewAppRelationships + +`func NewAppRelationships(space V3DropletsPostRequestRelationshipsApp, ) *AppRelationships` + +NewAppRelationships instantiates a new AppRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppRelationshipsWithDefaults + +`func NewAppRelationshipsWithDefaults() *AppRelationships` + +NewAppRelationshipsWithDefaults instantiates a new AppRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrentDroplet + +`func (o *AppRelationships) GetCurrentDroplet() V3DropletsPostRequestRelationshipsApp` + +GetCurrentDroplet returns the CurrentDroplet field if non-nil, zero value otherwise. + +### GetCurrentDropletOk + +`func (o *AppRelationships) GetCurrentDropletOk() (*V3DropletsPostRequestRelationshipsApp, bool)` + +GetCurrentDropletOk returns a tuple with the CurrentDroplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentDroplet + +`func (o *AppRelationships) SetCurrentDroplet(v V3DropletsPostRequestRelationshipsApp)` + +SetCurrentDroplet sets CurrentDroplet field to given value. + +### HasCurrentDroplet + +`func (o *AppRelationships) HasCurrentDroplet() bool` + +HasCurrentDroplet returns a boolean if a field has been set. + +### GetSpace + +`func (o *AppRelationships) GetSpace() V3DropletsPostRequestRelationshipsApp` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *AppRelationships) GetSpaceOk() (*V3DropletsPostRequestRelationshipsApp, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *AppRelationships) SetSpace(v V3DropletsPostRequestRelationshipsApp)` + +SetSpace sets Space field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEvent.md b/docs/AppUsageEvent.md new file mode 100644 index 0000000..0b03fd2 --- /dev/null +++ b/docs/AppUsageEvent.md @@ -0,0 +1,368 @@ +# AppUsageEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**AppUsageEventApp**](AppUsageEventApp.md) | | [optional] +**Buildpack** | Pointer to [**AppUsageEventBuildpack**](AppUsageEventBuildpack.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | The time with zone when the event occurred | [optional] +**Guid** | Pointer to **string** | Unique identifier for the event | [optional] +**InstanceCount** | Pointer to [**AppUsageEventInstanceCount**](AppUsageEventInstanceCount.md) | | [optional] +**Links** | Pointer to [**AppUsageEventLinks**](AppUsageEventLinks.md) | | [optional] +**MemoryInMbPerInstance** | Pointer to [**AppUsageEventMemoryInMbPerInstance**](AppUsageEventMemoryInMbPerInstance.md) | | [optional] +**Organization** | Pointer to [**AppUsageEventOrganization**](AppUsageEventOrganization.md) | | [optional] +**Process** | Pointer to [**AppUsageEventProcess**](AppUsageEventProcess.md) | | [optional] +**Space** | Pointer to [**AppUsageEventSpace**](AppUsageEventSpace.md) | | [optional] +**State** | Pointer to [**AppUsageEventState**](AppUsageEventState.md) | | [optional] +**Task** | Pointer to [**AppUsageEventTask**](AppUsageEventTask.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | Identical to created_at (events are created, never updated) | [optional] + +## Methods + +### NewAppUsageEvent + +`func NewAppUsageEvent() *AppUsageEvent` + +NewAppUsageEvent instantiates a new AppUsageEvent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventWithDefaults + +`func NewAppUsageEventWithDefaults() *AppUsageEvent` + +NewAppUsageEventWithDefaults instantiates a new AppUsageEvent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *AppUsageEvent) GetApp() AppUsageEventApp` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *AppUsageEvent) GetAppOk() (*AppUsageEventApp, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *AppUsageEvent) SetApp(v AppUsageEventApp)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *AppUsageEvent) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetBuildpack + +`func (o *AppUsageEvent) GetBuildpack() AppUsageEventBuildpack` + +GetBuildpack returns the Buildpack field if non-nil, zero value otherwise. + +### GetBuildpackOk + +`func (o *AppUsageEvent) GetBuildpackOk() (*AppUsageEventBuildpack, bool)` + +GetBuildpackOk returns a tuple with the Buildpack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpack + +`func (o *AppUsageEvent) SetBuildpack(v AppUsageEventBuildpack)` + +SetBuildpack sets Buildpack field to given value. + +### HasBuildpack + +`func (o *AppUsageEvent) HasBuildpack() bool` + +HasBuildpack returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *AppUsageEvent) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AppUsageEvent) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AppUsageEvent) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AppUsageEvent) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *AppUsageEvent) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEvent) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEvent) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEvent) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetInstanceCount + +`func (o *AppUsageEvent) GetInstanceCount() AppUsageEventInstanceCount` + +GetInstanceCount returns the InstanceCount field if non-nil, zero value otherwise. + +### GetInstanceCountOk + +`func (o *AppUsageEvent) GetInstanceCountOk() (*AppUsageEventInstanceCount, bool)` + +GetInstanceCountOk returns a tuple with the InstanceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceCount + +`func (o *AppUsageEvent) SetInstanceCount(v AppUsageEventInstanceCount)` + +SetInstanceCount sets InstanceCount field to given value. + +### HasInstanceCount + +`func (o *AppUsageEvent) HasInstanceCount() bool` + +HasInstanceCount returns a boolean if a field has been set. + +### GetLinks + +`func (o *AppUsageEvent) GetLinks() AppUsageEventLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *AppUsageEvent) GetLinksOk() (*AppUsageEventLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *AppUsageEvent) SetLinks(v AppUsageEventLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *AppUsageEvent) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMemoryInMbPerInstance + +`func (o *AppUsageEvent) GetMemoryInMbPerInstance() AppUsageEventMemoryInMbPerInstance` + +GetMemoryInMbPerInstance returns the MemoryInMbPerInstance field if non-nil, zero value otherwise. + +### GetMemoryInMbPerInstanceOk + +`func (o *AppUsageEvent) GetMemoryInMbPerInstanceOk() (*AppUsageEventMemoryInMbPerInstance, bool)` + +GetMemoryInMbPerInstanceOk returns a tuple with the MemoryInMbPerInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMbPerInstance + +`func (o *AppUsageEvent) SetMemoryInMbPerInstance(v AppUsageEventMemoryInMbPerInstance)` + +SetMemoryInMbPerInstance sets MemoryInMbPerInstance field to given value. + +### HasMemoryInMbPerInstance + +`func (o *AppUsageEvent) HasMemoryInMbPerInstance() bool` + +HasMemoryInMbPerInstance returns a boolean if a field has been set. + +### GetOrganization + +`func (o *AppUsageEvent) GetOrganization() AppUsageEventOrganization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *AppUsageEvent) GetOrganizationOk() (*AppUsageEventOrganization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *AppUsageEvent) SetOrganization(v AppUsageEventOrganization)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *AppUsageEvent) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetProcess + +`func (o *AppUsageEvent) GetProcess() AppUsageEventProcess` + +GetProcess returns the Process field if non-nil, zero value otherwise. + +### GetProcessOk + +`func (o *AppUsageEvent) GetProcessOk() (*AppUsageEventProcess, bool)` + +GetProcessOk returns a tuple with the Process field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcess + +`func (o *AppUsageEvent) SetProcess(v AppUsageEventProcess)` + +SetProcess sets Process field to given value. + +### HasProcess + +`func (o *AppUsageEvent) HasProcess() bool` + +HasProcess returns a boolean if a field has been set. + +### GetSpace + +`func (o *AppUsageEvent) GetSpace() AppUsageEventSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *AppUsageEvent) GetSpaceOk() (*AppUsageEventSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *AppUsageEvent) SetSpace(v AppUsageEventSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *AppUsageEvent) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetState + +`func (o *AppUsageEvent) GetState() AppUsageEventState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *AppUsageEvent) GetStateOk() (*AppUsageEventState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *AppUsageEvent) SetState(v AppUsageEventState)` + +SetState sets State field to given value. + +### HasState + +`func (o *AppUsageEvent) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetTask + +`func (o *AppUsageEvent) GetTask() AppUsageEventTask` + +GetTask returns the Task field if non-nil, zero value otherwise. + +### GetTaskOk + +`func (o *AppUsageEvent) GetTaskOk() (*AppUsageEventTask, bool)` + +GetTaskOk returns a tuple with the Task field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTask + +`func (o *AppUsageEvent) SetTask(v AppUsageEventTask)` + +SetTask sets Task field to given value. + +### HasTask + +`func (o *AppUsageEvent) HasTask() bool` + +HasTask returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AppUsageEvent) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AppUsageEvent) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AppUsageEvent) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AppUsageEvent) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventApp.md b/docs/AppUsageEventApp.md new file mode 100644 index 0000000..61b191b --- /dev/null +++ b/docs/AppUsageEventApp.md @@ -0,0 +1,102 @@ +# AppUsageEventApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the app that this event pertains to, if applicable | [optional] +**Name** | Pointer to **NullableString** | Name of the app that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventApp + +`func NewAppUsageEventApp() *AppUsageEventApp` + +NewAppUsageEventApp instantiates a new AppUsageEventApp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventAppWithDefaults + +`func NewAppUsageEventAppWithDefaults() *AppUsageEventApp` + +NewAppUsageEventAppWithDefaults instantiates a new AppUsageEventApp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventApp) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventApp) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventApp) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventApp) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventApp) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventApp) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetName + +`func (o *AppUsageEventApp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AppUsageEventApp) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AppUsageEventApp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AppUsageEventApp) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *AppUsageEventApp) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *AppUsageEventApp) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventBuildpack.md b/docs/AppUsageEventBuildpack.md new file mode 100644 index 0000000..0fb4605 --- /dev/null +++ b/docs/AppUsageEventBuildpack.md @@ -0,0 +1,102 @@ +# AppUsageEventBuildpack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the buildpack that this event pertains to, if applicable | [optional] +**Name** | Pointer to **NullableString** | Name of the buildpack that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventBuildpack + +`func NewAppUsageEventBuildpack() *AppUsageEventBuildpack` + +NewAppUsageEventBuildpack instantiates a new AppUsageEventBuildpack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventBuildpackWithDefaults + +`func NewAppUsageEventBuildpackWithDefaults() *AppUsageEventBuildpack` + +NewAppUsageEventBuildpackWithDefaults instantiates a new AppUsageEventBuildpack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventBuildpack) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventBuildpack) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventBuildpack) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventBuildpack) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventBuildpack) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventBuildpack) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetName + +`func (o *AppUsageEventBuildpack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AppUsageEventBuildpack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AppUsageEventBuildpack) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AppUsageEventBuildpack) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *AppUsageEventBuildpack) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *AppUsageEventBuildpack) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventInstanceCount.md b/docs/AppUsageEventInstanceCount.md new file mode 100644 index 0000000..e427323 --- /dev/null +++ b/docs/AppUsageEventInstanceCount.md @@ -0,0 +1,102 @@ +# AppUsageEventInstanceCount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Current** | Pointer to **NullableInt32** | Current instance count of the app that this event pertains to, if applicable | [optional] +**Previous** | Pointer to **NullableInt32** | Previous instance count of the app that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventInstanceCount + +`func NewAppUsageEventInstanceCount() *AppUsageEventInstanceCount` + +NewAppUsageEventInstanceCount instantiates a new AppUsageEventInstanceCount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventInstanceCountWithDefaults + +`func NewAppUsageEventInstanceCountWithDefaults() *AppUsageEventInstanceCount` + +NewAppUsageEventInstanceCountWithDefaults instantiates a new AppUsageEventInstanceCount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrent + +`func (o *AppUsageEventInstanceCount) GetCurrent() int32` + +GetCurrent returns the Current field if non-nil, zero value otherwise. + +### GetCurrentOk + +`func (o *AppUsageEventInstanceCount) GetCurrentOk() (*int32, bool)` + +GetCurrentOk returns a tuple with the Current field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrent + +`func (o *AppUsageEventInstanceCount) SetCurrent(v int32)` + +SetCurrent sets Current field to given value. + +### HasCurrent + +`func (o *AppUsageEventInstanceCount) HasCurrent() bool` + +HasCurrent returns a boolean if a field has been set. + +### SetCurrentNil + +`func (o *AppUsageEventInstanceCount) SetCurrentNil(b bool)` + + SetCurrentNil sets the value for Current to be an explicit nil + +### UnsetCurrent +`func (o *AppUsageEventInstanceCount) UnsetCurrent()` + +UnsetCurrent ensures that no value is present for Current, not even an explicit nil +### GetPrevious + +`func (o *AppUsageEventInstanceCount) GetPrevious() int32` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *AppUsageEventInstanceCount) GetPreviousOk() (*int32, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *AppUsageEventInstanceCount) SetPrevious(v int32)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *AppUsageEventInstanceCount) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *AppUsageEventInstanceCount) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *AppUsageEventInstanceCount) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventLinks.md b/docs/AppUsageEventLinks.md new file mode 100644 index 0000000..f0e860b --- /dev/null +++ b/docs/AppUsageEventLinks.md @@ -0,0 +1,56 @@ +# AppUsageEventLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**AppUsageEventLinksSelf**](AppUsageEventLinksSelf.md) | | [optional] + +## Methods + +### NewAppUsageEventLinks + +`func NewAppUsageEventLinks() *AppUsageEventLinks` + +NewAppUsageEventLinks instantiates a new AppUsageEventLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventLinksWithDefaults + +`func NewAppUsageEventLinksWithDefaults() *AppUsageEventLinks` + +NewAppUsageEventLinksWithDefaults instantiates a new AppUsageEventLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *AppUsageEventLinks) GetSelf() AppUsageEventLinksSelf` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *AppUsageEventLinks) GetSelfOk() (*AppUsageEventLinksSelf, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *AppUsageEventLinks) SetSelf(v AppUsageEventLinksSelf)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *AppUsageEventLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventLinksSelf.md b/docs/AppUsageEventLinksSelf.md new file mode 100644 index 0000000..6bb216c --- /dev/null +++ b/docs/AppUsageEventLinksSelf.md @@ -0,0 +1,56 @@ +# AppUsageEventLinksSelf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Link to the app usage event resource | [optional] + +## Methods + +### NewAppUsageEventLinksSelf + +`func NewAppUsageEventLinksSelf() *AppUsageEventLinksSelf` + +NewAppUsageEventLinksSelf instantiates a new AppUsageEventLinksSelf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventLinksSelfWithDefaults + +`func NewAppUsageEventLinksSelfWithDefaults() *AppUsageEventLinksSelf` + +NewAppUsageEventLinksSelfWithDefaults instantiates a new AppUsageEventLinksSelf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *AppUsageEventLinksSelf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AppUsageEventLinksSelf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AppUsageEventLinksSelf) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AppUsageEventLinksSelf) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventList.md b/docs/AppUsageEventList.md new file mode 100644 index 0000000..56e4548 --- /dev/null +++ b/docs/AppUsageEventList.md @@ -0,0 +1,82 @@ +# AppUsageEventList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**AppUsageEventListPagination**](AppUsageEventListPagination.md) | | [optional] +**Resources** | Pointer to [**[]AppUsageEvent**](AppUsageEvent.md) | | [optional] + +## Methods + +### NewAppUsageEventList + +`func NewAppUsageEventList() *AppUsageEventList` + +NewAppUsageEventList instantiates a new AppUsageEventList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventListWithDefaults + +`func NewAppUsageEventListWithDefaults() *AppUsageEventList` + +NewAppUsageEventListWithDefaults instantiates a new AppUsageEventList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *AppUsageEventList) GetPagination() AppUsageEventListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *AppUsageEventList) GetPaginationOk() (*AppUsageEventListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *AppUsageEventList) SetPagination(v AppUsageEventListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *AppUsageEventList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *AppUsageEventList) GetResources() []AppUsageEvent` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *AppUsageEventList) GetResourcesOk() (*[]AppUsageEvent, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *AppUsageEventList) SetResources(v []AppUsageEvent)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *AppUsageEventList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventListPagination.md b/docs/AppUsageEventListPagination.md new file mode 100644 index 0000000..2e6b994 --- /dev/null +++ b/docs/AppUsageEventListPagination.md @@ -0,0 +1,196 @@ +# AppUsageEventListPagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**AppUsageEventListPaginationFirst**](AppUsageEventListPaginationFirst.md) | | [optional] +**Last** | Pointer to [**AppUsageEventListPaginationLast**](AppUsageEventListPaginationLast.md) | | [optional] +**Next** | Pointer to [**AppUsageEventListPaginationNext**](AppUsageEventListPaginationNext.md) | | [optional] +**Previous** | Pointer to **map[string]interface{}** | Link to the previous page, if applicable | [optional] +**TotalPages** | Pointer to **int32** | Total number of pages | [optional] +**TotalResults** | Pointer to **int32** | Total number of results | [optional] + +## Methods + +### NewAppUsageEventListPagination + +`func NewAppUsageEventListPagination() *AppUsageEventListPagination` + +NewAppUsageEventListPagination instantiates a new AppUsageEventListPagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventListPaginationWithDefaults + +`func NewAppUsageEventListPaginationWithDefaults() *AppUsageEventListPagination` + +NewAppUsageEventListPaginationWithDefaults instantiates a new AppUsageEventListPagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *AppUsageEventListPagination) GetFirst() AppUsageEventListPaginationFirst` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *AppUsageEventListPagination) GetFirstOk() (*AppUsageEventListPaginationFirst, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *AppUsageEventListPagination) SetFirst(v AppUsageEventListPaginationFirst)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *AppUsageEventListPagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *AppUsageEventListPagination) GetLast() AppUsageEventListPaginationLast` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *AppUsageEventListPagination) GetLastOk() (*AppUsageEventListPaginationLast, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *AppUsageEventListPagination) SetLast(v AppUsageEventListPaginationLast)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *AppUsageEventListPagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *AppUsageEventListPagination) GetNext() AppUsageEventListPaginationNext` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *AppUsageEventListPagination) GetNextOk() (*AppUsageEventListPaginationNext, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *AppUsageEventListPagination) SetNext(v AppUsageEventListPaginationNext)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *AppUsageEventListPagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *AppUsageEventListPagination) GetPrevious() map[string]interface{}` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *AppUsageEventListPagination) GetPreviousOk() (*map[string]interface{}, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *AppUsageEventListPagination) SetPrevious(v map[string]interface{})` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *AppUsageEventListPagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *AppUsageEventListPagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *AppUsageEventListPagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *AppUsageEventListPagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *AppUsageEventListPagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *AppUsageEventListPagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *AppUsageEventListPagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *AppUsageEventListPagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *AppUsageEventListPagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *AppUsageEventListPagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *AppUsageEventListPagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventListPaginationFirst.md b/docs/AppUsageEventListPaginationFirst.md new file mode 100644 index 0000000..2bed7c0 --- /dev/null +++ b/docs/AppUsageEventListPaginationFirst.md @@ -0,0 +1,56 @@ +# AppUsageEventListPaginationFirst + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Link to the first page | [optional] + +## Methods + +### NewAppUsageEventListPaginationFirst + +`func NewAppUsageEventListPaginationFirst() *AppUsageEventListPaginationFirst` + +NewAppUsageEventListPaginationFirst instantiates a new AppUsageEventListPaginationFirst object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventListPaginationFirstWithDefaults + +`func NewAppUsageEventListPaginationFirstWithDefaults() *AppUsageEventListPaginationFirst` + +NewAppUsageEventListPaginationFirstWithDefaults instantiates a new AppUsageEventListPaginationFirst object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *AppUsageEventListPaginationFirst) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AppUsageEventListPaginationFirst) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AppUsageEventListPaginationFirst) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AppUsageEventListPaginationFirst) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventListPaginationLast.md b/docs/AppUsageEventListPaginationLast.md new file mode 100644 index 0000000..7f4d9b6 --- /dev/null +++ b/docs/AppUsageEventListPaginationLast.md @@ -0,0 +1,56 @@ +# AppUsageEventListPaginationLast + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Link to the last page | [optional] + +## Methods + +### NewAppUsageEventListPaginationLast + +`func NewAppUsageEventListPaginationLast() *AppUsageEventListPaginationLast` + +NewAppUsageEventListPaginationLast instantiates a new AppUsageEventListPaginationLast object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventListPaginationLastWithDefaults + +`func NewAppUsageEventListPaginationLastWithDefaults() *AppUsageEventListPaginationLast` + +NewAppUsageEventListPaginationLastWithDefaults instantiates a new AppUsageEventListPaginationLast object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *AppUsageEventListPaginationLast) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AppUsageEventListPaginationLast) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AppUsageEventListPaginationLast) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AppUsageEventListPaginationLast) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventListPaginationNext.md b/docs/AppUsageEventListPaginationNext.md new file mode 100644 index 0000000..2c22a2a --- /dev/null +++ b/docs/AppUsageEventListPaginationNext.md @@ -0,0 +1,56 @@ +# AppUsageEventListPaginationNext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Link to the next page | [optional] + +## Methods + +### NewAppUsageEventListPaginationNext + +`func NewAppUsageEventListPaginationNext() *AppUsageEventListPaginationNext` + +NewAppUsageEventListPaginationNext instantiates a new AppUsageEventListPaginationNext object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventListPaginationNextWithDefaults + +`func NewAppUsageEventListPaginationNextWithDefaults() *AppUsageEventListPaginationNext` + +NewAppUsageEventListPaginationNextWithDefaults instantiates a new AppUsageEventListPaginationNext object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *AppUsageEventListPaginationNext) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AppUsageEventListPaginationNext) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AppUsageEventListPaginationNext) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AppUsageEventListPaginationNext) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventMemoryInMbPerInstance.md b/docs/AppUsageEventMemoryInMbPerInstance.md new file mode 100644 index 0000000..6d3c0a3 --- /dev/null +++ b/docs/AppUsageEventMemoryInMbPerInstance.md @@ -0,0 +1,102 @@ +# AppUsageEventMemoryInMbPerInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Current** | Pointer to **NullableInt32** | Current memory in MB of the app that this event pertains to, if applicable | [optional] +**Previous** | Pointer to **NullableInt32** | Previous memory in MB of the app that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventMemoryInMbPerInstance + +`func NewAppUsageEventMemoryInMbPerInstance() *AppUsageEventMemoryInMbPerInstance` + +NewAppUsageEventMemoryInMbPerInstance instantiates a new AppUsageEventMemoryInMbPerInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventMemoryInMbPerInstanceWithDefaults + +`func NewAppUsageEventMemoryInMbPerInstanceWithDefaults() *AppUsageEventMemoryInMbPerInstance` + +NewAppUsageEventMemoryInMbPerInstanceWithDefaults instantiates a new AppUsageEventMemoryInMbPerInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrent + +`func (o *AppUsageEventMemoryInMbPerInstance) GetCurrent() int32` + +GetCurrent returns the Current field if non-nil, zero value otherwise. + +### GetCurrentOk + +`func (o *AppUsageEventMemoryInMbPerInstance) GetCurrentOk() (*int32, bool)` + +GetCurrentOk returns a tuple with the Current field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrent + +`func (o *AppUsageEventMemoryInMbPerInstance) SetCurrent(v int32)` + +SetCurrent sets Current field to given value. + +### HasCurrent + +`func (o *AppUsageEventMemoryInMbPerInstance) HasCurrent() bool` + +HasCurrent returns a boolean if a field has been set. + +### SetCurrentNil + +`func (o *AppUsageEventMemoryInMbPerInstance) SetCurrentNil(b bool)` + + SetCurrentNil sets the value for Current to be an explicit nil + +### UnsetCurrent +`func (o *AppUsageEventMemoryInMbPerInstance) UnsetCurrent()` + +UnsetCurrent ensures that no value is present for Current, not even an explicit nil +### GetPrevious + +`func (o *AppUsageEventMemoryInMbPerInstance) GetPrevious() int32` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *AppUsageEventMemoryInMbPerInstance) GetPreviousOk() (*int32, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *AppUsageEventMemoryInMbPerInstance) SetPrevious(v int32)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *AppUsageEventMemoryInMbPerInstance) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *AppUsageEventMemoryInMbPerInstance) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *AppUsageEventMemoryInMbPerInstance) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventOrganization.md b/docs/AppUsageEventOrganization.md new file mode 100644 index 0000000..8b2a5e3 --- /dev/null +++ b/docs/AppUsageEventOrganization.md @@ -0,0 +1,66 @@ +# AppUsageEventOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the org that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventOrganization + +`func NewAppUsageEventOrganization() *AppUsageEventOrganization` + +NewAppUsageEventOrganization instantiates a new AppUsageEventOrganization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventOrganizationWithDefaults + +`func NewAppUsageEventOrganizationWithDefaults() *AppUsageEventOrganization` + +NewAppUsageEventOrganizationWithDefaults instantiates a new AppUsageEventOrganization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventOrganization) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventOrganization) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventOrganization) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventOrganization) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventOrganization) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventOrganization) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventProcess.md b/docs/AppUsageEventProcess.md new file mode 100644 index 0000000..932eb0d --- /dev/null +++ b/docs/AppUsageEventProcess.md @@ -0,0 +1,102 @@ +# AppUsageEventProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the process that this event pertains to, if applicable | [optional] +**Type** | Pointer to **NullableString** | Type of the process that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventProcess + +`func NewAppUsageEventProcess() *AppUsageEventProcess` + +NewAppUsageEventProcess instantiates a new AppUsageEventProcess object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventProcessWithDefaults + +`func NewAppUsageEventProcessWithDefaults() *AppUsageEventProcess` + +NewAppUsageEventProcessWithDefaults instantiates a new AppUsageEventProcess object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventProcess) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventProcess) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventProcess) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventProcess) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventProcess) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventProcess) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetType + +`func (o *AppUsageEventProcess) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AppUsageEventProcess) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AppUsageEventProcess) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AppUsageEventProcess) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *AppUsageEventProcess) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *AppUsageEventProcess) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventSpace.md b/docs/AppUsageEventSpace.md new file mode 100644 index 0000000..030a41b --- /dev/null +++ b/docs/AppUsageEventSpace.md @@ -0,0 +1,102 @@ +# AppUsageEventSpace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the space that this event pertains to, if applicable | [optional] +**Name** | Pointer to **NullableString** | Name of the space that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventSpace + +`func NewAppUsageEventSpace() *AppUsageEventSpace` + +NewAppUsageEventSpace instantiates a new AppUsageEventSpace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventSpaceWithDefaults + +`func NewAppUsageEventSpaceWithDefaults() *AppUsageEventSpace` + +NewAppUsageEventSpaceWithDefaults instantiates a new AppUsageEventSpace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventSpace) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventSpace) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventSpace) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventSpace) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventSpace) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventSpace) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetName + +`func (o *AppUsageEventSpace) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AppUsageEventSpace) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AppUsageEventSpace) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AppUsageEventSpace) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *AppUsageEventSpace) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *AppUsageEventSpace) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventState.md b/docs/AppUsageEventState.md new file mode 100644 index 0000000..e0783ff --- /dev/null +++ b/docs/AppUsageEventState.md @@ -0,0 +1,102 @@ +# AppUsageEventState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Current** | Pointer to **NullableString** | Current state of the app that this event pertains to, if applicable | [optional] +**Previous** | Pointer to **NullableString** | Previous state of the app that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventState + +`func NewAppUsageEventState() *AppUsageEventState` + +NewAppUsageEventState instantiates a new AppUsageEventState object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventStateWithDefaults + +`func NewAppUsageEventStateWithDefaults() *AppUsageEventState` + +NewAppUsageEventStateWithDefaults instantiates a new AppUsageEventState object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrent + +`func (o *AppUsageEventState) GetCurrent() string` + +GetCurrent returns the Current field if non-nil, zero value otherwise. + +### GetCurrentOk + +`func (o *AppUsageEventState) GetCurrentOk() (*string, bool)` + +GetCurrentOk returns a tuple with the Current field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrent + +`func (o *AppUsageEventState) SetCurrent(v string)` + +SetCurrent sets Current field to given value. + +### HasCurrent + +`func (o *AppUsageEventState) HasCurrent() bool` + +HasCurrent returns a boolean if a field has been set. + +### SetCurrentNil + +`func (o *AppUsageEventState) SetCurrentNil(b bool)` + + SetCurrentNil sets the value for Current to be an explicit nil + +### UnsetCurrent +`func (o *AppUsageEventState) UnsetCurrent()` + +UnsetCurrent ensures that no value is present for Current, not even an explicit nil +### GetPrevious + +`func (o *AppUsageEventState) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *AppUsageEventState) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *AppUsageEventState) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *AppUsageEventState) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *AppUsageEventState) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *AppUsageEventState) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventTask.md b/docs/AppUsageEventTask.md new file mode 100644 index 0000000..23d806d --- /dev/null +++ b/docs/AppUsageEventTask.md @@ -0,0 +1,102 @@ +# AppUsageEventTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **NullableString** | Unique identifier of the task that this event pertains to, if applicable | [optional] +**Name** | Pointer to **NullableString** | Name of the task that this event pertains to, if applicable | [optional] + +## Methods + +### NewAppUsageEventTask + +`func NewAppUsageEventTask() *AppUsageEventTask` + +NewAppUsageEventTask instantiates a new AppUsageEventTask object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppUsageEventTaskWithDefaults + +`func NewAppUsageEventTaskWithDefaults() *AppUsageEventTask` + +NewAppUsageEventTaskWithDefaults instantiates a new AppUsageEventTask object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AppUsageEventTask) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AppUsageEventTask) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AppUsageEventTask) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AppUsageEventTask) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *AppUsageEventTask) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *AppUsageEventTask) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetName + +`func (o *AppUsageEventTask) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AppUsageEventTask) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AppUsageEventTask) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AppUsageEventTask) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *AppUsageEventTask) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *AppUsageEventTask) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppUsageEventsAPI.md b/docs/AppUsageEventsAPI.md new file mode 100644 index 0000000..860a393 --- /dev/null +++ b/docs/AppUsageEventsAPI.md @@ -0,0 +1,213 @@ +# \AppUsageEventsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost**](AppUsageEventsAPI.md#V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost) | **Post** /v3/app_usage_events/actions/destructively_purge_all_and_reseed | Purge and seed app usage events +[**V3AppUsageEventsGet**](AppUsageEventsAPI.md#V3AppUsageEventsGet) | **Get** /v3/app_usage_events | List app usage events +[**V3AppUsageEventsGuidGet**](AppUsageEventsAPI.md#V3AppUsageEventsGuidGet) | **Get** /v3/app_usage_events/{guid} | Retrieve an app usage event + + + +## V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost + +> map[string]interface{} V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost(ctx).Execute() + +Purge and seed app usage events + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppUsageEventsAPI.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AppUsageEventsAPI.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPostRequest struct via the builder pattern + + +### Return type + +**map[string]interface{}** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppUsageEventsGet + +> AppUsageEventList V3AppUsageEventsGet(ctx).Page(page).PerPage(perPage).OrderBy(orderBy).AfterGuid(afterGuid).Guids(guids).CreatedAts(createdAts).Execute() + +List app usage events + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + afterGuid := "afterGuid_example" // string | Filters out events before and including the event with the given guid (optional) + guids := []string{"Inner_example"} // []string | Comma-delimited list of usage event guids to filter by (optional) + createdAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsGet(context.Background()).Page(page).PerPage(perPage).OrderBy(orderBy).AfterGuid(afterGuid).Guids(guids).CreatedAts(createdAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppUsageEventsAPI.V3AppUsageEventsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppUsageEventsGet`: AppUsageEventList + fmt.Fprintf(os.Stdout, "Response from `AppUsageEventsAPI.V3AppUsageEventsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppUsageEventsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **afterGuid** | **string** | Filters out events before and including the event with the given guid | + **guids** | **[]string** | Comma-delimited list of usage event guids to filter by | + **createdAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by | + +### Return type + +[**AppUsageEventList**](AppUsageEventList.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppUsageEventsGuidGet + +> AppUsageEvent V3AppUsageEventsGuidGet(ctx, guid).Execute() + +Retrieve an app usage event + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the event + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppUsageEventsAPI.V3AppUsageEventsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppUsageEventsGuidGet`: AppUsageEvent + fmt.Fprintf(os.Stdout, "Response from `AppUsageEventsAPI.V3AppUsageEventsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the event | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppUsageEventsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**AppUsageEvent**](AppUsageEvent.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ApplyOrganizationQuotaToOrganizations201Response.md b/docs/ApplyOrganizationQuotaToOrganizations201Response.md new file mode 100644 index 0000000..1795eed --- /dev/null +++ b/docs/ApplyOrganizationQuotaToOrganizations201Response.md @@ -0,0 +1,82 @@ +# ApplyOrganizationQuotaToOrganizations201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3DropletsPostRequestRelationshipsAppData**](V3DropletsPostRequestRelationshipsAppData.md) | | [optional] +**Links** | Pointer to [**ApplyOrganizationQuotaToOrganizations201ResponseLinks**](ApplyOrganizationQuotaToOrganizations201ResponseLinks.md) | | [optional] + +## Methods + +### NewApplyOrganizationQuotaToOrganizations201Response + +`func NewApplyOrganizationQuotaToOrganizations201Response() *ApplyOrganizationQuotaToOrganizations201Response` + +NewApplyOrganizationQuotaToOrganizations201Response instantiates a new ApplyOrganizationQuotaToOrganizations201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApplyOrganizationQuotaToOrganizations201ResponseWithDefaults + +`func NewApplyOrganizationQuotaToOrganizations201ResponseWithDefaults() *ApplyOrganizationQuotaToOrganizations201Response` + +NewApplyOrganizationQuotaToOrganizations201ResponseWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizations201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) GetData() []V3DropletsPostRequestRelationshipsAppData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) GetDataOk() (*[]V3DropletsPostRequestRelationshipsAppData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) SetData(v []V3DropletsPostRequestRelationshipsAppData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLinks + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) GetLinks() ApplyOrganizationQuotaToOrganizations201ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) GetLinksOk() (*ApplyOrganizationQuotaToOrganizations201ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) SetLinks(v ApplyOrganizationQuotaToOrganizations201ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ApplyOrganizationQuotaToOrganizations201Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplyOrganizationQuotaToOrganizations201ResponseLinks.md b/docs/ApplyOrganizationQuotaToOrganizations201ResponseLinks.md new file mode 100644 index 0000000..0b228ea --- /dev/null +++ b/docs/ApplyOrganizationQuotaToOrganizations201ResponseLinks.md @@ -0,0 +1,56 @@ +# ApplyOrganizationQuotaToOrganizations201ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to **string** | URL of the applied quota relationship | [optional] + +## Methods + +### NewApplyOrganizationQuotaToOrganizations201ResponseLinks + +`func NewApplyOrganizationQuotaToOrganizations201ResponseLinks() *ApplyOrganizationQuotaToOrganizations201ResponseLinks` + +NewApplyOrganizationQuotaToOrganizations201ResponseLinks instantiates a new ApplyOrganizationQuotaToOrganizations201ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApplyOrganizationQuotaToOrganizations201ResponseLinksWithDefaults + +`func NewApplyOrganizationQuotaToOrganizations201ResponseLinksWithDefaults() *ApplyOrganizationQuotaToOrganizations201ResponseLinks` + +NewApplyOrganizationQuotaToOrganizations201ResponseLinksWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizations201ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ApplyOrganizationQuotaToOrganizationsRequest.md b/docs/ApplyOrganizationQuotaToOrganizationsRequest.md new file mode 100644 index 0000000..4ed9f85 --- /dev/null +++ b/docs/ApplyOrganizationQuotaToOrganizationsRequest.md @@ -0,0 +1,56 @@ +# ApplyOrganizationQuotaToOrganizationsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner**](CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md) | | [optional] + +## Methods + +### NewApplyOrganizationQuotaToOrganizationsRequest + +`func NewApplyOrganizationQuotaToOrganizationsRequest() *ApplyOrganizationQuotaToOrganizationsRequest` + +NewApplyOrganizationQuotaToOrganizationsRequest instantiates a new ApplyOrganizationQuotaToOrganizationsRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewApplyOrganizationQuotaToOrganizationsRequestWithDefaults + +`func NewApplyOrganizationQuotaToOrganizationsRequestWithDefaults() *ApplyOrganizationQuotaToOrganizationsRequest` + +NewApplyOrganizationQuotaToOrganizationsRequestWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizationsRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ApplyOrganizationQuotaToOrganizationsRequest) GetData() []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ApplyOrganizationQuotaToOrganizationsRequest) GetDataOk() (*[]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ApplyOrganizationQuotaToOrganizationsRequest) SetData(v []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ApplyOrganizationQuotaToOrganizationsRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppsQuota.md b/docs/AppsQuota.md new file mode 100644 index 0000000..c3d9893 --- /dev/null +++ b/docs/AppsQuota.md @@ -0,0 +1,210 @@ +# AppsQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogRateLimitInBytesPerSecond** | Pointer to **NullableInt32** | Total log rate limit allowed for all the started processes and running tasks in an organization | [optional] +**PerAppTasks** | Pointer to **NullableInt32** | Maximum number of running tasks in an organization | [optional] +**PerProcessMemoryInMb** | Pointer to **NullableInt32** | Maximum memory for a single process or task | [optional] +**TotalInstances** | Pointer to **NullableInt32** | Total instances of all the started processes allowed in an organization | [optional] +**TotalMemoryInMb** | Pointer to **NullableInt32** | Total memory allowed for all the started processes and running tasks in an organization | [optional] + +## Methods + +### NewAppsQuota + +`func NewAppsQuota() *AppsQuota` + +NewAppsQuota instantiates a new AppsQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppsQuotaWithDefaults + +`func NewAppsQuotaWithDefaults() *AppsQuota` + +NewAppsQuotaWithDefaults instantiates a new AppsQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogRateLimitInBytesPerSecond + +`func (o *AppsQuota) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *AppsQuota) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *AppsQuota) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *AppsQuota) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### SetLogRateLimitInBytesPerSecondNil + +`func (o *AppsQuota) SetLogRateLimitInBytesPerSecondNil(b bool)` + + SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil + +### UnsetLogRateLimitInBytesPerSecond +`func (o *AppsQuota) UnsetLogRateLimitInBytesPerSecond()` + +UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +### GetPerAppTasks + +`func (o *AppsQuota) GetPerAppTasks() int32` + +GetPerAppTasks returns the PerAppTasks field if non-nil, zero value otherwise. + +### GetPerAppTasksOk + +`func (o *AppsQuota) GetPerAppTasksOk() (*int32, bool)` + +GetPerAppTasksOk returns a tuple with the PerAppTasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerAppTasks + +`func (o *AppsQuota) SetPerAppTasks(v int32)` + +SetPerAppTasks sets PerAppTasks field to given value. + +### HasPerAppTasks + +`func (o *AppsQuota) HasPerAppTasks() bool` + +HasPerAppTasks returns a boolean if a field has been set. + +### SetPerAppTasksNil + +`func (o *AppsQuota) SetPerAppTasksNil(b bool)` + + SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil + +### UnsetPerAppTasks +`func (o *AppsQuota) UnsetPerAppTasks()` + +UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +### GetPerProcessMemoryInMb + +`func (o *AppsQuota) GetPerProcessMemoryInMb() int32` + +GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field if non-nil, zero value otherwise. + +### GetPerProcessMemoryInMbOk + +`func (o *AppsQuota) GetPerProcessMemoryInMbOk() (*int32, bool)` + +GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerProcessMemoryInMb + +`func (o *AppsQuota) SetPerProcessMemoryInMb(v int32)` + +SetPerProcessMemoryInMb sets PerProcessMemoryInMb field to given value. + +### HasPerProcessMemoryInMb + +`func (o *AppsQuota) HasPerProcessMemoryInMb() bool` + +HasPerProcessMemoryInMb returns a boolean if a field has been set. + +### SetPerProcessMemoryInMbNil + +`func (o *AppsQuota) SetPerProcessMemoryInMbNil(b bool)` + + SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil + +### UnsetPerProcessMemoryInMb +`func (o *AppsQuota) UnsetPerProcessMemoryInMb()` + +UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +### GetTotalInstances + +`func (o *AppsQuota) GetTotalInstances() int32` + +GetTotalInstances returns the TotalInstances field if non-nil, zero value otherwise. + +### GetTotalInstancesOk + +`func (o *AppsQuota) GetTotalInstancesOk() (*int32, bool)` + +GetTotalInstancesOk returns a tuple with the TotalInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalInstances + +`func (o *AppsQuota) SetTotalInstances(v int32)` + +SetTotalInstances sets TotalInstances field to given value. + +### HasTotalInstances + +`func (o *AppsQuota) HasTotalInstances() bool` + +HasTotalInstances returns a boolean if a field has been set. + +### SetTotalInstancesNil + +`func (o *AppsQuota) SetTotalInstancesNil(b bool)` + + SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil + +### UnsetTotalInstances +`func (o *AppsQuota) UnsetTotalInstances()` + +UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +### GetTotalMemoryInMb + +`func (o *AppsQuota) GetTotalMemoryInMb() int32` + +GetTotalMemoryInMb returns the TotalMemoryInMb field if non-nil, zero value otherwise. + +### GetTotalMemoryInMbOk + +`func (o *AppsQuota) GetTotalMemoryInMbOk() (*int32, bool)` + +GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMemoryInMb + +`func (o *AppsQuota) SetTotalMemoryInMb(v int32)` + +SetTotalMemoryInMb sets TotalMemoryInMb field to given value. + +### HasTotalMemoryInMb + +`func (o *AppsQuota) HasTotalMemoryInMb() bool` + +HasTotalMemoryInMb returns a boolean if a field has been set. + +### SetTotalMemoryInMbNil + +`func (o *AppsQuota) SetTotalMemoryInMbNil(b bool)` + + SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil + +### UnsetTotalMemoryInMb +`func (o *AppsQuota) UnsetTotalMemoryInMb()` + +UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEvent.md b/docs/AuditEvent.md new file mode 100644 index 0000000..b54487d --- /dev/null +++ b/docs/AuditEvent.md @@ -0,0 +1,290 @@ +# AuditEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actor** | Pointer to [**AuditEventActor**](AuditEventActor.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | The time with zone when the object was created | [optional] +**Data** | Pointer to **map[string]interface{}** | Additional information about event | [optional] +**Guid** | Pointer to **string** | Unique identifier for the event | [optional] +**Links** | Pointer to [**AuditEventLinks**](AuditEventLinks.md) | | [optional] +**Organization** | Pointer to [**AuditEventOrganization**](AuditEventOrganization.md) | | [optional] +**Space** | Pointer to [**AuditEventSpace**](AuditEventSpace.md) | | [optional] +**Target** | Pointer to [**AuditEventTarget**](AuditEventTarget.md) | | [optional] +**Type** | Pointer to **string** | The type of the event | [optional] +**UpdatedAt** | Pointer to **time.Time** | The time with zone when the object was last updated | [optional] + +## Methods + +### NewAuditEvent + +`func NewAuditEvent() *AuditEvent` + +NewAuditEvent instantiates a new AuditEvent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventWithDefaults + +`func NewAuditEventWithDefaults() *AuditEvent` + +NewAuditEventWithDefaults instantiates a new AuditEvent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActor + +`func (o *AuditEvent) GetActor() AuditEventActor` + +GetActor returns the Actor field if non-nil, zero value otherwise. + +### GetActorOk + +`func (o *AuditEvent) GetActorOk() (*AuditEventActor, bool)` + +GetActorOk returns a tuple with the Actor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActor + +`func (o *AuditEvent) SetActor(v AuditEventActor)` + +SetActor sets Actor field to given value. + +### HasActor + +`func (o *AuditEvent) HasActor() bool` + +HasActor returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *AuditEvent) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AuditEvent) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AuditEvent) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AuditEvent) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetData + +`func (o *AuditEvent) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AuditEvent) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AuditEvent) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *AuditEvent) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetGuid + +`func (o *AuditEvent) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AuditEvent) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AuditEvent) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AuditEvent) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *AuditEvent) GetLinks() AuditEventLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *AuditEvent) GetLinksOk() (*AuditEventLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *AuditEvent) SetLinks(v AuditEventLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *AuditEvent) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetOrganization + +`func (o *AuditEvent) GetOrganization() AuditEventOrganization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *AuditEvent) GetOrganizationOk() (*AuditEventOrganization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *AuditEvent) SetOrganization(v AuditEventOrganization)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *AuditEvent) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSpace + +`func (o *AuditEvent) GetSpace() AuditEventSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *AuditEvent) GetSpaceOk() (*AuditEventSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *AuditEvent) SetSpace(v AuditEventSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *AuditEvent) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetTarget + +`func (o *AuditEvent) GetTarget() AuditEventTarget` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *AuditEvent) GetTargetOk() (*AuditEventTarget, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *AuditEvent) SetTarget(v AuditEventTarget)` + +SetTarget sets Target field to given value. + +### HasTarget + +`func (o *AuditEvent) HasTarget() bool` + +HasTarget returns a boolean if a field has been set. + +### GetType + +`func (o *AuditEvent) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AuditEvent) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AuditEvent) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AuditEvent) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AuditEvent) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AuditEvent) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AuditEvent) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AuditEvent) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventActor.md b/docs/AuditEventActor.md new file mode 100644 index 0000000..1c4c833 --- /dev/null +++ b/docs/AuditEventActor.md @@ -0,0 +1,108 @@ +# AuditEventActor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the actor | [optional] +**Name** | Pointer to **string** | The name of the actor | [optional] +**Type** | Pointer to **string** | The actor type | [optional] + +## Methods + +### NewAuditEventActor + +`func NewAuditEventActor() *AuditEventActor` + +NewAuditEventActor instantiates a new AuditEventActor object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventActorWithDefaults + +`func NewAuditEventActorWithDefaults() *AuditEventActor` + +NewAuditEventActorWithDefaults instantiates a new AuditEventActor object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AuditEventActor) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AuditEventActor) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AuditEventActor) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AuditEventActor) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *AuditEventActor) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AuditEventActor) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AuditEventActor) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AuditEventActor) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *AuditEventActor) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AuditEventActor) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AuditEventActor) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AuditEventActor) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventLinks.md b/docs/AuditEventLinks.md new file mode 100644 index 0000000..b881c8f --- /dev/null +++ b/docs/AuditEventLinks.md @@ -0,0 +1,56 @@ +# AuditEventLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**AuditEventLinksSelf**](AuditEventLinksSelf.md) | | [optional] + +## Methods + +### NewAuditEventLinks + +`func NewAuditEventLinks() *AuditEventLinks` + +NewAuditEventLinks instantiates a new AuditEventLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventLinksWithDefaults + +`func NewAuditEventLinksWithDefaults() *AuditEventLinks` + +NewAuditEventLinksWithDefaults instantiates a new AuditEventLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *AuditEventLinks) GetSelf() AuditEventLinksSelf` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *AuditEventLinks) GetSelfOk() (*AuditEventLinksSelf, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *AuditEventLinks) SetSelf(v AuditEventLinksSelf)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *AuditEventLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventLinksSelf.md b/docs/AuditEventLinksSelf.md new file mode 100644 index 0000000..a18b1d7 --- /dev/null +++ b/docs/AuditEventLinksSelf.md @@ -0,0 +1,56 @@ +# AuditEventLinksSelf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | Link to the audit event resource | [optional] + +## Methods + +### NewAuditEventLinksSelf + +`func NewAuditEventLinksSelf() *AuditEventLinksSelf` + +NewAuditEventLinksSelf instantiates a new AuditEventLinksSelf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventLinksSelfWithDefaults + +`func NewAuditEventLinksSelfWithDefaults() *AuditEventLinksSelf` + +NewAuditEventLinksSelfWithDefaults instantiates a new AuditEventLinksSelf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *AuditEventLinksSelf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AuditEventLinksSelf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AuditEventLinksSelf) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AuditEventLinksSelf) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventList.md b/docs/AuditEventList.md new file mode 100644 index 0000000..c5c5acf --- /dev/null +++ b/docs/AuditEventList.md @@ -0,0 +1,82 @@ +# AuditEventList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**AuditEventListPagination**](AuditEventListPagination.md) | | [optional] +**Resources** | Pointer to [**[]AuditEvent**](AuditEvent.md) | | [optional] + +## Methods + +### NewAuditEventList + +`func NewAuditEventList() *AuditEventList` + +NewAuditEventList instantiates a new AuditEventList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventListWithDefaults + +`func NewAuditEventListWithDefaults() *AuditEventList` + +NewAuditEventListWithDefaults instantiates a new AuditEventList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *AuditEventList) GetPagination() AuditEventListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *AuditEventList) GetPaginationOk() (*AuditEventListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *AuditEventList) SetPagination(v AuditEventListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *AuditEventList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *AuditEventList) GetResources() []AuditEvent` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *AuditEventList) GetResourcesOk() (*[]AuditEvent, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *AuditEventList) SetResources(v []AuditEvent)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *AuditEventList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventListPagination.md b/docs/AuditEventListPagination.md new file mode 100644 index 0000000..e1c417b --- /dev/null +++ b/docs/AuditEventListPagination.md @@ -0,0 +1,206 @@ +# AuditEventListPagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**AppUsageEventListPaginationFirst**](AppUsageEventListPaginationFirst.md) | | [optional] +**Last** | Pointer to [**AppUsageEventListPaginationLast**](AppUsageEventListPaginationLast.md) | | [optional] +**Next** | Pointer to **map[string]interface{}** | Link to the next page, if applicable | [optional] +**Previous** | Pointer to **map[string]interface{}** | Link to the previous page, if applicable | [optional] +**TotalPages** | Pointer to **int32** | Total number of pages | [optional] +**TotalResults** | Pointer to **int32** | Total number of results | [optional] + +## Methods + +### NewAuditEventListPagination + +`func NewAuditEventListPagination() *AuditEventListPagination` + +NewAuditEventListPagination instantiates a new AuditEventListPagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventListPaginationWithDefaults + +`func NewAuditEventListPaginationWithDefaults() *AuditEventListPagination` + +NewAuditEventListPaginationWithDefaults instantiates a new AuditEventListPagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *AuditEventListPagination) GetFirst() AppUsageEventListPaginationFirst` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *AuditEventListPagination) GetFirstOk() (*AppUsageEventListPaginationFirst, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *AuditEventListPagination) SetFirst(v AppUsageEventListPaginationFirst)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *AuditEventListPagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *AuditEventListPagination) GetLast() AppUsageEventListPaginationLast` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *AuditEventListPagination) GetLastOk() (*AppUsageEventListPaginationLast, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *AuditEventListPagination) SetLast(v AppUsageEventListPaginationLast)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *AuditEventListPagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *AuditEventListPagination) GetNext() map[string]interface{}` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *AuditEventListPagination) GetNextOk() (*map[string]interface{}, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *AuditEventListPagination) SetNext(v map[string]interface{})` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *AuditEventListPagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *AuditEventListPagination) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *AuditEventListPagination) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *AuditEventListPagination) GetPrevious() map[string]interface{}` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *AuditEventListPagination) GetPreviousOk() (*map[string]interface{}, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *AuditEventListPagination) SetPrevious(v map[string]interface{})` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *AuditEventListPagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *AuditEventListPagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *AuditEventListPagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *AuditEventListPagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *AuditEventListPagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *AuditEventListPagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *AuditEventListPagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *AuditEventListPagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *AuditEventListPagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *AuditEventListPagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *AuditEventListPagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventOrganization.md b/docs/AuditEventOrganization.md new file mode 100644 index 0000000..77fcaea --- /dev/null +++ b/docs/AuditEventOrganization.md @@ -0,0 +1,56 @@ +# AuditEventOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the organization where the event occurred | [optional] + +## Methods + +### NewAuditEventOrganization + +`func NewAuditEventOrganization() *AuditEventOrganization` + +NewAuditEventOrganization instantiates a new AuditEventOrganization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventOrganizationWithDefaults + +`func NewAuditEventOrganizationWithDefaults() *AuditEventOrganization` + +NewAuditEventOrganizationWithDefaults instantiates a new AuditEventOrganization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AuditEventOrganization) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AuditEventOrganization) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AuditEventOrganization) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AuditEventOrganization) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventSpace.md b/docs/AuditEventSpace.md new file mode 100644 index 0000000..2ac85f4 --- /dev/null +++ b/docs/AuditEventSpace.md @@ -0,0 +1,56 @@ +# AuditEventSpace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the space where the event occurred | [optional] + +## Methods + +### NewAuditEventSpace + +`func NewAuditEventSpace() *AuditEventSpace` + +NewAuditEventSpace instantiates a new AuditEventSpace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventSpaceWithDefaults + +`func NewAuditEventSpaceWithDefaults() *AuditEventSpace` + +NewAuditEventSpaceWithDefaults instantiates a new AuditEventSpace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AuditEventSpace) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AuditEventSpace) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AuditEventSpace) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AuditEventSpace) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventTarget.md b/docs/AuditEventTarget.md new file mode 100644 index 0000000..da49c67 --- /dev/null +++ b/docs/AuditEventTarget.md @@ -0,0 +1,108 @@ +# AuditEventTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the target | [optional] +**Name** | Pointer to **string** | The name of the target | [optional] +**Type** | Pointer to **string** | The target type | [optional] + +## Methods + +### NewAuditEventTarget + +`func NewAuditEventTarget() *AuditEventTarget` + +NewAuditEventTarget instantiates a new AuditEventTarget object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuditEventTargetWithDefaults + +`func NewAuditEventTargetWithDefaults() *AuditEventTarget` + +NewAuditEventTargetWithDefaults instantiates a new AuditEventTarget object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *AuditEventTarget) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *AuditEventTarget) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *AuditEventTarget) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *AuditEventTarget) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *AuditEventTarget) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AuditEventTarget) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AuditEventTarget) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AuditEventTarget) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *AuditEventTarget) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AuditEventTarget) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AuditEventTarget) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AuditEventTarget) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuditEventsAPI.md b/docs/AuditEventsAPI.md new file mode 100644 index 0000000..159b2c5 --- /dev/null +++ b/docs/AuditEventsAPI.md @@ -0,0 +1,159 @@ +# \AuditEventsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V3AuditEventsGet**](AuditEventsAPI.md#V3AuditEventsGet) | **Get** /v3/audit_events | List audit events +[**V3AuditEventsGuidGet**](AuditEventsAPI.md#V3AuditEventsGuidGet) | **Get** /v3/audit_events/{guid} | Retrieve an audit event + + + +## V3AuditEventsGet + +> AuditEventList V3AuditEventsGet(ctx).Types(types).TargetGuids(targetGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List audit events + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + types := []string{"Inner_example"} // []string | Comma-delimited list of event types to filter by (optional) + targetGuids := []string{"Inner_example"} // []string | Comma-delimited list of target guids to filter by. Also supports filtering by exclusion. (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + createdAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by (optional) + updatedAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditEventsAPI.V3AuditEventsGet(context.Background()).Types(types).TargetGuids(targetGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditEventsAPI.V3AuditEventsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AuditEventsGet`: AuditEventList + fmt.Fprintf(os.Stdout, "Response from `AuditEventsAPI.V3AuditEventsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AuditEventsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **types** | **[]string** | Comma-delimited list of event types to filter by | + **targetGuids** | **[]string** | Comma-delimited list of target guids to filter by. Also supports filtering by exclusion. | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **createdAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by | + **updatedAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by | + +### Return type + +[**AuditEventList**](AuditEventList.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AuditEventsGuidGet + +> AuditEvent V3AuditEventsGuidGet(ctx, guid).Execute() + +Retrieve an audit event + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the event + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditEventsAPI.V3AuditEventsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditEventsAPI.V3AuditEventsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AuditEventsGuidGet`: AuditEvent + fmt.Fprintf(os.Stdout, "Response from `AuditEventsAPI.V3AuditEventsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the event | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AuditEventsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**AuditEvent**](AuditEvent.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/Authentication.md b/docs/Authentication.md new file mode 100644 index 0000000..6a12b39 --- /dev/null +++ b/docs/Authentication.md @@ -0,0 +1,82 @@ +# Authentication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | Pointer to [**AuthenticationCredentials**](AuthenticationCredentials.md) | | [optional] +**Type** | Pointer to **string** | Type of the authentication mechanisms. Valid value is basic. | [optional] + +## Methods + +### NewAuthentication + +`func NewAuthentication() *Authentication` + +NewAuthentication instantiates a new Authentication object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationWithDefaults + +`func NewAuthenticationWithDefaults() *Authentication` + +NewAuthenticationWithDefaults instantiates a new Authentication object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *Authentication) GetCredentials() AuthenticationCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *Authentication) GetCredentialsOk() (*AuthenticationCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *Authentication) SetCredentials(v AuthenticationCredentials)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *Authentication) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetType + +`func (o *Authentication) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Authentication) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Authentication) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Authentication) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationCredentials.md b/docs/AuthenticationCredentials.md new file mode 100644 index 0000000..39aeef5 --- /dev/null +++ b/docs/AuthenticationCredentials.md @@ -0,0 +1,82 @@ +# AuthenticationCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | Pointer to **string** | The password to authenticate against the service broker. | [optional] +**Username** | Pointer to **string** | The username to authenticate against the service broker. | [optional] + +## Methods + +### NewAuthenticationCredentials + +`func NewAuthenticationCredentials() *AuthenticationCredentials` + +NewAuthenticationCredentials instantiates a new AuthenticationCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthenticationCredentialsWithDefaults + +`func NewAuthenticationCredentialsWithDefaults() *AuthenticationCredentials` + +NewAuthenticationCredentialsWithDefaults instantiates a new AuthenticationCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPassword + +`func (o *AuthenticationCredentials) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *AuthenticationCredentials) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *AuthenticationCredentials) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *AuthenticationCredentials) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *AuthenticationCredentials) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AuthenticationCredentials) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *AuthenticationCredentials) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *AuthenticationCredentials) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BrokerCatalog.md b/docs/BrokerCatalog.md new file mode 100644 index 0000000..cb9fda9 --- /dev/null +++ b/docs/BrokerCatalog.md @@ -0,0 +1,144 @@ +# BrokerCatalog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Features** | Pointer to [**BrokerCatalogFeatures**](BrokerCatalogFeatures.md) | | [optional] +**Id** | Pointer to **string** | | [optional] +**MaximumPollingDuration** | Pointer to **NullableInt32** | | [optional] +**Metadata** | Pointer to [**BrokerCatalogMetadata**](BrokerCatalogMetadata.md) | | [optional] + +## Methods + +### NewBrokerCatalog + +`func NewBrokerCatalog() *BrokerCatalog` + +NewBrokerCatalog instantiates a new BrokerCatalog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBrokerCatalogWithDefaults + +`func NewBrokerCatalogWithDefaults() *BrokerCatalog` + +NewBrokerCatalogWithDefaults instantiates a new BrokerCatalog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFeatures + +`func (o *BrokerCatalog) GetFeatures() BrokerCatalogFeatures` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *BrokerCatalog) GetFeaturesOk() (*BrokerCatalogFeatures, bool)` + +GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatures + +`func (o *BrokerCatalog) SetFeatures(v BrokerCatalogFeatures)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *BrokerCatalog) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + +### GetId + +`func (o *BrokerCatalog) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BrokerCatalog) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BrokerCatalog) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *BrokerCatalog) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMaximumPollingDuration + +`func (o *BrokerCatalog) GetMaximumPollingDuration() int32` + +GetMaximumPollingDuration returns the MaximumPollingDuration field if non-nil, zero value otherwise. + +### GetMaximumPollingDurationOk + +`func (o *BrokerCatalog) GetMaximumPollingDurationOk() (*int32, bool)` + +GetMaximumPollingDurationOk returns a tuple with the MaximumPollingDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumPollingDuration + +`func (o *BrokerCatalog) SetMaximumPollingDuration(v int32)` + +SetMaximumPollingDuration sets MaximumPollingDuration field to given value. + +### HasMaximumPollingDuration + +`func (o *BrokerCatalog) HasMaximumPollingDuration() bool` + +HasMaximumPollingDuration returns a boolean if a field has been set. + +### SetMaximumPollingDurationNil + +`func (o *BrokerCatalog) SetMaximumPollingDurationNil(b bool)` + + SetMaximumPollingDurationNil sets the value for MaximumPollingDuration to be an explicit nil + +### UnsetMaximumPollingDuration +`func (o *BrokerCatalog) UnsetMaximumPollingDuration()` + +UnsetMaximumPollingDuration ensures that no value is present for MaximumPollingDuration, not even an explicit nil +### GetMetadata + +`func (o *BrokerCatalog) GetMetadata() BrokerCatalogMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *BrokerCatalog) GetMetadataOk() (*BrokerCatalogMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *BrokerCatalog) SetMetadata(v BrokerCatalogMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *BrokerCatalog) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BrokerCatalogFeatures.md b/docs/BrokerCatalogFeatures.md new file mode 100644 index 0000000..6b10832 --- /dev/null +++ b/docs/BrokerCatalogFeatures.md @@ -0,0 +1,160 @@ +# BrokerCatalogFeatures + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowContextUpdates** | Pointer to **bool** | | [optional] +**Bindable** | Pointer to **bool** | | [optional] +**BindingsRetrievable** | Pointer to **bool** | | [optional] +**InstancesRetrievable** | Pointer to **bool** | | [optional] +**PlanUpdateable** | Pointer to **bool** | | [optional] + +## Methods + +### NewBrokerCatalogFeatures + +`func NewBrokerCatalogFeatures() *BrokerCatalogFeatures` + +NewBrokerCatalogFeatures instantiates a new BrokerCatalogFeatures object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBrokerCatalogFeaturesWithDefaults + +`func NewBrokerCatalogFeaturesWithDefaults() *BrokerCatalogFeatures` + +NewBrokerCatalogFeaturesWithDefaults instantiates a new BrokerCatalogFeatures object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowContextUpdates + +`func (o *BrokerCatalogFeatures) GetAllowContextUpdates() bool` + +GetAllowContextUpdates returns the AllowContextUpdates field if non-nil, zero value otherwise. + +### GetAllowContextUpdatesOk + +`func (o *BrokerCatalogFeatures) GetAllowContextUpdatesOk() (*bool, bool)` + +GetAllowContextUpdatesOk returns a tuple with the AllowContextUpdates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowContextUpdates + +`func (o *BrokerCatalogFeatures) SetAllowContextUpdates(v bool)` + +SetAllowContextUpdates sets AllowContextUpdates field to given value. + +### HasAllowContextUpdates + +`func (o *BrokerCatalogFeatures) HasAllowContextUpdates() bool` + +HasAllowContextUpdates returns a boolean if a field has been set. + +### GetBindable + +`func (o *BrokerCatalogFeatures) GetBindable() bool` + +GetBindable returns the Bindable field if non-nil, zero value otherwise. + +### GetBindableOk + +`func (o *BrokerCatalogFeatures) GetBindableOk() (*bool, bool)` + +GetBindableOk returns a tuple with the Bindable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBindable + +`func (o *BrokerCatalogFeatures) SetBindable(v bool)` + +SetBindable sets Bindable field to given value. + +### HasBindable + +`func (o *BrokerCatalogFeatures) HasBindable() bool` + +HasBindable returns a boolean if a field has been set. + +### GetBindingsRetrievable + +`func (o *BrokerCatalogFeatures) GetBindingsRetrievable() bool` + +GetBindingsRetrievable returns the BindingsRetrievable field if non-nil, zero value otherwise. + +### GetBindingsRetrievableOk + +`func (o *BrokerCatalogFeatures) GetBindingsRetrievableOk() (*bool, bool)` + +GetBindingsRetrievableOk returns a tuple with the BindingsRetrievable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBindingsRetrievable + +`func (o *BrokerCatalogFeatures) SetBindingsRetrievable(v bool)` + +SetBindingsRetrievable sets BindingsRetrievable field to given value. + +### HasBindingsRetrievable + +`func (o *BrokerCatalogFeatures) HasBindingsRetrievable() bool` + +HasBindingsRetrievable returns a boolean if a field has been set. + +### GetInstancesRetrievable + +`func (o *BrokerCatalogFeatures) GetInstancesRetrievable() bool` + +GetInstancesRetrievable returns the InstancesRetrievable field if non-nil, zero value otherwise. + +### GetInstancesRetrievableOk + +`func (o *BrokerCatalogFeatures) GetInstancesRetrievableOk() (*bool, bool)` + +GetInstancesRetrievableOk returns a tuple with the InstancesRetrievable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstancesRetrievable + +`func (o *BrokerCatalogFeatures) SetInstancesRetrievable(v bool)` + +SetInstancesRetrievable sets InstancesRetrievable field to given value. + +### HasInstancesRetrievable + +`func (o *BrokerCatalogFeatures) HasInstancesRetrievable() bool` + +HasInstancesRetrievable returns a boolean if a field has been set. + +### GetPlanUpdateable + +`func (o *BrokerCatalogFeatures) GetPlanUpdateable() bool` + +GetPlanUpdateable returns the PlanUpdateable field if non-nil, zero value otherwise. + +### GetPlanUpdateableOk + +`func (o *BrokerCatalogFeatures) GetPlanUpdateableOk() (*bool, bool)` + +GetPlanUpdateableOk returns a tuple with the PlanUpdateable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanUpdateable + +`func (o *BrokerCatalogFeatures) SetPlanUpdateable(v bool)` + +SetPlanUpdateable sets PlanUpdateable field to given value. + +### HasPlanUpdateable + +`func (o *BrokerCatalogFeatures) HasPlanUpdateable() bool` + +HasPlanUpdateable returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BrokerCatalogMetadata.md b/docs/BrokerCatalogMetadata.md new file mode 100644 index 0000000..adc0527 --- /dev/null +++ b/docs/BrokerCatalogMetadata.md @@ -0,0 +1,56 @@ +# BrokerCatalogMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shareable** | Pointer to **bool** | | [optional] + +## Methods + +### NewBrokerCatalogMetadata + +`func NewBrokerCatalogMetadata() *BrokerCatalogMetadata` + +NewBrokerCatalogMetadata instantiates a new BrokerCatalogMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBrokerCatalogMetadataWithDefaults + +`func NewBrokerCatalogMetadataWithDefaults() *BrokerCatalogMetadata` + +NewBrokerCatalogMetadataWithDefaults instantiates a new BrokerCatalogMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShareable + +`func (o *BrokerCatalogMetadata) GetShareable() bool` + +GetShareable returns the Shareable field if non-nil, zero value otherwise. + +### GetShareableOk + +`func (o *BrokerCatalogMetadata) GetShareableOk() (*bool, bool)` + +GetShareableOk returns a tuple with the Shareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareable + +`func (o *BrokerCatalogMetadata) SetShareable(v bool)` + +SetShareable sets Shareable field to given value. + +### HasShareable + +`func (o *BrokerCatalogMetadata) HasShareable() bool` + +HasShareable returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Buildpack.md b/docs/Buildpack.md new file mode 100644 index 0000000..4241af9 --- /dev/null +++ b/docs/Buildpack.md @@ -0,0 +1,134 @@ +# Buildpack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildpackName** | Pointer to **string** | | [optional] +**DetectOutput** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewBuildpack + +`func NewBuildpack() *Buildpack` + +NewBuildpack instantiates a new Buildpack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuildpackWithDefaults + +`func NewBuildpackWithDefaults() *Buildpack` + +NewBuildpackWithDefaults instantiates a new Buildpack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpackName + +`func (o *Buildpack) GetBuildpackName() string` + +GetBuildpackName returns the BuildpackName field if non-nil, zero value otherwise. + +### GetBuildpackNameOk + +`func (o *Buildpack) GetBuildpackNameOk() (*string, bool)` + +GetBuildpackNameOk returns a tuple with the BuildpackName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpackName + +`func (o *Buildpack) SetBuildpackName(v string)` + +SetBuildpackName sets BuildpackName field to given value. + +### HasBuildpackName + +`func (o *Buildpack) HasBuildpackName() bool` + +HasBuildpackName returns a boolean if a field has been set. + +### GetDetectOutput + +`func (o *Buildpack) GetDetectOutput() string` + +GetDetectOutput returns the DetectOutput field if non-nil, zero value otherwise. + +### GetDetectOutputOk + +`func (o *Buildpack) GetDetectOutputOk() (*string, bool)` + +GetDetectOutputOk returns a tuple with the DetectOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetectOutput + +`func (o *Buildpack) SetDetectOutput(v string)` + +SetDetectOutput sets DetectOutput field to given value. + +### HasDetectOutput + +`func (o *Buildpack) HasDetectOutput() bool` + +HasDetectOutput returns a boolean if a field has been set. + +### GetName + +`func (o *Buildpack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Buildpack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Buildpack) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Buildpack) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *Buildpack) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *Buildpack) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *Buildpack) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *Buildpack) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Cost.md b/docs/Cost.md new file mode 100644 index 0000000..80ae1fb --- /dev/null +++ b/docs/Cost.md @@ -0,0 +1,108 @@ +# Cost + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | Pointer to **float32** | | [optional] +**Currency** | Pointer to **string** | | [optional] +**Unit** | Pointer to **string** | | [optional] + +## Methods + +### NewCost + +`func NewCost() *Cost` + +NewCost instantiates a new Cost object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCostWithDefaults + +`func NewCostWithDefaults() *Cost` + +NewCostWithDefaults instantiates a new Cost object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmount + +`func (o *Cost) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *Cost) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *Cost) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *Cost) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetCurrency + +`func (o *Cost) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *Cost) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *Cost) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *Cost) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetUnit + +`func (o *Cost) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *Cost) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *Cost) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *Cost) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequest.md b/docs/CreateOrganizationQuotaRequest.md new file mode 100644 index 0000000..20149b3 --- /dev/null +++ b/docs/CreateOrganizationQuotaRequest.md @@ -0,0 +1,186 @@ +# CreateOrganizationQuotaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**CreateOrganizationQuotaRequestApps**](CreateOrganizationQuotaRequestApps.md) | | [optional] +**Domains** | Pointer to [**CreateOrganizationQuotaRequestDomains**](CreateOrganizationQuotaRequestDomains.md) | | [optional] +**Name** | Pointer to **string** | Name of the quota | [optional] +**Relationships** | Pointer to [**CreateOrganizationQuotaRequestRelationships**](CreateOrganizationQuotaRequestRelationships.md) | | [optional] +**Routes** | Pointer to [**CreateOrganizationQuotaRequestRoutes**](CreateOrganizationQuotaRequestRoutes.md) | | [optional] +**Services** | Pointer to [**CreateOrganizationQuotaRequestServices**](CreateOrganizationQuotaRequestServices.md) | | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequest + +`func NewCreateOrganizationQuotaRequest() *CreateOrganizationQuotaRequest` + +NewCreateOrganizationQuotaRequest instantiates a new CreateOrganizationQuotaRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestWithDefaults + +`func NewCreateOrganizationQuotaRequestWithDefaults() *CreateOrganizationQuotaRequest` + +NewCreateOrganizationQuotaRequestWithDefaults instantiates a new CreateOrganizationQuotaRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *CreateOrganizationQuotaRequest) GetApps() CreateOrganizationQuotaRequestApps` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *CreateOrganizationQuotaRequest) GetAppsOk() (*CreateOrganizationQuotaRequestApps, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *CreateOrganizationQuotaRequest) SetApps(v CreateOrganizationQuotaRequestApps)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *CreateOrganizationQuotaRequest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetDomains + +`func (o *CreateOrganizationQuotaRequest) GetDomains() CreateOrganizationQuotaRequestDomains` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *CreateOrganizationQuotaRequest) GetDomainsOk() (*CreateOrganizationQuotaRequestDomains, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *CreateOrganizationQuotaRequest) SetDomains(v CreateOrganizationQuotaRequestDomains)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *CreateOrganizationQuotaRequest) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetName + +`func (o *CreateOrganizationQuotaRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateOrganizationQuotaRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateOrganizationQuotaRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CreateOrganizationQuotaRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *CreateOrganizationQuotaRequest) GetRelationships() CreateOrganizationQuotaRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CreateOrganizationQuotaRequest) GetRelationshipsOk() (*CreateOrganizationQuotaRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CreateOrganizationQuotaRequest) SetRelationships(v CreateOrganizationQuotaRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CreateOrganizationQuotaRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRoutes + +`func (o *CreateOrganizationQuotaRequest) GetRoutes() CreateOrganizationQuotaRequestRoutes` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *CreateOrganizationQuotaRequest) GetRoutesOk() (*CreateOrganizationQuotaRequestRoutes, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *CreateOrganizationQuotaRequest) SetRoutes(v CreateOrganizationQuotaRequestRoutes)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *CreateOrganizationQuotaRequest) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *CreateOrganizationQuotaRequest) GetServices() CreateOrganizationQuotaRequestServices` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *CreateOrganizationQuotaRequest) GetServicesOk() (*CreateOrganizationQuotaRequestServices, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *CreateOrganizationQuotaRequest) SetServices(v CreateOrganizationQuotaRequestServices)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *CreateOrganizationQuotaRequest) HasServices() bool` + +HasServices returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestApps.md b/docs/CreateOrganizationQuotaRequestApps.md new file mode 100644 index 0000000..fdfed68 --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestApps.md @@ -0,0 +1,210 @@ +# CreateOrganizationQuotaRequestApps + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogRateLimitInBytesPerSecond** | Pointer to **NullableInt32** | Total log rate limit allowed for all the started processes and running tasks in an organization | [optional] +**PerAppTasks** | Pointer to **NullableInt32** | Maximum number of running tasks in an organization | [optional] +**PerProcessMemoryInMb** | Pointer to **NullableInt32** | Maximum memory for a single process or task | [optional] +**TotalInstances** | Pointer to **NullableInt32** | Total instances of all the started processes allowed in an organization | [optional] +**TotalMemoryInMb** | Pointer to **NullableInt32** | Total memory allowed for all the started processes and running tasks in an organization | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestApps + +`func NewCreateOrganizationQuotaRequestApps() *CreateOrganizationQuotaRequestApps` + +NewCreateOrganizationQuotaRequestApps instantiates a new CreateOrganizationQuotaRequestApps object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestAppsWithDefaults + +`func NewCreateOrganizationQuotaRequestAppsWithDefaults() *CreateOrganizationQuotaRequestApps` + +NewCreateOrganizationQuotaRequestAppsWithDefaults instantiates a new CreateOrganizationQuotaRequestApps object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogRateLimitInBytesPerSecond + +`func (o *CreateOrganizationQuotaRequestApps) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *CreateOrganizationQuotaRequestApps) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *CreateOrganizationQuotaRequestApps) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *CreateOrganizationQuotaRequestApps) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### SetLogRateLimitInBytesPerSecondNil + +`func (o *CreateOrganizationQuotaRequestApps) SetLogRateLimitInBytesPerSecondNil(b bool)` + + SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil + +### UnsetLogRateLimitInBytesPerSecond +`func (o *CreateOrganizationQuotaRequestApps) UnsetLogRateLimitInBytesPerSecond()` + +UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +### GetPerAppTasks + +`func (o *CreateOrganizationQuotaRequestApps) GetPerAppTasks() int32` + +GetPerAppTasks returns the PerAppTasks field if non-nil, zero value otherwise. + +### GetPerAppTasksOk + +`func (o *CreateOrganizationQuotaRequestApps) GetPerAppTasksOk() (*int32, bool)` + +GetPerAppTasksOk returns a tuple with the PerAppTasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerAppTasks + +`func (o *CreateOrganizationQuotaRequestApps) SetPerAppTasks(v int32)` + +SetPerAppTasks sets PerAppTasks field to given value. + +### HasPerAppTasks + +`func (o *CreateOrganizationQuotaRequestApps) HasPerAppTasks() bool` + +HasPerAppTasks returns a boolean if a field has been set. + +### SetPerAppTasksNil + +`func (o *CreateOrganizationQuotaRequestApps) SetPerAppTasksNil(b bool)` + + SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil + +### UnsetPerAppTasks +`func (o *CreateOrganizationQuotaRequestApps) UnsetPerAppTasks()` + +UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +### GetPerProcessMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) GetPerProcessMemoryInMb() int32` + +GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field if non-nil, zero value otherwise. + +### GetPerProcessMemoryInMbOk + +`func (o *CreateOrganizationQuotaRequestApps) GetPerProcessMemoryInMbOk() (*int32, bool)` + +GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerProcessMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) SetPerProcessMemoryInMb(v int32)` + +SetPerProcessMemoryInMb sets PerProcessMemoryInMb field to given value. + +### HasPerProcessMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) HasPerProcessMemoryInMb() bool` + +HasPerProcessMemoryInMb returns a boolean if a field has been set. + +### SetPerProcessMemoryInMbNil + +`func (o *CreateOrganizationQuotaRequestApps) SetPerProcessMemoryInMbNil(b bool)` + + SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil + +### UnsetPerProcessMemoryInMb +`func (o *CreateOrganizationQuotaRequestApps) UnsetPerProcessMemoryInMb()` + +UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +### GetTotalInstances + +`func (o *CreateOrganizationQuotaRequestApps) GetTotalInstances() int32` + +GetTotalInstances returns the TotalInstances field if non-nil, zero value otherwise. + +### GetTotalInstancesOk + +`func (o *CreateOrganizationQuotaRequestApps) GetTotalInstancesOk() (*int32, bool)` + +GetTotalInstancesOk returns a tuple with the TotalInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalInstances + +`func (o *CreateOrganizationQuotaRequestApps) SetTotalInstances(v int32)` + +SetTotalInstances sets TotalInstances field to given value. + +### HasTotalInstances + +`func (o *CreateOrganizationQuotaRequestApps) HasTotalInstances() bool` + +HasTotalInstances returns a boolean if a field has been set. + +### SetTotalInstancesNil + +`func (o *CreateOrganizationQuotaRequestApps) SetTotalInstancesNil(b bool)` + + SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil + +### UnsetTotalInstances +`func (o *CreateOrganizationQuotaRequestApps) UnsetTotalInstances()` + +UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +### GetTotalMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) GetTotalMemoryInMb() int32` + +GetTotalMemoryInMb returns the TotalMemoryInMb field if non-nil, zero value otherwise. + +### GetTotalMemoryInMbOk + +`func (o *CreateOrganizationQuotaRequestApps) GetTotalMemoryInMbOk() (*int32, bool)` + +GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) SetTotalMemoryInMb(v int32)` + +SetTotalMemoryInMb sets TotalMemoryInMb field to given value. + +### HasTotalMemoryInMb + +`func (o *CreateOrganizationQuotaRequestApps) HasTotalMemoryInMb() bool` + +HasTotalMemoryInMb returns a boolean if a field has been set. + +### SetTotalMemoryInMbNil + +`func (o *CreateOrganizationQuotaRequestApps) SetTotalMemoryInMbNil(b bool)` + + SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil + +### UnsetTotalMemoryInMb +`func (o *CreateOrganizationQuotaRequestApps) UnsetTotalMemoryInMb()` + +UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestDomains.md b/docs/CreateOrganizationQuotaRequestDomains.md new file mode 100644 index 0000000..e3669a7 --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestDomains.md @@ -0,0 +1,66 @@ +# CreateOrganizationQuotaRequestDomains + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalDomains** | Pointer to **NullableInt32** | Total number of domains that can be scoped to an organization | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestDomains + +`func NewCreateOrganizationQuotaRequestDomains() *CreateOrganizationQuotaRequestDomains` + +NewCreateOrganizationQuotaRequestDomains instantiates a new CreateOrganizationQuotaRequestDomains object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestDomainsWithDefaults + +`func NewCreateOrganizationQuotaRequestDomainsWithDefaults() *CreateOrganizationQuotaRequestDomains` + +NewCreateOrganizationQuotaRequestDomainsWithDefaults instantiates a new CreateOrganizationQuotaRequestDomains object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalDomains + +`func (o *CreateOrganizationQuotaRequestDomains) GetTotalDomains() int32` + +GetTotalDomains returns the TotalDomains field if non-nil, zero value otherwise. + +### GetTotalDomainsOk + +`func (o *CreateOrganizationQuotaRequestDomains) GetTotalDomainsOk() (*int32, bool)` + +GetTotalDomainsOk returns a tuple with the TotalDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalDomains + +`func (o *CreateOrganizationQuotaRequestDomains) SetTotalDomains(v int32)` + +SetTotalDomains sets TotalDomains field to given value. + +### HasTotalDomains + +`func (o *CreateOrganizationQuotaRequestDomains) HasTotalDomains() bool` + +HasTotalDomains returns a boolean if a field has been set. + +### SetTotalDomainsNil + +`func (o *CreateOrganizationQuotaRequestDomains) SetTotalDomainsNil(b bool)` + + SetTotalDomainsNil sets the value for TotalDomains to be an explicit nil + +### UnsetTotalDomains +`func (o *CreateOrganizationQuotaRequestDomains) UnsetTotalDomains()` + +UnsetTotalDomains ensures that no value is present for TotalDomains, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestRelationships.md b/docs/CreateOrganizationQuotaRequestRelationships.md new file mode 100644 index 0000000..c1de6bc --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestRelationships.md @@ -0,0 +1,56 @@ +# CreateOrganizationQuotaRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**[]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner**](CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md) | | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestRelationships + +`func NewCreateOrganizationQuotaRequestRelationships() *CreateOrganizationQuotaRequestRelationships` + +NewCreateOrganizationQuotaRequestRelationships instantiates a new CreateOrganizationQuotaRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestRelationshipsWithDefaults + +`func NewCreateOrganizationQuotaRequestRelationshipsWithDefaults() *CreateOrganizationQuotaRequestRelationships` + +NewCreateOrganizationQuotaRequestRelationshipsWithDefaults instantiates a new CreateOrganizationQuotaRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *CreateOrganizationQuotaRequestRelationships) GetOrganizations() []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *CreateOrganizationQuotaRequestRelationships) GetOrganizationsOk() (*[]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *CreateOrganizationQuotaRequestRelationships) SetOrganizations(v []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *CreateOrganizationQuotaRequestRelationships) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md b/docs/CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md new file mode 100644 index 0000000..4d7113b --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestRelationshipsOrganizationsInner.md @@ -0,0 +1,56 @@ +# CreateOrganizationQuotaRequestRelationshipsOrganizationsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | GUID of the organization | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInner + +`func NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInner() *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner` + +NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInner instantiates a new CreateOrganizationQuotaRequestRelationshipsOrganizationsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInnerWithDefaults + +`func NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInnerWithDefaults() *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner` + +NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInnerWithDefaults instantiates a new CreateOrganizationQuotaRequestRelationshipsOrganizationsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestRoutes.md b/docs/CreateOrganizationQuotaRequestRoutes.md new file mode 100644 index 0000000..70eef9b --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestRoutes.md @@ -0,0 +1,102 @@ +# CreateOrganizationQuotaRequestRoutes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalReservedPorts** | Pointer to **NullableInt32** | Total number of ports that are reservable by routes in an organization | [optional] +**TotalRoutes** | Pointer to **NullableInt32** | Total number of routes allowed in an organization | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestRoutes + +`func NewCreateOrganizationQuotaRequestRoutes() *CreateOrganizationQuotaRequestRoutes` + +NewCreateOrganizationQuotaRequestRoutes instantiates a new CreateOrganizationQuotaRequestRoutes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestRoutesWithDefaults + +`func NewCreateOrganizationQuotaRequestRoutesWithDefaults() *CreateOrganizationQuotaRequestRoutes` + +NewCreateOrganizationQuotaRequestRoutesWithDefaults instantiates a new CreateOrganizationQuotaRequestRoutes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalReservedPorts + +`func (o *CreateOrganizationQuotaRequestRoutes) GetTotalReservedPorts() int32` + +GetTotalReservedPorts returns the TotalReservedPorts field if non-nil, zero value otherwise. + +### GetTotalReservedPortsOk + +`func (o *CreateOrganizationQuotaRequestRoutes) GetTotalReservedPortsOk() (*int32, bool)` + +GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalReservedPorts + +`func (o *CreateOrganizationQuotaRequestRoutes) SetTotalReservedPorts(v int32)` + +SetTotalReservedPorts sets TotalReservedPorts field to given value. + +### HasTotalReservedPorts + +`func (o *CreateOrganizationQuotaRequestRoutes) HasTotalReservedPorts() bool` + +HasTotalReservedPorts returns a boolean if a field has been set. + +### SetTotalReservedPortsNil + +`func (o *CreateOrganizationQuotaRequestRoutes) SetTotalReservedPortsNil(b bool)` + + SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil + +### UnsetTotalReservedPorts +`func (o *CreateOrganizationQuotaRequestRoutes) UnsetTotalReservedPorts()` + +UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +### GetTotalRoutes + +`func (o *CreateOrganizationQuotaRequestRoutes) GetTotalRoutes() int32` + +GetTotalRoutes returns the TotalRoutes field if non-nil, zero value otherwise. + +### GetTotalRoutesOk + +`func (o *CreateOrganizationQuotaRequestRoutes) GetTotalRoutesOk() (*int32, bool)` + +GetTotalRoutesOk returns a tuple with the TotalRoutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalRoutes + +`func (o *CreateOrganizationQuotaRequestRoutes) SetTotalRoutes(v int32)` + +SetTotalRoutes sets TotalRoutes field to given value. + +### HasTotalRoutes + +`func (o *CreateOrganizationQuotaRequestRoutes) HasTotalRoutes() bool` + +HasTotalRoutes returns a boolean if a field has been set. + +### SetTotalRoutesNil + +`func (o *CreateOrganizationQuotaRequestRoutes) SetTotalRoutesNil(b bool)` + + SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil + +### UnsetTotalRoutes +`func (o *CreateOrganizationQuotaRequestRoutes) UnsetTotalRoutes()` + +UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationQuotaRequestServices.md b/docs/CreateOrganizationQuotaRequestServices.md new file mode 100644 index 0000000..b4d4878 --- /dev/null +++ b/docs/CreateOrganizationQuotaRequestServices.md @@ -0,0 +1,128 @@ +# CreateOrganizationQuotaRequestServices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PaidServicesAllowed** | Pointer to **bool** | Specifies whether instances of paid service plans can be created | [optional] +**TotalServiceInstances** | Pointer to **NullableInt32** | Total number of service instances allowed in an organization | [optional] +**TotalServiceKeys** | Pointer to **NullableInt32** | Total number of service keys allowed in an organization | [optional] + +## Methods + +### NewCreateOrganizationQuotaRequestServices + +`func NewCreateOrganizationQuotaRequestServices() *CreateOrganizationQuotaRequestServices` + +NewCreateOrganizationQuotaRequestServices instantiates a new CreateOrganizationQuotaRequestServices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationQuotaRequestServicesWithDefaults + +`func NewCreateOrganizationQuotaRequestServicesWithDefaults() *CreateOrganizationQuotaRequestServices` + +NewCreateOrganizationQuotaRequestServicesWithDefaults instantiates a new CreateOrganizationQuotaRequestServices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPaidServicesAllowed + +`func (o *CreateOrganizationQuotaRequestServices) GetPaidServicesAllowed() bool` + +GetPaidServicesAllowed returns the PaidServicesAllowed field if non-nil, zero value otherwise. + +### GetPaidServicesAllowedOk + +`func (o *CreateOrganizationQuotaRequestServices) GetPaidServicesAllowedOk() (*bool, bool)` + +GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaidServicesAllowed + +`func (o *CreateOrganizationQuotaRequestServices) SetPaidServicesAllowed(v bool)` + +SetPaidServicesAllowed sets PaidServicesAllowed field to given value. + +### HasPaidServicesAllowed + +`func (o *CreateOrganizationQuotaRequestServices) HasPaidServicesAllowed() bool` + +HasPaidServicesAllowed returns a boolean if a field has been set. + +### GetTotalServiceInstances + +`func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceInstances() int32` + +GetTotalServiceInstances returns the TotalServiceInstances field if non-nil, zero value otherwise. + +### GetTotalServiceInstancesOk + +`func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceInstancesOk() (*int32, bool)` + +GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceInstances + +`func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceInstances(v int32)` + +SetTotalServiceInstances sets TotalServiceInstances field to given value. + +### HasTotalServiceInstances + +`func (o *CreateOrganizationQuotaRequestServices) HasTotalServiceInstances() bool` + +HasTotalServiceInstances returns a boolean if a field has been set. + +### SetTotalServiceInstancesNil + +`func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceInstancesNil(b bool)` + + SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil + +### UnsetTotalServiceInstances +`func (o *CreateOrganizationQuotaRequestServices) UnsetTotalServiceInstances()` + +UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +### GetTotalServiceKeys + +`func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceKeys() int32` + +GetTotalServiceKeys returns the TotalServiceKeys field if non-nil, zero value otherwise. + +### GetTotalServiceKeysOk + +`func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceKeysOk() (*int32, bool)` + +GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceKeys + +`func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceKeys(v int32)` + +SetTotalServiceKeys sets TotalServiceKeys field to given value. + +### HasTotalServiceKeys + +`func (o *CreateOrganizationQuotaRequestServices) HasTotalServiceKeys() bool` + +HasTotalServiceKeys returns a boolean if a field has been set. + +### SetTotalServiceKeysNil + +`func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceKeysNil(b bool)` + + SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil + +### UnsetTotalServiceKeys +`func (o *CreateOrganizationQuotaRequestServices) UnsetTotalServiceKeys()` + +UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateOrganizationRequest.md b/docs/CreateOrganizationRequest.md new file mode 100644 index 0000000..591e376 --- /dev/null +++ b/docs/CreateOrganizationRequest.md @@ -0,0 +1,103 @@ +# CreateOrganizationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | **string** | | +**Suspended** | Pointer to **bool** | | [optional] + +## Methods + +### NewCreateOrganizationRequest + +`func NewCreateOrganizationRequest(name string, ) *CreateOrganizationRequest` + +NewCreateOrganizationRequest instantiates a new CreateOrganizationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateOrganizationRequestWithDefaults + +`func NewCreateOrganizationRequestWithDefaults() *CreateOrganizationRequest` + +NewCreateOrganizationRequestWithDefaults instantiates a new CreateOrganizationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *CreateOrganizationRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CreateOrganizationRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CreateOrganizationRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CreateOrganizationRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *CreateOrganizationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateOrganizationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateOrganizationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSuspended + +`func (o *CreateOrganizationRequest) GetSuspended() bool` + +GetSuspended returns the Suspended field if non-nil, zero value otherwise. + +### GetSuspendedOk + +`func (o *CreateOrganizationRequest) GetSuspendedOk() (*bool, bool)` + +GetSuspendedOk returns a tuple with the Suspended field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspended + +`func (o *CreateOrganizationRequest) SetSuspended(v bool)` + +SetSuspended sets Suspended field to given value. + +### HasSuspended + +`func (o *CreateOrganizationRequest) HasSuspended() bool` + +HasSuspended returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DefaultAPI.md b/docs/DefaultAPI.md new file mode 100644 index 0000000..84822e0 --- /dev/null +++ b/docs/DefaultAPI.md @@ -0,0 +1,13236 @@ +# \DefaultAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ApplyOrganizationQuotaToOrganizations**](DefaultAPI.md#ApplyOrganizationQuotaToOrganizations) | **Post** /v3/organization_quotas/{quota_guid}/relationships/organizations | Apply an organization quota to organizations +[**AssignDefaultIsolationSegment**](DefaultAPI.md#AssignDefaultIsolationSegment) | **Patch** /v3/organizations/{guid}/relationships/default_isolation_segment | Assign Default Isolation Segment +[**CreateOrganization**](DefaultAPI.md#CreateOrganization) | **Post** /v3/organizations | Create an Organization +[**CreateOrganizationQuota**](DefaultAPI.md#CreateOrganizationQuota) | **Post** /v3/organization_quotas | Create an organization quota +[**DeleteOrganization**](DefaultAPI.md#DeleteOrganization) | **Delete** /v3/organizations/{guid} | Delete an Organization +[**DeleteOrganizationQuota**](DefaultAPI.md#DeleteOrganizationQuota) | **Delete** /v3/organization_quotas/{guid} | Delete an organization quota +[**GetDefaultDomain**](DefaultAPI.md#GetDefaultDomain) | **Get** /v3/organizations/{guid}/domains/default | Get Default Domain +[**GetDefaultIsolationSegment**](DefaultAPI.md#GetDefaultIsolationSegment) | **Get** /v3/organizations/{guid}/relationships/default_isolation_segment | Get Default Isolation Segment +[**GetOrganization**](DefaultAPI.md#GetOrganization) | **Get** /v3/organizations/{guid} | Get an Organization +[**GetOrganizationQuota**](DefaultAPI.md#GetOrganizationQuota) | **Get** /v3/organization_quotas/{guid} | Get an organization quota +[**GetUsageSummary**](DefaultAPI.md#GetUsageSummary) | **Get** /v3/organizations/{guid}/usage_summary | Get Usage Summary +[**ListOrganizationQuotas**](DefaultAPI.md#ListOrganizationQuotas) | **Get** /v3/organization_quotas | List organization quotas +[**ListOrganizations**](DefaultAPI.md#ListOrganizations) | **Get** /v3/organizations | List Organizations +[**ListUsersForOrganization**](DefaultAPI.md#ListUsersForOrganization) | **Get** /v3/organizations/{guid}/users | List Users for an Organization +[**RootGet**](DefaultAPI.md#RootGet) | **Get** / | Global API Root +[**UpdateOrganization**](DefaultAPI.md#UpdateOrganization) | **Patch** /v3/organizations/{guid} | Update an Organization +[**UpdateOrganizationQuota**](DefaultAPI.md#UpdateOrganizationQuota) | **Patch** /v3/organization_quotas/{guid} | Update an organization quota +[**V3AdminActionsClearBuildpackCachePost**](DefaultAPI.md#V3AdminActionsClearBuildpackCachePost) | **Post** /v3/admin/actions/clear_buildpack_cache | Clear buildpack cache +[**V3AppsGet**](DefaultAPI.md#V3AppsGet) | **Get** /v3/apps | List apps +[**V3AppsGuidActionsClearBuildpackCachePost**](DefaultAPI.md#V3AppsGuidActionsClearBuildpackCachePost) | **Post** /v3/apps/{guid}/actions/clear_buildpack_cache | Clear buildpack cache for application +[**V3AppsGuidActionsRestartPost**](DefaultAPI.md#V3AppsGuidActionsRestartPost) | **Post** /v3/apps/{guid}/actions/restart | Restart an app +[**V3AppsGuidActionsStartPost**](DefaultAPI.md#V3AppsGuidActionsStartPost) | **Post** /v3/apps/{guid}/actions/start | Start an app +[**V3AppsGuidActionsStopPost**](DefaultAPI.md#V3AppsGuidActionsStopPost) | **Post** /v3/apps/{guid}/actions/stop | Stop an app +[**V3AppsGuidBuildsGet**](DefaultAPI.md#V3AppsGuidBuildsGet) | **Get** /v3/apps/{guid}/builds | List builds for an app +[**V3AppsGuidDelete**](DefaultAPI.md#V3AppsGuidDelete) | **Delete** /v3/apps/{guid} | Delete an app +[**V3AppsGuidDropletsCurrentGet**](DefaultAPI.md#V3AppsGuidDropletsCurrentGet) | **Get** /v3/apps/{guid}/droplets/current | Get current droplet +[**V3AppsGuidDropletsGet**](DefaultAPI.md#V3AppsGuidDropletsGet) | **Get** /v3/apps/{guid}/droplets | List droplets for an app +[**V3AppsGuidEnvGet**](DefaultAPI.md#V3AppsGuidEnvGet) | **Get** /v3/apps/{guid}/env | Get environment for an app +[**V3AppsGuidEnvironmentVariablesGet**](DefaultAPI.md#V3AppsGuidEnvironmentVariablesGet) | **Get** /v3/apps/{guid}/environment_variables | Get environment variables for an app +[**V3AppsGuidEnvironmentVariablesPatch**](DefaultAPI.md#V3AppsGuidEnvironmentVariablesPatch) | **Patch** /v3/apps/{guid}/environment_variables | Update environment variables for an app +[**V3AppsGuidFeaturesGet**](DefaultAPI.md#V3AppsGuidFeaturesGet) | **Get** /v3/apps/{guid}/features | List app features +[**V3AppsGuidFeaturesNameGet**](DefaultAPI.md#V3AppsGuidFeaturesNameGet) | **Get** /v3/apps/{guid}/features/{name} | Get an app feature +[**V3AppsGuidFeaturesNamePatch**](DefaultAPI.md#V3AppsGuidFeaturesNamePatch) | **Patch** /v3/apps/{guid}/features/{name} | Update an app feature +[**V3AppsGuidGet**](DefaultAPI.md#V3AppsGuidGet) | **Get** /v3/apps/{guid} | Retrieve a specific app +[**V3AppsGuidPatch**](DefaultAPI.md#V3AppsGuidPatch) | **Patch** /v3/apps/{guid} | Update an app +[**V3AppsGuidPermissionsGet**](DefaultAPI.md#V3AppsGuidPermissionsGet) | **Get** /v3/apps/{guid}/permissions | Get permissions for an app +[**V3AppsGuidProcessesGet**](DefaultAPI.md#V3AppsGuidProcessesGet) | **Get** /v3/apps/{guid}/processes | List processes for app +[**V3AppsGuidRelationshipsCurrentDropletGet**](DefaultAPI.md#V3AppsGuidRelationshipsCurrentDropletGet) | **Get** /v3/apps/{guid}/relationships/current_droplet | Get current droplet association for an app +[**V3AppsGuidRevisionsDeployedGet**](DefaultAPI.md#V3AppsGuidRevisionsDeployedGet) | **Get** /v3/apps/{guid}/revisions/deployed | List deployed revisions for an app +[**V3AppsGuidRevisionsGet**](DefaultAPI.md#V3AppsGuidRevisionsGet) | **Get** /v3/apps/{guid}/revisions | List revisions for an app +[**V3AppsGuidRoutesGet**](DefaultAPI.md#V3AppsGuidRoutesGet) | **Get** /v3/apps/{guid}/routes | Retrieve all routes for an app +[**V3AppsGuidSidecarsGet**](DefaultAPI.md#V3AppsGuidSidecarsGet) | **Get** /v3/apps/{guid}/sidecars | List sidecars for an app +[**V3AppsGuidSidecarsPost**](DefaultAPI.md#V3AppsGuidSidecarsPost) | **Post** /v3/apps/{guid}/sidecars | Create a sidecar associated with an app +[**V3AppsGuidSshEnabledGet**](DefaultAPI.md#V3AppsGuidSshEnabledGet) | **Get** /v3/apps/{guid}/ssh_enabled | Get SSH enabled for an app +[**V3AppsGuidTasksPost**](DefaultAPI.md#V3AppsGuidTasksPost) | **Post** /v3/apps/{guid}/tasks | Create a task +[**V3AppsPost**](DefaultAPI.md#V3AppsPost) | **Post** /v3/apps | Create an app +[**V3BuildpacksGet**](DefaultAPI.md#V3BuildpacksGet) | **Get** /v3/buildpacks | List buildpacks +[**V3BuildpacksGuidPatch**](DefaultAPI.md#V3BuildpacksGuidPatch) | **Patch** /v3/buildpacks/{guid} | Update a buildpack +[**V3BuildpacksGuidUploadPost**](DefaultAPI.md#V3BuildpacksGuidUploadPost) | **Post** /v3/buildpacks/{guid}/upload | Upload buildpack bits +[**V3BuildpacksPost**](DefaultAPI.md#V3BuildpacksPost) | **Post** /v3/buildpacks | Create a buildpack +[**V3BuildsGet**](DefaultAPI.md#V3BuildsGet) | **Get** /v3/builds | List builds +[**V3BuildsGuidPatch**](DefaultAPI.md#V3BuildsGuidPatch) | **Patch** /v3/builds/{guid} | Update a build +[**V3BuildsPost**](DefaultAPI.md#V3BuildsPost) | **Post** /v3/builds | Create a build +[**V3DeploymentsGet**](DefaultAPI.md#V3DeploymentsGet) | **Get** /v3/deployments | List deployments +[**V3DeploymentsGuidActionsCancelPost**](DefaultAPI.md#V3DeploymentsGuidActionsCancelPost) | **Post** /v3/deployments/{guid}/actions/cancel | Cancel a deployment +[**V3DeploymentsGuidActionsContinuePost**](DefaultAPI.md#V3DeploymentsGuidActionsContinuePost) | **Post** /v3/deployments/{guid}/actions/continue | Continue a deployment +[**V3DeploymentsGuidGet**](DefaultAPI.md#V3DeploymentsGuidGet) | **Get** /v3/deployments/{guid} | Get a deployment +[**V3DeploymentsPost**](DefaultAPI.md#V3DeploymentsPost) | **Post** /v3/deployments | Create a deployment +[**V3DropletsGet**](DefaultAPI.md#V3DropletsGet) | **Get** /v3/droplets | List droplets +[**V3DropletsGuidGet**](DefaultAPI.md#V3DropletsGuidGet) | **Get** /v3/droplets/{guid} | Get a droplet +[**V3DropletsPost**](DefaultAPI.md#V3DropletsPost) | **Post** /v3/droplets | Create a droplet +[**V3EnvironmentVariableGroupsNameGet**](DefaultAPI.md#V3EnvironmentVariableGroupsNameGet) | **Get** /v3/environment_variable_groups/{name} | Get an environment variable group +[**V3EnvironmentVariableGroupsNamePatch**](DefaultAPI.md#V3EnvironmentVariableGroupsNamePatch) | **Patch** /v3/environment_variable_groups/{name} | Update environment variable group +[**V3FeatureFlagsGet**](DefaultAPI.md#V3FeatureFlagsGet) | **Get** /v3/feature_flags | List feature flags +[**V3FeatureFlagsNameGet**](DefaultAPI.md#V3FeatureFlagsNameGet) | **Get** /v3/feature_flags/{name} | Get a feature flag +[**V3FeatureFlagsNamePatch**](DefaultAPI.md#V3FeatureFlagsNamePatch) | **Patch** /v3/feature_flags/{name} | Update a feature flag +[**V3Get**](DefaultAPI.md#V3Get) | **Get** /v3 | V3 API Root +[**V3InfoGet**](DefaultAPI.md#V3InfoGet) | **Get** /v3/info | Get platform info +[**V3InfoUsageSummaryGet**](DefaultAPI.md#V3InfoUsageSummaryGet) | **Get** /v3/info/usage_summary | Get platform usage summary +[**V3IsolationSegmentsGet**](DefaultAPI.md#V3IsolationSegmentsGet) | **Get** /v3/isolation_segments | List isolation segments +[**V3IsolationSegmentsGuidDelete**](DefaultAPI.md#V3IsolationSegmentsGuidDelete) | **Delete** /v3/isolation_segments/{guid} | Delete an isolation segment +[**V3IsolationSegmentsGuidGet**](DefaultAPI.md#V3IsolationSegmentsGuidGet) | **Get** /v3/isolation_segments/{guid} | Get an isolation segment +[**V3IsolationSegmentsGuidPatch**](DefaultAPI.md#V3IsolationSegmentsGuidPatch) | **Patch** /v3/isolation_segments/{guid} | Update an isolation segment +[**V3IsolationSegmentsGuidRelationshipsOrganizationsGet**](DefaultAPI.md#V3IsolationSegmentsGuidRelationshipsOrganizationsGet) | **Get** /v3/isolation_segments/{guid}/relationships/organizations | List organizations relationship +[**V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete**](DefaultAPI.md#V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete) | **Delete** /v3/isolation_segments/{guid}/relationships/organizations/{org_guid} | Revoke entitlement to isolation segment for an organization +[**V3IsolationSegmentsGuidRelationshipsOrganizationsPost**](DefaultAPI.md#V3IsolationSegmentsGuidRelationshipsOrganizationsPost) | **Post** /v3/isolation_segments/{guid}/relationships/organizations | Entitle organizations for an isolation segment +[**V3IsolationSegmentsGuidRelationshipsSpacesGet**](DefaultAPI.md#V3IsolationSegmentsGuidRelationshipsSpacesGet) | **Get** /v3/isolation_segments/{guid}/relationships/spaces | List spaces relationship +[**V3IsolationSegmentsPost**](DefaultAPI.md#V3IsolationSegmentsPost) | **Post** /v3/isolation_segments | Create an isolation segment +[**V3PackagesGet**](DefaultAPI.md#V3PackagesGet) | **Get** /v3/packages | List packages +[**V3PackagesGuidDelete**](DefaultAPI.md#V3PackagesGuidDelete) | **Delete** /v3/packages/{guid} | Delete a package +[**V3PackagesGuidDropletsGet**](DefaultAPI.md#V3PackagesGuidDropletsGet) | **Get** /v3/packages/{guid}/droplets | List droplets for a package +[**V3PackagesGuidGet**](DefaultAPI.md#V3PackagesGuidGet) | **Get** /v3/packages/{guid} | Get a package +[**V3PackagesGuidPatch**](DefaultAPI.md#V3PackagesGuidPatch) | **Patch** /v3/packages/{guid} | Update a package +[**V3PackagesGuidUploadPost**](DefaultAPI.md#V3PackagesGuidUploadPost) | **Post** /v3/packages/{guid}/upload | Upload package bits +[**V3PackagesPost**](DefaultAPI.md#V3PackagesPost) | **Post** /v3/packages | Create a package +[**V3ProcessesGet**](DefaultAPI.md#V3ProcessesGet) | **Get** /v3/processes | List processes +[**V3ProcessesGuidActionsScalePost**](DefaultAPI.md#V3ProcessesGuidActionsScalePost) | **Post** /v3/processes/{guid}/actions/scale | Scale a process +[**V3ProcessesGuidInstancesIndexDelete**](DefaultAPI.md#V3ProcessesGuidInstancesIndexDelete) | **Delete** /v3/processes/{guid}/instances/{index} | Terminate a process instance +[**V3ProcessesGuidPatch**](DefaultAPI.md#V3ProcessesGuidPatch) | **Patch** /v3/processes/{guid} | Update a process +[**V3ProcessesGuidSidecarsGet**](DefaultAPI.md#V3ProcessesGuidSidecarsGet) | **Get** /v3/processes/{guid}/sidecars | List sidecars for a process +[**V3ProcessesGuidStatsGet**](DefaultAPI.md#V3ProcessesGuidStatsGet) | **Get** /v3/processes/{guid}/stats | Get stats for a process +[**V3ResourceMatchesPost**](DefaultAPI.md#V3ResourceMatchesPost) | **Post** /v3/resource_matches | Create a resource match +[**V3RevisionsGuidEnvironmentVariablesGet**](DefaultAPI.md#V3RevisionsGuidEnvironmentVariablesGet) | **Get** /v3/revisions/{guid}/environment_variables | Get environment variables for a revision +[**V3RevisionsGuidPatch**](DefaultAPI.md#V3RevisionsGuidPatch) | **Patch** /v3/revisions/{guid} | Update a revision +[**V3RolesGet**](DefaultAPI.md#V3RolesGet) | **Get** /v3/roles | List roles +[**V3RolesGuidDelete**](DefaultAPI.md#V3RolesGuidDelete) | **Delete** /v3/roles/{guid} | Delete a role +[**V3RolesGuidGet**](DefaultAPI.md#V3RolesGuidGet) | **Get** /v3/roles/{guid} | Get a role +[**V3RolesPost**](DefaultAPI.md#V3RolesPost) | **Post** /v3/roles | Create a role +[**V3RoutesGet**](DefaultAPI.md#V3RoutesGet) | **Get** /v3/routes | List routes +[**V3RoutesGuidGet**](DefaultAPI.md#V3RoutesGuidGet) | **Get** /v3/routes/{guid} | Get a route +[**V3RoutesPost**](DefaultAPI.md#V3RoutesPost) | **Post** /v3/routes | Create a route +[**V3SecurityGroupsGet**](DefaultAPI.md#V3SecurityGroupsGet) | **Get** /v3/security_groups | List security groups +[**V3SecurityGroupsGuidDelete**](DefaultAPI.md#V3SecurityGroupsGuidDelete) | **Delete** /v3/security_groups/{guid} | Delete a security group +[**V3SecurityGroupsGuidGet**](DefaultAPI.md#V3SecurityGroupsGuidGet) | **Get** /v3/security_groups/{guid} | Get a security group +[**V3SecurityGroupsGuidPatch**](DefaultAPI.md#V3SecurityGroupsGuidPatch) | **Patch** /v3/security_groups/{guid} | Update a security group +[**V3SecurityGroupsPost**](DefaultAPI.md#V3SecurityGroupsPost) | **Post** /v3/security_groups | Create a security group +[**V3ServiceBrokersGet**](DefaultAPI.md#V3ServiceBrokersGet) | **Get** /v3/service_brokers | List service brokers +[**V3ServiceBrokersGuidDelete**](DefaultAPI.md#V3ServiceBrokersGuidDelete) | **Delete** /v3/service_brokers/{guid} | Delete a service broker +[**V3ServiceBrokersGuidGet**](DefaultAPI.md#V3ServiceBrokersGuidGet) | **Get** /v3/service_brokers/{guid} | Get a service broker +[**V3ServiceBrokersGuidPatch**](DefaultAPI.md#V3ServiceBrokersGuidPatch) | **Patch** /v3/service_brokers/{guid} | Update a service broker +[**V3ServiceBrokersPost**](DefaultAPI.md#V3ServiceBrokersPost) | **Post** /v3/service_brokers | Create a service broker +[**V3ServiceCredentialBindingsGuidDelete**](DefaultAPI.md#V3ServiceCredentialBindingsGuidDelete) | **Delete** /v3/service_credential_bindings/{guid} | Delete a service credential binding +[**V3ServiceCredentialBindingsGuidDetailsGet**](DefaultAPI.md#V3ServiceCredentialBindingsGuidDetailsGet) | **Get** /v3/service_credential_bindings/{guid}/details | Get a service credential binding details +[**V3ServiceCredentialBindingsGuidGet**](DefaultAPI.md#V3ServiceCredentialBindingsGuidGet) | **Get** /v3/service_credential_bindings/{guid} | Get a service credential binding +[**V3ServiceCredentialBindingsGuidParametersGet**](DefaultAPI.md#V3ServiceCredentialBindingsGuidParametersGet) | **Get** /v3/service_credential_bindings/{guid}/parameters | Get parameters for a service credential binding +[**V3ServiceCredentialBindingsGuidPatch**](DefaultAPI.md#V3ServiceCredentialBindingsGuidPatch) | **Patch** /v3/service_credential_bindings/{guid} | Update a service credential binding +[**V3ServiceCredentialBindingsPost**](DefaultAPI.md#V3ServiceCredentialBindingsPost) | **Post** /v3/service_credential_bindings | Create a service credential binding +[**V3ServiceInstancesGet**](DefaultAPI.md#V3ServiceInstancesGet) | **Get** /v3/service_instances | Retrieve service instances +[**V3ServiceInstancesGuidCredentialsGet**](DefaultAPI.md#V3ServiceInstancesGuidCredentialsGet) | **Get** /v3/service_instances/{guid}/credentials | Get credentials for a user-provided service instance +[**V3ServiceInstancesGuidPatch**](DefaultAPI.md#V3ServiceInstancesGuidPatch) | **Patch** /v3/service_instances/{guid} | Update a service instance +[**V3ServiceInstancesGuidRelationshipsSharedSpacesPost**](DefaultAPI.md#V3ServiceInstancesGuidRelationshipsSharedSpacesPost) | **Post** /v3/service_instances/{guid}/relationships/shared_spaces | Share a service instance to other spaces +[**V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete**](DefaultAPI.md#V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete) | **Delete** /v3/service_instances/{guid}/relationships/shared_spaces/{space_guid} | Unshare a service instance from another space +[**V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet**](DefaultAPI.md#V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet) | **Get** /v3/service_instances/{guid}/relationships/shared_spaces/usage_summary | Get usage summary in shared spaces +[**V3ServiceOfferingsGet**](DefaultAPI.md#V3ServiceOfferingsGet) | **Get** /v3/service_offerings | List service offerings +[**V3ServiceOfferingsGuidDelete**](DefaultAPI.md#V3ServiceOfferingsGuidDelete) | **Delete** /v3/service_offerings/{guid} | Delete a service offering +[**V3ServiceOfferingsGuidGet**](DefaultAPI.md#V3ServiceOfferingsGuidGet) | **Get** /v3/service_offerings/{guid} | Get a service offering +[**V3ServiceOfferingsGuidPatch**](DefaultAPI.md#V3ServiceOfferingsGuidPatch) | **Patch** /v3/service_offerings/{guid} | Update a service offering +[**V3ServiceOfferingsPost**](DefaultAPI.md#V3ServiceOfferingsPost) | **Post** /v3/service_offerings | Create a service offering +[**V3ServicePlansGet**](DefaultAPI.md#V3ServicePlansGet) | **Get** /v3/service_plans | List service plans +[**V3ServicePlansGuidDelete**](DefaultAPI.md#V3ServicePlansGuidDelete) | **Delete** /v3/service_plans/{guid} | Delete a service plan +[**V3ServicePlansGuidGet**](DefaultAPI.md#V3ServicePlansGuidGet) | **Get** /v3/service_plans/{guid} | Get a service plan +[**V3ServicePlansGuidPatch**](DefaultAPI.md#V3ServicePlansGuidPatch) | **Patch** /v3/service_plans/{guid} | Update a service plan +[**V3ServicePlansGuidVisibilityGet**](DefaultAPI.md#V3ServicePlansGuidVisibilityGet) | **Get** /v3/service_plans/{guid}/visibility | Get a service plan visibility +[**V3ServicePlansGuidVisibilityOrganizationGuidDelete**](DefaultAPI.md#V3ServicePlansGuidVisibilityOrganizationGuidDelete) | **Delete** /v3/service_plans/{guid}/visibility/{organization_guid} | Remove organization from a service plan visibility +[**V3ServicePlansGuidVisibilityPatch**](DefaultAPI.md#V3ServicePlansGuidVisibilityPatch) | **Patch** /v3/service_plans/{guid}/visibility | Update a service plan visibility +[**V3ServicePlansGuidVisibilityPost**](DefaultAPI.md#V3ServicePlansGuidVisibilityPost) | **Post** /v3/service_plans/{guid}/visibility | Apply a service plan visibility +[**V3ServicePlansPost**](DefaultAPI.md#V3ServicePlansPost) | **Post** /v3/service_plans | Create a service plan +[**V3ServiceRouteBindingsGet**](DefaultAPI.md#V3ServiceRouteBindingsGet) | **Get** /v3/service_route_bindings | List service route bindings +[**V3ServiceRouteBindingsGuidDelete**](DefaultAPI.md#V3ServiceRouteBindingsGuidDelete) | **Delete** /v3/service_route_bindings/{guid} | Delete a service route binding +[**V3ServiceRouteBindingsGuidGet**](DefaultAPI.md#V3ServiceRouteBindingsGuidGet) | **Get** /v3/service_route_bindings/{guid} | Get a service route binding +[**V3ServiceRouteBindingsGuidParametersGet**](DefaultAPI.md#V3ServiceRouteBindingsGuidParametersGet) | **Get** /v3/service_route_bindings/{guid}/parameters | Get parameters for a route binding +[**V3ServiceRouteBindingsGuidPatch**](DefaultAPI.md#V3ServiceRouteBindingsGuidPatch) | **Patch** /v3/service_route_bindings/{guid} | Update a service route binding +[**V3ServiceRouteBindingsPost**](DefaultAPI.md#V3ServiceRouteBindingsPost) | **Post** /v3/service_route_bindings | Create a service route binding +[**V3ServiceUsageEventsGet**](DefaultAPI.md#V3ServiceUsageEventsGet) | **Get** /v3/service_usage_events | List service usage events +[**V3ServiceUsageEventsGuidGet**](DefaultAPI.md#V3ServiceUsageEventsGuidGet) | **Get** /v3/service_usage_events/{guid} | Get a service usage event +[**V3ServiceUsageEventsPost**](DefaultAPI.md#V3ServiceUsageEventsPost) | **Post** /v3/service_usage_events | Purge and seed service usage events +[**V3SidecarsGuidDelete**](DefaultAPI.md#V3SidecarsGuidDelete) | **Delete** /v3/sidecars/{guid} | Delete a sidecar +[**V3SidecarsGuidGet**](DefaultAPI.md#V3SidecarsGuidGet) | **Get** /v3/sidecars/{guid} | Get a sidecar +[**V3SidecarsGuidPatch**](DefaultAPI.md#V3SidecarsGuidPatch) | **Patch** /v3/sidecars/{guid} | Update a sidecar +[**V3SpaceQuotasGet**](DefaultAPI.md#V3SpaceQuotasGet) | **Get** /v3/space_quotas | List space quotas +[**V3SpaceQuotasGuidDelete**](DefaultAPI.md#V3SpaceQuotasGuidDelete) | **Delete** /v3/space_quotas/{guid} | Delete a space quota +[**V3SpaceQuotasGuidGet**](DefaultAPI.md#V3SpaceQuotasGuidGet) | **Get** /v3/space_quotas/{guid} | Get a space quota +[**V3SpaceQuotasGuidPatch**](DefaultAPI.md#V3SpaceQuotasGuidPatch) | **Patch** /v3/space_quotas/{guid} | Update a space quota +[**V3SpaceQuotasPost**](DefaultAPI.md#V3SpaceQuotasPost) | **Post** /v3/space_quotas | Create a space quota +[**V3SpaceQuotasQuotaGuidRelationshipsSpacesPost**](DefaultAPI.md#V3SpaceQuotasQuotaGuidRelationshipsSpacesPost) | **Post** /v3/space_quotas/{quota_guid}/relationships/spaces | Apply a space quota to spaces +[**V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete**](DefaultAPI.md#V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete) | **Delete** /v3/space_quotas/{quota_guid}/relationships/spaces/{space_guid} | Remove a space quota from a space +[**V3SpacesGet**](DefaultAPI.md#V3SpacesGet) | **Get** /v3/spaces | List spaces +[**V3SpacesGuidDelete**](DefaultAPI.md#V3SpacesGuidDelete) | **Delete** /v3/spaces/{guid} | Delete a space +[**V3SpacesGuidFeaturesGet**](DefaultAPI.md#V3SpacesGuidFeaturesGet) | **Get** /v3/spaces/{guid}/features | List space features +[**V3SpacesGuidFeaturesNameGet**](DefaultAPI.md#V3SpacesGuidFeaturesNameGet) | **Get** /v3/spaces/{guid}/features/{name} | Get a space feature +[**V3SpacesGuidFeaturesPatch**](DefaultAPI.md#V3SpacesGuidFeaturesPatch) | **Patch** /v3/spaces/{guid}/features | Update space features +[**V3SpacesGuidGet**](DefaultAPI.md#V3SpacesGuidGet) | **Get** /v3/spaces/{guid} | Get a space +[**V3SpacesGuidPatch**](DefaultAPI.md#V3SpacesGuidPatch) | **Patch** /v3/spaces/{guid} | Update a space +[**V3SpacesGuidRelationshipsIsolationSegmentGet**](DefaultAPI.md#V3SpacesGuidRelationshipsIsolationSegmentGet) | **Get** /v3/spaces/{guid}/relationships/isolation_segment | Get assigned isolation segment +[**V3SpacesGuidRelationshipsIsolationSegmentPatch**](DefaultAPI.md#V3SpacesGuidRelationshipsIsolationSegmentPatch) | **Patch** /v3/spaces/{guid}/relationships/isolation_segment | Manage isolation segment +[**V3SpacesGuidUsersGet**](DefaultAPI.md#V3SpacesGuidUsersGet) | **Get** /v3/spaces/{guid}/users | List users for a space +[**V3SpacesPost**](DefaultAPI.md#V3SpacesPost) | **Post** /v3/spaces | Create a space +[**V3StacksGet**](DefaultAPI.md#V3StacksGet) | **Get** /v3/stacks | List all stacks +[**V3StacksGuidAppsGet**](DefaultAPI.md#V3StacksGuidAppsGet) | **Get** /v3/stacks/{guid}/apps | List apps on a stack +[**V3StacksGuidDelete**](DefaultAPI.md#V3StacksGuidDelete) | **Delete** /v3/stacks/{guid} | Delete a stack +[**V3StacksGuidGet**](DefaultAPI.md#V3StacksGuidGet) | **Get** /v3/stacks/{guid} | Get a stack by GUID +[**V3StacksGuidPatch**](DefaultAPI.md#V3StacksGuidPatch) | **Patch** /v3/stacks/{guid} | Update a stack +[**V3StacksPost**](DefaultAPI.md#V3StacksPost) | **Post** /v3/stacks | Create a stack +[**V3TasksGet**](DefaultAPI.md#V3TasksGet) | **Get** /v3/tasks | List all tasks +[**V3TasksGuidGet**](DefaultAPI.md#V3TasksGuidGet) | **Get** /v3/tasks/{guid} | Get a task +[**V3TasksGuidPatch**](DefaultAPI.md#V3TasksGuidPatch) | **Patch** /v3/tasks/{guid} | Update a task +[**V3TasksGuidPost**](DefaultAPI.md#V3TasksGuidPost) | **Post** /v3/tasks/{guid} | Cancel a task +[**V3UsersGet**](DefaultAPI.md#V3UsersGet) | **Get** /v3/users | List users +[**V3UsersGuidDelete**](DefaultAPI.md#V3UsersGuidDelete) | **Delete** /v3/users/{guid} | Delete a user +[**V3UsersGuidGet**](DefaultAPI.md#V3UsersGuidGet) | **Get** /v3/users/{guid} | Get a user +[**V3UsersGuidPatch**](DefaultAPI.md#V3UsersGuidPatch) | **Patch** /v3/users/{guid} | Update a user +[**V3UsersPost**](DefaultAPI.md#V3UsersPost) | **Post** /v3/users | Create a user + + + +## ApplyOrganizationQuotaToOrganizations + +> ApplyOrganizationQuotaToOrganizations201Response ApplyOrganizationQuotaToOrganizations(ctx, quotaGuid).ApplyOrganizationQuotaToOrganizationsRequest(applyOrganizationQuotaToOrganizationsRequest).Execute() + +Apply an organization quota to organizations + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + quotaGuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + applyOrganizationQuotaToOrganizationsRequest := *openapiclient.NewApplyOrganizationQuotaToOrganizationsRequest() // ApplyOrganizationQuotaToOrganizationsRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ApplyOrganizationQuotaToOrganizations(context.Background(), quotaGuid).ApplyOrganizationQuotaToOrganizationsRequest(applyOrganizationQuotaToOrganizationsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApplyOrganizationQuotaToOrganizations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApplyOrganizationQuotaToOrganizations`: ApplyOrganizationQuotaToOrganizations201Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApplyOrganizationQuotaToOrganizations`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**quotaGuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApplyOrganizationQuotaToOrganizationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **applyOrganizationQuotaToOrganizationsRequest** | [**ApplyOrganizationQuotaToOrganizationsRequest**](ApplyOrganizationQuotaToOrganizationsRequest.md) | | + +### Return type + +[**ApplyOrganizationQuotaToOrganizations201Response**](ApplyOrganizationQuotaToOrganizations201Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AssignDefaultIsolationSegment + +> map[string]interface{} AssignDefaultIsolationSegment(ctx, guid).V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace).Execute() + +Assign Default Isolation Segment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3AppsPostRequestRelationshipsSpace := *openapiclient.NewV3AppsPostRequestRelationshipsSpace() // V3AppsPostRequestRelationshipsSpace | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.AssignDefaultIsolationSegment(context.Background(), guid).V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.AssignDefaultIsolationSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AssignDefaultIsolationSegment`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.AssignDefaultIsolationSegment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAssignDefaultIsolationSegmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsPostRequestRelationshipsSpace** | [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrganization + +> Organization CreateOrganization(ctx).CreateOrganizationRequest(createOrganizationRequest).Execute() + +Create an Organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + createOrganizationRequest := *openapiclient.NewCreateOrganizationRequest("Name_example") // CreateOrganizationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.CreateOrganization(context.Background()).CreateOrganizationRequest(createOrganizationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOrganization`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createOrganizationRequest** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md) | | + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrganizationQuota + +> OrganizationQuota CreateOrganizationQuota(ctx).CreateOrganizationQuotaRequest(createOrganizationQuotaRequest).Execute() + +Create an organization quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + createOrganizationQuotaRequest := *openapiclient.NewCreateOrganizationQuotaRequest() // CreateOrganizationQuotaRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.CreateOrganizationQuota(context.Background()).CreateOrganizationQuotaRequest(createOrganizationQuotaRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.CreateOrganizationQuota``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOrganizationQuota`: OrganizationQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.CreateOrganizationQuota`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrganizationQuotaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createOrganizationQuotaRequest** | [**CreateOrganizationQuotaRequest**](CreateOrganizationQuotaRequest.md) | | + +### Return type + +[**OrganizationQuota**](OrganizationQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteOrganization + +> map[string]interface{} DeleteOrganization(ctx, guid).Execute() + +Delete an Organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.DeleteOrganization(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteOrganization`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteOrganizationQuota + +> DeleteOrganizationQuota202Response DeleteOrganizationQuota(ctx, guid).Execute() + +Delete an organization quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.DeleteOrganizationQuota(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.DeleteOrganizationQuota``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteOrganizationQuota`: DeleteOrganizationQuota202Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.DeleteOrganizationQuota`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteOrganizationQuotaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DeleteOrganizationQuota202Response**](DeleteOrganizationQuota202Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDefaultDomain + +> map[string]interface{} GetDefaultDomain(ctx, guid).Execute() + +Get Default Domain + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.GetDefaultDomain(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDefaultDomain``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultDomain`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDefaultDomain`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDefaultDomainRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetDefaultIsolationSegment + +> map[string]interface{} GetDefaultIsolationSegment(ctx, guid).Execute() + +Get Default Isolation Segment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.GetDefaultIsolationSegment(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetDefaultIsolationSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIsolationSegment`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetDefaultIsolationSegment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDefaultIsolationSegmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrganization + +> Organization GetOrganization(ctx, guid).Execute() + +Get an Organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.GetOrganization(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrganization`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrganizationQuota + +> OrganizationQuota GetOrganizationQuota(ctx, guid).Execute() + +Get an organization quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.GetOrganizationQuota(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetOrganizationQuota``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrganizationQuota`: OrganizationQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetOrganizationQuota`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrganizationQuotaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**OrganizationQuota**](OrganizationQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUsageSummary + +> map[string]interface{} GetUsageSummary(ctx, guid).Execute() + +Get Usage Summary + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.GetUsageSummary(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.GetUsageSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsageSummary`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.GetUsageSummary`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUsageSummaryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListOrganizationQuotas + +> ListOrganizationQuotas200Response ListOrganizationQuotas(ctx).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List organization quotas + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | (optional) + names := []string{"Inner_example"} // []string | (optional) + organizationGuids := []string{"Inner_example"} // []string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + createdAts := time.Now() // time.Time | (optional) + updatedAts := time.Now() // time.Time | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ListOrganizationQuotas(context.Background()).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ListOrganizationQuotas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOrganizationQuotas`: ListOrganizationQuotas200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ListOrganizationQuotas`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListOrganizationQuotasRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | | + **names** | **[]string** | | + **organizationGuids** | **[]string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **createdAts** | **time.Time** | | + **updatedAts** | **time.Time** | | + +### Return type + +[**ListOrganizationQuotas200Response**](ListOrganizationQuotas200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListOrganizations + +> []Organization ListOrganizations(ctx).Names(names).Guids(guids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List Organizations + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := "names_example" // string | (optional) + guids := "guids_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ListOrganizations(context.Background()).Names(names).Guids(guids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ListOrganizations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOrganizations`: []Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ListOrganizations`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListOrganizationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **string** | | + **guids** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**[]Organization**](Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListUsersForOrganization + +> []User ListUsersForOrganization(ctx, guid).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List Users for an Organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + guids := "guids_example" // string | (optional) + usernames := "usernames_example" // string | (optional) + partialUsernames := "partialUsernames_example" // string | (optional) + origins := "origins_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.ListUsersForOrganization(context.Background(), guid).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ListUsersForOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListUsersForOrganization`: []User + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ListUsersForOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListUsersForOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **guids** | **string** | | + **usernames** | **string** | | + **partialUsernames** | **string** | | + **origins** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**[]User**](User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RootGet + +> Get200Response RootGet(ctx).Execute() + +Global API Root + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.RootGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.RootGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RootGet`: Get200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.RootGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiRootGetRequest struct via the builder pattern + + +### Return type + +[**Get200Response**](Get200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateOrganization + +> Organization UpdateOrganization(ctx, guid).UpdateOrganizationRequest(updateOrganizationRequest).Execute() + +Update an Organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + updateOrganizationRequest := *openapiclient.NewUpdateOrganizationRequest() // UpdateOrganizationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.UpdateOrganization(context.Background(), guid).UpdateOrganizationRequest(updateOrganizationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateOrganization`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateOrganizationRequest** | [**UpdateOrganizationRequest**](UpdateOrganizationRequest.md) | | + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateOrganizationQuota + +> OrganizationQuota UpdateOrganizationQuota(ctx, guid).UpdateOrganizationQuotaRequest(updateOrganizationQuotaRequest).Execute() + +Update an organization quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + updateOrganizationQuotaRequest := *openapiclient.NewUpdateOrganizationQuotaRequest() // UpdateOrganizationQuotaRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.UpdateOrganizationQuota(context.Background(), guid).UpdateOrganizationQuotaRequest(updateOrganizationQuotaRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateOrganizationQuota``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateOrganizationQuota`: OrganizationQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.UpdateOrganizationQuota`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateOrganizationQuotaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateOrganizationQuotaRequest** | [**UpdateOrganizationQuotaRequest**](UpdateOrganizationQuotaRequest.md) | | + +### Return type + +[**OrganizationQuota**](OrganizationQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AdminActionsClearBuildpackCachePost + +> V3AdminActionsClearBuildpackCachePost(ctx).Execute() + +Clear buildpack cache + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AdminActionsClearBuildpackCachePost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AdminActionsClearBuildpackCachePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AdminActionsClearBuildpackCachePostRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGet + +> App V3AppsGet(ctx).Page(page).PerPage(perPage).OrderBy(orderBy).Names(names).Guids(guids).OrganizationGuids(organizationGuids).SpaceGuids(spaceGuids).Stacks(stacks).Include(include).LifecycleType(lifecycleType).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List apps + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + page := int32(56) // int32 | Page number for pagination. (optional) + perPage := int32(56) // int32 | Number of results per page. (optional) + orderBy := "orderBy_example" // string | Field by which to order results. (optional) + names := "names_example" // string | Filter results by app names. (optional) + guids := "guids_example" // string | Filter results by app GUIDs. (optional) + organizationGuids := "organizationGuids_example" // string | Filter results by organization GUIDs. (optional) + spaceGuids := "spaceGuids_example" // string | Filter results by space GUIDs. (optional) + stacks := "stacks_example" // string | Filter results by stack names. (optional) + include := "include_example" // string | Include related resources in the response. (optional) + lifecycleType := "lifecycleType_example" // string | Filter results by lifecycle type. (optional) + labelSelector := "labelSelector_example" // string | Filter results by label selector. (optional) + createdAts := "createdAts_example" // string | Filter results by creation timestamps. (optional) + updatedAts := "updatedAts_example" // string | Filter results by update timestamps. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGet(context.Background()).Page(page).PerPage(perPage).OrderBy(orderBy).Names(names).Guids(guids).OrganizationGuids(organizationGuids).SpaceGuids(spaceGuids).Stacks(stacks).Include(include).LifecycleType(lifecycleType).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGet`: App + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number for pagination. | + **perPage** | **int32** | Number of results per page. | + **orderBy** | **string** | Field by which to order results. | + **names** | **string** | Filter results by app names. | + **guids** | **string** | Filter results by app GUIDs. | + **organizationGuids** | **string** | Filter results by organization GUIDs. | + **spaceGuids** | **string** | Filter results by space GUIDs. | + **stacks** | **string** | Filter results by stack names. | + **include** | **string** | Include related resources in the response. | + **lifecycleType** | **string** | Filter results by lifecycle type. | + **labelSelector** | **string** | Filter results by label selector. | + **createdAts** | **string** | Filter results by creation timestamps. | + **updatedAts** | **string** | Filter results by update timestamps. | + +### Return type + +[**App**](App.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidActionsClearBuildpackCachePost + +> V3AppsGuidActionsClearBuildpackCachePost(ctx, guid).Execute() + +Clear buildpack cache for application + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidActionsClearBuildpackCachePost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidActionsClearBuildpackCachePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidActionsClearBuildpackCachePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidActionsRestartPost + +> V3AppsGuidActionsRestartPost200Response V3AppsGuidActionsRestartPost(ctx, guid).Execute() + +Restart an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidActionsRestartPost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidActionsRestartPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidActionsRestartPost`: V3AppsGuidActionsRestartPost200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidActionsRestartPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidActionsRestartPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidActionsRestartPost200Response**](V3AppsGuidActionsRestartPost200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidActionsStartPost + +> V3AppsGuidActionsRestartPost200Response V3AppsGuidActionsStartPost(ctx, guid).Execute() + +Start an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidActionsStartPost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidActionsStartPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidActionsStartPost`: V3AppsGuidActionsRestartPost200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidActionsStartPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidActionsStartPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidActionsRestartPost200Response**](V3AppsGuidActionsRestartPost200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidActionsStopPost + +> V3AppsGuidActionsRestartPost200Response V3AppsGuidActionsStopPost(ctx, guid).Execute() + +Stop an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidActionsStopPost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidActionsStopPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidActionsStopPost`: V3AppsGuidActionsRestartPost200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidActionsStopPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidActionsStopPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidActionsRestartPost200Response**](V3AppsGuidActionsRestartPost200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidBuildsGet + +> V3AppsGuidBuildsGet(ctx, guid).Execute() + +List builds for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidBuildsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidBuildsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidBuildsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidDelete + +> V3AppsGuidDelete(ctx, guid).Execute() + +Delete an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidDropletsCurrentGet + +> V3AppsGuidDropletsCurrentGet200Response V3AppsGuidDropletsCurrentGet(ctx, guid).Execute() + +Get current droplet + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidDropletsCurrentGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidDropletsCurrentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidDropletsCurrentGet`: V3AppsGuidDropletsCurrentGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidDropletsCurrentGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidDropletsCurrentGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidDropletsCurrentGet200Response**](V3AppsGuidDropletsCurrentGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidDropletsGet + +> V3AppsGuidDropletsGet200Response V3AppsGuidDropletsGet(ctx, guid).Guids(guids).States(states).Current(current).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + +List droplets for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The guid of the app + guids := []string{"Inner_example"} // []string | Comma-delimited list of droplet guids to filter by (optional) + states := []string{"Inner_example"} // []string | Comma-delimited list of droplet states to filter by (optional) + current := true // bool | If true, only include the droplet currently assigned to the app (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidDropletsGet(context.Background(), guid).Guids(guids).States(states).Current(current).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidDropletsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidDropletsGet`: V3AppsGuidDropletsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidDropletsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the app | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidDropletsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **guids** | **[]string** | Comma-delimited list of droplet guids to filter by | + **states** | **[]string** | Comma-delimited list of droplet states to filter by | + **current** | **bool** | If true, only include the droplet currently assigned to the app | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + +### Return type + +[**V3AppsGuidDropletsGet200Response**](V3AppsGuidDropletsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidEnvGet + +> V3AppsGuidEnvGet200Response V3AppsGuidEnvGet(ctx, guid).Execute() + +Get environment for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidEnvGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidEnvGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidEnvGet`: V3AppsGuidEnvGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidEnvGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidEnvGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidEnvGet200Response**](V3AppsGuidEnvGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidEnvironmentVariablesGet + +> V3AppsGuidEnvironmentVariablesGet200Response V3AppsGuidEnvironmentVariablesGet(ctx, guid).Execute() + +Get environment variables for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidEnvironmentVariablesGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidEnvironmentVariablesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidEnvironmentVariablesGet`: V3AppsGuidEnvironmentVariablesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidEnvironmentVariablesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidEnvironmentVariablesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidEnvironmentVariablesGet200Response**](V3AppsGuidEnvironmentVariablesGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidEnvironmentVariablesPatch + +> V3AppsGuidEnvironmentVariablesGet200Response V3AppsGuidEnvironmentVariablesPatch(ctx, guid).V3AppsGuidEnvironmentVariablesPatchRequest(v3AppsGuidEnvironmentVariablesPatchRequest).Execute() + +Update environment variables for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3AppsGuidEnvironmentVariablesPatchRequest := *openapiclient.NewV3AppsGuidEnvironmentVariablesPatchRequest() // V3AppsGuidEnvironmentVariablesPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidEnvironmentVariablesPatch(context.Background(), guid).V3AppsGuidEnvironmentVariablesPatchRequest(v3AppsGuidEnvironmentVariablesPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidEnvironmentVariablesPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidEnvironmentVariablesPatch`: V3AppsGuidEnvironmentVariablesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidEnvironmentVariablesPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidEnvironmentVariablesPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsGuidEnvironmentVariablesPatchRequest** | [**V3AppsGuidEnvironmentVariablesPatchRequest**](V3AppsGuidEnvironmentVariablesPatchRequest.md) | | + +### Return type + +[**V3AppsGuidEnvironmentVariablesGet200Response**](V3AppsGuidEnvironmentVariablesGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidFeaturesGet + +> V3AppsGuidFeaturesGet(ctx, guid).Execute() + +List app features + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidFeaturesGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidFeaturesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidFeaturesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidFeaturesNameGet + +> V3AppsGuidFeaturesNameGet(ctx, guid, name).Execute() + +Get an app feature + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + name := "name_example" // string | The name of the feature. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidFeaturesNameGet(context.Background(), guid, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidFeaturesNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | +**name** | **string** | The name of the feature. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidFeaturesNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidFeaturesNamePatch + +> V3AppsGuidFeaturesNamePatch(ctx, guid, name).V3AppsGuidFeaturesNamePatchRequest(v3AppsGuidFeaturesNamePatchRequest).Execute() + +Update an app feature + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + name := "name_example" // string | The name of the feature. + v3AppsGuidFeaturesNamePatchRequest := *openapiclient.NewV3AppsGuidFeaturesNamePatchRequest() // V3AppsGuidFeaturesNamePatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3AppsGuidFeaturesNamePatch(context.Background(), guid, name).V3AppsGuidFeaturesNamePatchRequest(v3AppsGuidFeaturesNamePatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidFeaturesNamePatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | +**name** | **string** | The name of the feature. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidFeaturesNamePatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **v3AppsGuidFeaturesNamePatchRequest** | [**V3AppsGuidFeaturesNamePatchRequest**](V3AppsGuidFeaturesNamePatchRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidGet + +> App V3AppsGuidGet(ctx, guid).Include(include).Execute() + +Retrieve a specific app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + include := []string{"Include_example"} // []string | Include related resources in the response; valid values are space and space.organization. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidGet(context.Background(), guid).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidGet`: App + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | **[]string** | Include related resources in the response; valid values are space and space.organization. | + +### Return type + +[**App**](App.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidPatch + +> App V3AppsGuidPatch(ctx, guid).V3AppsGuidPatchRequest(v3AppsGuidPatchRequest).Execute() + +Update an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the app. + v3AppsGuidPatchRequest := *openapiclient.NewV3AppsGuidPatchRequest() // V3AppsGuidPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidPatch(context.Background(), guid).V3AppsGuidPatchRequest(v3AppsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidPatch`: App + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the app. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsGuidPatchRequest** | [**V3AppsGuidPatchRequest**](V3AppsGuidPatchRequest.md) | | + +### Return type + +[**App**](App.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidPermissionsGet + +> V3AppsGuidPermissionsGet200Response V3AppsGuidPermissionsGet(ctx, guid).Execute() + +Get permissions for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidPermissionsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidPermissionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidPermissionsGet`: V3AppsGuidPermissionsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidPermissionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidPermissionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidPermissionsGet200Response**](V3AppsGuidPermissionsGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidProcessesGet + +> ProcessList V3AppsGuidProcessesGet(ctx, guid).Guids(guids).Types(types).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List processes for app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + guids := "guids_example" // string | (optional) + types := "types_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidProcessesGet(context.Background(), guid).Guids(guids).Types(types).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidProcessesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidProcessesGet`: ProcessList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidProcessesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidProcessesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **guids** | **string** | | + **types** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**ProcessList**](ProcessList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidRelationshipsCurrentDropletGet + +> V3AppsGuidRelationshipsCurrentDropletGet200Response V3AppsGuidRelationshipsCurrentDropletGet(ctx, guid).Execute() + +Get current droplet association for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidRelationshipsCurrentDropletGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidRelationshipsCurrentDropletGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidRelationshipsCurrentDropletGet`: V3AppsGuidRelationshipsCurrentDropletGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidRelationshipsCurrentDropletGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidRelationshipsCurrentDropletGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidRelationshipsCurrentDropletGet200Response**](V3AppsGuidRelationshipsCurrentDropletGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidRevisionsDeployedGet + +> RevisionsList V3AppsGuidRevisionsDeployedGet(ctx, guid).Page(page).PerPage(perPage).OrderBy(orderBy).Execute() + +List deployed revisions for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the app + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidRevisionsDeployedGet(context.Background(), guid).Page(page).PerPage(perPage).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidRevisionsDeployedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidRevisionsDeployedGet`: RevisionsList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidRevisionsDeployedGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the app | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidRevisionsDeployedGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. | + +### Return type + +[**RevisionsList**](RevisionsList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidRevisionsGet + +> RevisionsList V3AppsGuidRevisionsGet(ctx, guid).Versions(versions).LabelSelector(labelSelector).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List revisions for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the app + versions := []string{"Inner_example"} // []string | Comma-delimited list of revision versions to filter by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by; supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by; supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidRevisionsGet(context.Background(), guid).Versions(versions).LabelSelector(labelSelector).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidRevisionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidRevisionsGet`: RevisionsList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidRevisionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the app | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidRevisionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **versions** | **[]string** | Comma-delimited list of revision versions to filter by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. | + **createdAts** | **string** | Timestamp to filter by; supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by; supports filtering with relational operators | + +### Return type + +[**RevisionsList**](RevisionsList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidRoutesGet + +> RouteList V3AppsGuidRoutesGet(ctx, guid).DomainGuids(domainGuids).Hosts(hosts).OrganizationGuids(organizationGuids).Paths(paths).Ports(ports).SpaceGuids(spaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + +Retrieve all routes for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The app GUID + domainGuids := []string{"Inner_example"} // []string | Comma-delimited list of domain guids to filter by (optional) + hosts := []string{"Inner_example"} // []string | Comma-delimited list of hostnames to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + paths := []string{"Inner_example"} // []string | Comma-delimited list of paths to filter by (e.g. /path1,/path2) (optional) + ports := []int32{int32(123)} // []int32 | Comma-delimited list of ports to filter by (e.g. 3306,5432) (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidRoutesGet(context.Background(), guid).DomainGuids(domainGuids).Hosts(hosts).OrganizationGuids(organizationGuids).Paths(paths).Ports(ports).SpaceGuids(spaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidRoutesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidRoutesGet`: RouteList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidRoutesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The app GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidRoutesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **domainGuids** | **[]string** | Comma-delimited list of domain guids to filter by | + **hosts** | **[]string** | Comma-delimited list of hostnames to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **paths** | **[]string** | Comma-delimited list of paths to filter by (e.g. /path1,/path2) | + **ports** | **[]int32** | Comma-delimited list of ports to filter by (e.g. 3306,5432) | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + +### Return type + +[**RouteList**](RouteList.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidSidecarsGet + +> V3AppsGuidSidecarsGet200Response V3AppsGuidSidecarsGet(ctx, guid).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List sidecars for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidSidecarsGet(context.Background(), guid).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidSidecarsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidSidecarsGet`: V3AppsGuidSidecarsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidSidecarsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidSidecarsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3AppsGuidSidecarsGet200Response**](V3AppsGuidSidecarsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidSidecarsPost + +> Sidecar V3AppsGuidSidecarsPost(ctx, guid).V3AppsGuidSidecarsPostRequest(v3AppsGuidSidecarsPostRequest).Execute() + +Create a sidecar associated with an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3AppsGuidSidecarsPostRequest := *openapiclient.NewV3AppsGuidSidecarsPostRequest("Command_example", "Name_example", []string{"ProcessTypes_example"}) // V3AppsGuidSidecarsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidSidecarsPost(context.Background(), guid).V3AppsGuidSidecarsPostRequest(v3AppsGuidSidecarsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidSidecarsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidSidecarsPost`: Sidecar + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidSidecarsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidSidecarsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsGuidSidecarsPostRequest** | [**V3AppsGuidSidecarsPostRequest**](V3AppsGuidSidecarsPostRequest.md) | | + +### Return type + +[**Sidecar**](Sidecar.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidSshEnabledGet + +> V3AppsGuidSshEnabledGet200Response V3AppsGuidSshEnabledGet(ctx, guid).Execute() + +Get SSH enabled for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidSshEnabledGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidSshEnabledGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidSshEnabledGet`: V3AppsGuidSshEnabledGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidSshEnabledGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidSshEnabledGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsGuidSshEnabledGet200Response**](V3AppsGuidSshEnabledGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsGuidTasksPost + +> Task V3AppsGuidTasksPost(ctx, guid).V3AppsGuidTasksPostRequest(v3AppsGuidTasksPostRequest).Execute() + +Create a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3AppsGuidTasksPostRequest := *openapiclient.NewV3AppsGuidTasksPostRequest() // V3AppsGuidTasksPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsGuidTasksPost(context.Background(), guid).V3AppsGuidTasksPostRequest(v3AppsGuidTasksPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsGuidTasksPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsGuidTasksPost`: Task + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsGuidTasksPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsGuidTasksPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsGuidTasksPostRequest** | [**V3AppsGuidTasksPostRequest**](V3AppsGuidTasksPostRequest.md) | | + +### Return type + +[**Task**](Task.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3AppsPost + +> App V3AppsPost(ctx).V3AppsPostRequest(v3AppsPostRequest).Execute() + +Create an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3AppsPostRequest := *openapiclient.NewV3AppsPostRequest("Name_example", "SpaceGuid_example") // V3AppsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3AppsPost(context.Background()).V3AppsPostRequest(v3AppsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3AppsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3AppsPost`: App + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3AppsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3AppsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3AppsPostRequest** | [**V3AppsPostRequest**](V3AppsPostRequest.md) | | + +### Return type + +[**App**](App.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildpacksGet + +> V3BuildpacksGet(ctx).Execute() + +List buildpacks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildpacksGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildpacksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildpacksGetRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildpacksGuidPatch + +> V3BuildpacksGuidPatch(ctx, guid).Body(body).Execute() + +Update a buildpack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the buildpack. + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildpacksGuidPatch(context.Background(), guid).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildpacksGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the buildpack. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildpacksGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildpacksGuidUploadPost + +> V3BuildpacksGuidUploadPost(ctx, guid).Bits(bits).Execute() + +Upload buildpack bits + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the buildpack. + bits := os.NewFile(1234, "some_file") // *os.File | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildpacksGuidUploadPost(context.Background(), guid).Bits(bits).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildpacksGuidUploadPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the buildpack. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildpacksGuidUploadPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bits** | ***os.File** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildpacksPost + +> V3BuildpacksPost(ctx).Body(body).Execute() + +Create a buildpack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildpacksPost(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildpacksPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildpacksPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildsGet + +> V3BuildsGet(ctx).Execute() + +List builds + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildsGetRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildsGuidPatch + +> V3BuildsGuidPatch(ctx, guid).Body(body).Execute() + +Update a build + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the build. + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildsGuidPatch(context.Background(), guid).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the build. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3BuildsPost + +> V3BuildsPost(ctx).Body(body).Execute() + +Create a build + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3BuildsPost(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3BuildsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3BuildsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DeploymentsGet + +> V3DeploymentsGet(ctx).Execute() + +List deployments + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3DeploymentsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DeploymentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DeploymentsGetRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DeploymentsGuidActionsCancelPost + +> V3DeploymentsGuidActionsCancelPost(ctx, guid).Execute() + +Cancel a deployment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the deployment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3DeploymentsGuidActionsCancelPost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DeploymentsGuidActionsCancelPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DeploymentsGuidActionsCancelPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DeploymentsGuidActionsContinuePost + +> V3DeploymentsGuidActionsContinuePost(ctx, guid).Execute() + +Continue a deployment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the deployment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3DeploymentsGuidActionsContinuePost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DeploymentsGuidActionsContinuePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DeploymentsGuidActionsContinuePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DeploymentsGuidGet + +> V3DeploymentsGuidGet(ctx, guid).Execute() + +Get a deployment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The GUID of the deployment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3DeploymentsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DeploymentsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The GUID of the deployment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DeploymentsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DeploymentsPost + +> V3DeploymentsPost(ctx).Body(body).Execute() + +Create a deployment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3DeploymentsPost(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DeploymentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DeploymentsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DropletsGet + +> V3AppsGuidDropletsGet200Response V3DropletsGet(ctx).Guids(guids).States(states).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List droplets + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of droplet guids to filter by (optional) + states := []string{"Inner_example"} // []string | Comma-delimited list of droplet states to filter by (optional) + appGuids := []string{"Inner_example"} // []string | Comma-delimited list of app guids to filter by (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := time.Now() // time.Time | Timestamp to filter by (optional) + updatedAts := time.Now() // time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3DropletsGet(context.Background()).Guids(guids).States(states).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DropletsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DropletsGet`: V3AppsGuidDropletsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3DropletsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DropletsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of droplet guids to filter by | + **states** | **[]string** | Comma-delimited list of droplet states to filter by | + **appGuids** | **[]string** | Comma-delimited list of app guids to filter by | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | **time.Time** | Timestamp to filter by | + **updatedAts** | **time.Time** | Timestamp to filter by | + +### Return type + +[**V3AppsGuidDropletsGet200Response**](V3AppsGuidDropletsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DropletsGuidGet + +> Droplet V3DropletsGuidGet(ctx, guid).Execute() + +Get a droplet + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The guid of the droplet + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3DropletsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DropletsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DropletsGuidGet`: Droplet + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3DropletsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the droplet | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DropletsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Droplet**](Droplet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DropletsPost + +> Droplet V3DropletsPost(ctx).V3DropletsPostRequest(v3DropletsPostRequest).Execute() + +Create a droplet + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3DropletsPostRequest := *openapiclient.NewV3DropletsPostRequest(*openapiclient.NewV3DropletsPostRequestRelationships()) // V3DropletsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3DropletsPost(context.Background()).V3DropletsPostRequest(v3DropletsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3DropletsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DropletsPost`: Droplet + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3DropletsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DropletsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3DropletsPostRequest** | [**V3DropletsPostRequest**](V3DropletsPostRequest.md) | | + +### Return type + +[**Droplet**](Droplet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3EnvironmentVariableGroupsNameGet + +> EnvironmentVariableGroup V3EnvironmentVariableGroupsNameGet(ctx, name).Execute() + +Get an environment variable group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + name := "name_example" // string | The name of the environment variable group (running or staging) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3EnvironmentVariableGroupsNameGet(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3EnvironmentVariableGroupsNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3EnvironmentVariableGroupsNameGet`: EnvironmentVariableGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3EnvironmentVariableGroupsNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The name of the environment variable group (running or staging) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3EnvironmentVariableGroupsNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EnvironmentVariableGroup**](EnvironmentVariableGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3EnvironmentVariableGroupsNamePatch + +> EnvironmentVariableGroup V3EnvironmentVariableGroupsNamePatch(ctx, name).V3EnvironmentVariableGroupsNamePatchRequest(v3EnvironmentVariableGroupsNamePatchRequest).Execute() + +Update environment variable group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + name := "name_example" // string | The name of the environment variable group (running or staging) + v3EnvironmentVariableGroupsNamePatchRequest := *openapiclient.NewV3EnvironmentVariableGroupsNamePatchRequest() // V3EnvironmentVariableGroupsNamePatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3EnvironmentVariableGroupsNamePatch(context.Background(), name).V3EnvironmentVariableGroupsNamePatchRequest(v3EnvironmentVariableGroupsNamePatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3EnvironmentVariableGroupsNamePatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3EnvironmentVariableGroupsNamePatch`: EnvironmentVariableGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3EnvironmentVariableGroupsNamePatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The name of the environment variable group (running or staging) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3EnvironmentVariableGroupsNamePatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3EnvironmentVariableGroupsNamePatchRequest** | [**V3EnvironmentVariableGroupsNamePatchRequest**](V3EnvironmentVariableGroupsNamePatchRequest.md) | | + +### Return type + +[**EnvironmentVariableGroup**](EnvironmentVariableGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3FeatureFlagsGet + +> V3FeatureFlagsGet200Response V3FeatureFlagsGet(ctx).Page(page).PerPage(perPage).OrderBy(orderBy).UpdatedAts(updatedAts).Execute() + +List feature flags + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to name ascending; prepend with - to sort descending. (optional) + updatedAts := time.Now() // time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3FeatureFlagsGet(context.Background()).Page(page).PerPage(perPage).OrderBy(orderBy).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3FeatureFlagsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3FeatureFlagsGet`: V3FeatureFlagsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3FeatureFlagsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3FeatureFlagsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by. Defaults to name ascending; prepend with - to sort descending. | + **updatedAts** | **time.Time** | Timestamp to filter by | + +### Return type + +[**V3FeatureFlagsGet200Response**](V3FeatureFlagsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3FeatureFlagsNameGet + +> FeatureFlag V3FeatureFlagsNameGet(ctx, name).Execute() + +Get a feature flag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + name := "name_example" // string | The name of the feature flag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3FeatureFlagsNameGet(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3FeatureFlagsNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3FeatureFlagsNameGet`: FeatureFlag + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3FeatureFlagsNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The name of the feature flag | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3FeatureFlagsNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**FeatureFlag**](FeatureFlag.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3FeatureFlagsNamePatch + +> FeatureFlag V3FeatureFlagsNamePatch(ctx, name).V3FeatureFlagsNamePatchRequest(v3FeatureFlagsNamePatchRequest).Execute() + +Update a feature flag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + name := "name_example" // string | The name of the feature flag + v3FeatureFlagsNamePatchRequest := *openapiclient.NewV3FeatureFlagsNamePatchRequest() // V3FeatureFlagsNamePatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3FeatureFlagsNamePatch(context.Background(), name).V3FeatureFlagsNamePatchRequest(v3FeatureFlagsNamePatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3FeatureFlagsNamePatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3FeatureFlagsNamePatch`: FeatureFlag + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3FeatureFlagsNamePatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The name of the feature flag | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3FeatureFlagsNamePatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3FeatureFlagsNamePatchRequest** | [**V3FeatureFlagsNamePatchRequest**](V3FeatureFlagsNamePatchRequest.md) | | + +### Return type + +[**FeatureFlag**](FeatureFlag.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3Get + +> V3Get200Response V3Get(ctx).Execute() + +V3 API Root + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3Get(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3Get``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3Get`: V3Get200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3Get`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3GetRequest struct via the builder pattern + + +### Return type + +[**V3Get200Response**](V3Get200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3InfoGet + +> PlatformInfo V3InfoGet(ctx).Execute() + +Get platform info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3InfoGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3InfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3InfoGet`: PlatformInfo + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3InfoGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3InfoGetRequest struct via the builder pattern + + +### Return type + +[**PlatformInfo**](PlatformInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3InfoUsageSummaryGet + +> UsageSummary V3InfoUsageSummaryGet(ctx).Execute() + +Get platform usage summary + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3InfoUsageSummaryGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3InfoUsageSummaryGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3InfoUsageSummaryGet`: UsageSummary + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3InfoUsageSummaryGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3InfoUsageSummaryGetRequest struct via the builder pattern + + +### Return type + +[**UsageSummary**](UsageSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGet + +> V3IsolationSegmentsGet200Response V3IsolationSegmentsGet(ctx).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List isolation segments + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of isolation segment guids to filter by (optional) + names := []string{"Inner_example"} // []string | Comma-delimited list of isolation segment names to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by; defaults to ascending. Prepend with - to sort descending (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := time.Now() // time.Time | Timestamp to filter by (optional) + updatedAts := time.Now() // time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGet(context.Background()).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGet`: V3IsolationSegmentsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of isolation segment guids to filter by | + **names** | **[]string** | Comma-delimited list of isolation segment names to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by; defaults to ascending. Prepend with - to sort descending | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | **time.Time** | Timestamp to filter by | + **updatedAts** | **time.Time** | Timestamp to filter by | + +### Return type + +[**V3IsolationSegmentsGet200Response**](V3IsolationSegmentsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidDelete + +> V3IsolationSegmentsGuidDelete(ctx, guid).Execute() + +Delete an isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidGet + +> IsolationSegment V3IsolationSegmentsGuidGet(ctx, guid).Execute() + +Get an isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGuidGet`: IsolationSegment + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**IsolationSegment**](IsolationSegment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidPatch + +> IsolationSegment V3IsolationSegmentsGuidPatch(ctx, guid).IsolationSegment(isolationSegment).Execute() + +Update an isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + isolationSegment := *openapiclient.NewIsolationSegment() // IsolationSegment | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidPatch(context.Background(), guid).IsolationSegment(isolationSegment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGuidPatch`: IsolationSegment + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **isolationSegment** | [**IsolationSegment**](IsolationSegment.md) | | + +### Return type + +[**IsolationSegment**](IsolationSegment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidRelationshipsOrganizationsGet + +> V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response V3IsolationSegmentsGuidRelationshipsOrganizationsGet(ctx, guid).Execute() + +List organizations relationship + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGuidRelationshipsOrganizationsGet`: V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidRelationshipsOrganizationsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete + +> V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete(ctx, guid, orgGuid).Execute() + +Revoke entitlement to isolation segment for an organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + orgGuid := "orgGuid_example" // string | The guid of the organization + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete(context.Background(), guid, orgGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | +**orgGuid** | **string** | The guid of the organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidRelationshipsOrganizationsPost + +> V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response V3IsolationSegmentsGuidRelationshipsOrganizationsPost(ctx, guid).V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest).Execute() + +Entitle organizations for an isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest := *openapiclient.NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest() // V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsPost(context.Background(), guid).V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGuidRelationshipsOrganizationsPost`: V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest** | [**V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest**](V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) | | + +### Return type + +[**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsGuidRelationshipsSpacesGet + +> V3IsolationSegmentsGuidRelationshipsSpacesGet200Response V3IsolationSegmentsGuidRelationshipsSpacesGet(ctx, guid).Execute() + +List spaces relationship + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The guid of the isolation segment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsSpacesGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsGuidRelationshipsSpacesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsGuidRelationshipsSpacesGet`: V3IsolationSegmentsGuidRelationshipsSpacesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsGuidRelationshipsSpacesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the isolation segment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsGuidRelationshipsSpacesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3IsolationSegmentsGuidRelationshipsSpacesGet200Response**](V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3IsolationSegmentsPost + +> IsolationSegment V3IsolationSegmentsPost(ctx).IsolationSegment(isolationSegment).Execute() + +Create an isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + isolationSegment := *openapiclient.NewIsolationSegment() // IsolationSegment | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3IsolationSegmentsPost(context.Background()).IsolationSegment(isolationSegment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3IsolationSegmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3IsolationSegmentsPost`: IsolationSegment + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3IsolationSegmentsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3IsolationSegmentsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **isolationSegment** | [**IsolationSegment**](IsolationSegment.md) | | + +### Return type + +[**IsolationSegment**](IsolationSegment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGet + +> V3PackagesGet200Response V3PackagesGet(ctx).Guids(guids).States(states).Types(types).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List packages + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of package guids to filter by (optional) + states := []string{"Inner_example"} // []string | Comma-delimited list of package states to filter by (optional) + types := []string{"Inner_example"} // []string | Comma-delimited list of package types to filter by (optional) + appGuids := []string{"Inner_example"} // []string | Comma-delimited list of app guids to filter by (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by; defaults to ascending. Prepend with - to sort descending. Valid values are created_at, updated_at (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGet(context.Background()).Guids(guids).States(states).Types(types).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGet`: V3PackagesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of package guids to filter by | + **states** | **[]string** | Comma-delimited list of package states to filter by | + **types** | **[]string** | Comma-delimited list of package types to filter by | + **appGuids** | **[]string** | Comma-delimited list of app guids to filter by | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by; defaults to ascending. Prepend with - to sort descending. Valid values are created_at, updated_at | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**V3PackagesGet200Response**](V3PackagesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGuidDelete + +> V3PackagesGuidDelete202Response V3PackagesGuidDelete(ctx, guid).Execute() + +Delete a package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGuidDelete`: V3PackagesGuidDelete202Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGuidDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3PackagesGuidDelete202Response**](V3PackagesGuidDelete202Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGuidDropletsGet + +> V3AppsGuidDropletsGet200Response V3PackagesGuidDropletsGet(ctx, guid).Guids(guids).States(states).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + +List droplets for a package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The guid of the package + guids := []string{"Inner_example"} // []string | Comma-delimited list of droplet guids to filter by (optional) + states := []string{"Inner_example"} // []string | Comma-delimited list of droplet states to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGuidDropletsGet(context.Background(), guid).Guids(guids).States(states).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGuidDropletsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGuidDropletsGet`: V3AppsGuidDropletsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGuidDropletsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The guid of the package | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGuidDropletsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **guids** | **[]string** | Comma-delimited list of droplet guids to filter by | + **states** | **[]string** | Comma-delimited list of droplet states to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + +### Return type + +[**V3AppsGuidDropletsGet200Response**](V3AppsGuidDropletsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGuidGet + +> Package V3PackagesGuidGet(ctx, guid).Execute() + +Get a package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGuidGet`: Package + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Package**](Package.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGuidPatch + +> Package V3PackagesGuidPatch(ctx, guid).V3PackagesGuidPatchRequest(v3PackagesGuidPatchRequest).Execute() + +Update a package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + v3PackagesGuidPatchRequest := *openapiclient.NewV3PackagesGuidPatchRequest() // V3PackagesGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGuidPatch(context.Background(), guid).V3PackagesGuidPatchRequest(v3PackagesGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGuidPatch`: Package + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3PackagesGuidPatchRequest** | [**V3PackagesGuidPatchRequest**](V3PackagesGuidPatchRequest.md) | | + +### Return type + +[**Package**](Package.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesGuidUploadPost + +> Package V3PackagesGuidUploadPost(ctx, guid).Bits(bits).Resources(resources).Execute() + +Upload package bits + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + bits := os.NewFile(1234, "some_file") // *os.File | A binary zip file containing the package bits (optional) + resources := []openapiclient.V3PackagesGuidUploadPostRequestResourcesInner{*openapiclient.NewV3PackagesGuidUploadPostRequestResourcesInner()} // []V3PackagesGuidUploadPostRequestResourcesInner | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesGuidUploadPost(context.Background(), guid).Bits(bits).Resources(resources).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesGuidUploadPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesGuidUploadPost`: Package + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesGuidUploadPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesGuidUploadPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bits** | ***os.File** | A binary zip file containing the package bits | + **resources** | [**[]V3PackagesGuidUploadPostRequestResourcesInner**](V3PackagesGuidUploadPostRequestResourcesInner.md) | | + +### Return type + +[**Package**](Package.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3PackagesPost + +> Package V3PackagesPost(ctx).V3PackagesPostRequest(v3PackagesPostRequest).Execute() + +Create a package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3PackagesPostRequest := *openapiclient.NewV3PackagesPostRequest() // V3PackagesPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3PackagesPost(context.Background()).V3PackagesPostRequest(v3PackagesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3PackagesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3PackagesPost`: Package + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3PackagesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3PackagesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3PackagesPostRequest** | [**V3PackagesPostRequest**](V3PackagesPostRequest.md) | | + +### Return type + +[**Package**](Package.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGet + +> ProcessList V3ProcessesGet(ctx).Guids(guids).Types(types).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List processes + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := "guids_example" // string | (optional) + types := "types_example" // string | (optional) + appGuids := "appGuids_example" // string | (optional) + spaceGuids := "spaceGuids_example" // string | (optional) + organizationGuids := "organizationGuids_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ProcessesGet(context.Background()).Guids(guids).Types(types).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ProcessesGet`: ProcessList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ProcessesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **string** | | + **types** | **string** | | + **appGuids** | **string** | | + **spaceGuids** | **string** | | + **organizationGuids** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**ProcessList**](ProcessList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGuidActionsScalePost + +> Process V3ProcessesGuidActionsScalePost(ctx, guid).ProcessScale(processScale).Execute() + +Scale a process + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + processScale := *openapiclient.NewProcessScale() // ProcessScale | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ProcessesGuidActionsScalePost(context.Background(), guid).ProcessScale(processScale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGuidActionsScalePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ProcessesGuidActionsScalePost`: Process + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ProcessesGuidActionsScalePost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGuidActionsScalePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **processScale** | [**ProcessScale**](ProcessScale.md) | | + +### Return type + +[**Process**](Process.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGuidInstancesIndexDelete + +> V3ProcessesGuidInstancesIndexDelete(ctx, guid, index).Execute() + +Terminate a process instance + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + index := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ProcessesGuidInstancesIndexDelete(context.Background(), guid, index).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGuidInstancesIndexDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | +**index** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGuidInstancesIndexDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGuidPatch + +> Process V3ProcessesGuidPatch(ctx, guid).ProcessUpdate(processUpdate).Execute() + +Update a process + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + processUpdate := *openapiclient.NewProcessUpdate() // ProcessUpdate | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ProcessesGuidPatch(context.Background(), guid).ProcessUpdate(processUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ProcessesGuidPatch`: Process + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ProcessesGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **processUpdate** | [**ProcessUpdate**](ProcessUpdate.md) | | + +### Return type + +[**Process**](Process.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGuidSidecarsGet + +> V3AppsGuidSidecarsGet200Response V3ProcessesGuidSidecarsGet(ctx, guid).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List sidecars for a process + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ProcessesGuidSidecarsGet(context.Background(), guid).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGuidSidecarsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ProcessesGuidSidecarsGet`: V3AppsGuidSidecarsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ProcessesGuidSidecarsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGuidSidecarsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3AppsGuidSidecarsGet200Response**](V3AppsGuidSidecarsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ProcessesGuidStatsGet + +> []ProcessStats V3ProcessesGuidStatsGet(ctx, guid).Execute() + +Get stats for a process + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ProcessesGuidStatsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ProcessesGuidStatsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ProcessesGuidStatsGet`: []ProcessStats + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ProcessesGuidStatsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ProcessesGuidStatsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ProcessStats**](ProcessStats.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ResourceMatchesPost + +> ResourceMatchResponse V3ResourceMatchesPost(ctx).ResourceMatchRequest(resourceMatchRequest).Execute() + +Create a resource match + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + resourceMatchRequest := *openapiclient.NewResourceMatchRequest() // ResourceMatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ResourceMatchesPost(context.Background()).ResourceMatchRequest(resourceMatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ResourceMatchesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ResourceMatchesPost`: ResourceMatchResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ResourceMatchesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ResourceMatchesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceMatchRequest** | [**ResourceMatchRequest**](ResourceMatchRequest.md) | | + +### Return type + +[**ResourceMatchResponse**](ResourceMatchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RevisionsGuidEnvironmentVariablesGet + +> EnvironmentVariables V3RevisionsGuidEnvironmentVariablesGet(ctx, guid).Execute() + +Get environment variables for a revision + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the revision + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RevisionsGuidEnvironmentVariablesGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RevisionsGuidEnvironmentVariablesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RevisionsGuidEnvironmentVariablesGet`: EnvironmentVariables + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RevisionsGuidEnvironmentVariablesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the revision | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RevisionsGuidEnvironmentVariablesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**EnvironmentVariables**](EnvironmentVariables.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RevisionsGuidPatch + +> Revision V3RevisionsGuidPatch(ctx, guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + +Update a revision + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the revision + v3RevisionsGuidPatchRequest := *openapiclient.NewV3RevisionsGuidPatchRequest() // V3RevisionsGuidPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RevisionsGuidPatch(context.Background(), guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RevisionsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RevisionsGuidPatch`: Revision + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RevisionsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the revision | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RevisionsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3RevisionsGuidPatchRequest** | [**V3RevisionsGuidPatchRequest**](V3RevisionsGuidPatchRequest.md) | | + +### Return type + +[**Revision**](Revision.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RolesGet + +> RolesList V3RolesGet(ctx).Guids(guids).Types(types).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).UserGuids(userGuids).Page(page).PerPage(perPage).OrderBy(orderBy).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List roles + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of role guids to filter by (optional) + types := []string{"Inner_example"} // []string | Comma-delimited list of role types to filter by (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + userGuids := []string{"Inner_example"} // []string | Comma-delimited list of user guids to filter by (optional) + page := int32(56) // int32 | Page to display, valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page, valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by, defaults to ascending, prepend with - to sort descending (optional) + include := []string{"Inner_example"} // []string | Optionally include a list of unique related resources in the response (optional) + createdAts := []string{"Inner_example"} // []string | Timestamp to filter by, supports filtering with relational operators (optional) + updatedAts := []string{"Inner_example"} // []string | Timestamp to filter by, supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RolesGet(context.Background()).Guids(guids).Types(types).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).UserGuids(userGuids).Page(page).PerPage(perPage).OrderBy(orderBy).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RolesGet`: RolesList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of role guids to filter by | + **types** | **[]string** | Comma-delimited list of role types to filter by | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **userGuids** | **[]string** | Comma-delimited list of user guids to filter by | + **page** | **int32** | Page to display, valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page, valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by, defaults to ascending, prepend with - to sort descending | + **include** | **[]string** | Optionally include a list of unique related resources in the response | + **createdAts** | **[]string** | Timestamp to filter by, supports filtering with relational operators | + **updatedAts** | **[]string** | Timestamp to filter by, supports filtering with relational operators | + +### Return type + +[**RolesList**](RolesList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RolesGuidDelete + +> V3RolesGuidDelete(ctx, guid).Execute() + +Delete a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the role + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3RolesGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RolesGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RolesGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RolesGuidGet + +> Role V3RolesGuidGet(ctx, guid).Include(include).Execute() + +Get a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the role + include := []string{"Inner_example"} // []string | Optionally include a list of unique related resources in the response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RolesGuidGet(context.Background(), guid).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RolesGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RolesGuidGet`: Role + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RolesGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the role | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RolesGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | **[]string** | Optionally include a list of unique related resources in the response | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RolesPost + +> Role V3RolesPost(ctx).V3RolesPostRequest(v3RolesPostRequest).Execute() + +Create a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3RolesPostRequest := *openapiclient.NewV3RolesPostRequest() // V3RolesPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RolesPost(context.Background()).V3RolesPostRequest(v3RolesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RolesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RolesPost`: Role + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RolesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RolesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3RolesPostRequest** | [**V3RolesPostRequest**](V3RolesPostRequest.md) | | + +### Return type + +[**Role**](Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RoutesGet + +> V3RoutesGet200Response V3RoutesGet(ctx).AppGuids(appGuids).DomainGuids(domainGuids).Hosts(hosts).OrganizationGuids(organizationGuids).Paths(paths).Ports(ports).SpaceGuids(spaceGuids).ServiceInstanceGuids(serviceInstanceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List routes + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + appGuids := "appGuids_example" // string | Comma-delimited list of app guids to filter by (optional) + domainGuids := "domainGuids_example" // string | Comma-delimited list of domain guids to filter by (optional) + hosts := "hosts_example" // string | Comma-delimited list of hostnames to filter by (optional) + organizationGuids := "organizationGuids_example" // string | Comma-delimited list of organization guids to filter by (optional) + paths := "paths_example" // string | Comma-delimited list of paths to filter by (e.g. /path1,/path2) (optional) + ports := "ports_example" // string | Comma-delimited list of ports to filter by (e.g. 3306,5432) (optional) + spaceGuids := "spaceGuids_example" // string | Comma-delimited list of space guids to filter by (optional) + serviceInstanceGuids := "serviceInstanceGuids_example" // string | Comma-delimited list of service instance guids to filter by (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + include := "include_example" // string | Optionally include a list of unique related resources in the response. Valid values are domain, space.organization, space (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RoutesGet(context.Background()).AppGuids(appGuids).DomainGuids(domainGuids).Hosts(hosts).OrganizationGuids(organizationGuids).Paths(paths).Ports(ports).SpaceGuids(spaceGuids).ServiceInstanceGuids(serviceInstanceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RoutesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RoutesGet`: V3RoutesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RoutesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RoutesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appGuids** | **string** | Comma-delimited list of app guids to filter by | + **domainGuids** | **string** | Comma-delimited list of domain guids to filter by | + **hosts** | **string** | Comma-delimited list of hostnames to filter by | + **organizationGuids** | **string** | Comma-delimited list of organization guids to filter by | + **paths** | **string** | Comma-delimited list of paths to filter by (e.g. /path1,/path2) | + **ports** | **string** | Comma-delimited list of ports to filter by (e.g. 3306,5432) | + **spaceGuids** | **string** | Comma-delimited list of space guids to filter by | + **serviceInstanceGuids** | **string** | Comma-delimited list of service instance guids to filter by | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **include** | **string** | Optionally include a list of unique related resources in the response. Valid values are domain, space.organization, space | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**V3RoutesGet200Response**](V3RoutesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RoutesGuidGet + +> Route V3RoutesGuidGet(ctx, guid).Include(include).Execute() + +Get a route + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The route GUID + include := "include_example" // string | Optionally include additional related resources in the response. Valid values are domain, space.organization, space (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RoutesGuidGet(context.Background(), guid).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RoutesGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RoutesGuidGet`: Route + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RoutesGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The route GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RoutesGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | **string** | Optionally include additional related resources in the response. Valid values are domain, space.organization, space | + +### Return type + +[**Route**](Route.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3RoutesPost + +> Route V3RoutesPost(ctx).V3RoutesPostRequest(v3RoutesPostRequest).Execute() + +Create a route + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3RoutesPostRequest := *openapiclient.NewV3RoutesPostRequest() // V3RoutesPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3RoutesPost(context.Background()).V3RoutesPostRequest(v3RoutesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3RoutesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3RoutesPost`: Route + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3RoutesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3RoutesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3RoutesPostRequest** | [**V3RoutesPostRequest**](V3RoutesPostRequest.md) | | + +### Return type + +[**Route**](Route.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SecurityGroupsGet + +> SecurityGroupList V3SecurityGroupsGet(ctx).Guids(guids).Names(names).GloballyEnabledRunning(globallyEnabledRunning).GloballyEnabledStaging(globallyEnabledStaging).RunningSpaceGuids(runningSpaceGuids).StagingSpaceGuids(stagingSpaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List security groups + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of security group guids to filter by (optional) + names := []string{"Inner_example"} // []string | Comma-delimited list of security group names to filter by (optional) + globallyEnabledRunning := true // bool | If true, only include the security groups that are enabled for running (optional) + globallyEnabledStaging := true // bool | If true, only include the security groups that are enabled for staging (optional) + runningSpaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + stagingSpaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SecurityGroupsGet(context.Background()).Guids(guids).Names(names).GloballyEnabledRunning(globallyEnabledRunning).GloballyEnabledStaging(globallyEnabledStaging).RunningSpaceGuids(runningSpaceGuids).StagingSpaceGuids(stagingSpaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SecurityGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SecurityGroupsGet`: SecurityGroupList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SecurityGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SecurityGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of security group guids to filter by | + **names** | **[]string** | Comma-delimited list of security group names to filter by | + **globallyEnabledRunning** | **bool** | If true, only include the security groups that are enabled for running | + **globallyEnabledStaging** | **bool** | If true, only include the security groups that are enabled for staging | + **runningSpaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **stagingSpaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**SecurityGroupList**](SecurityGroupList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SecurityGroupsGuidDelete + +> V3SecurityGroupsGuidDelete(ctx, guid).Execute() + +Delete a security group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The security group GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3SecurityGroupsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SecurityGroupsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The security group GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SecurityGroupsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SecurityGroupsGuidGet + +> SecurityGroup V3SecurityGroupsGuidGet(ctx, guid).Execute() + +Get a security group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The security group GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SecurityGroupsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SecurityGroupsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SecurityGroupsGuidGet`: SecurityGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SecurityGroupsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The security group GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SecurityGroupsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SecurityGroup**](SecurityGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SecurityGroupsGuidPatch + +> SecurityGroup V3SecurityGroupsGuidPatch(ctx, guid).SecurityGroupUpdate(securityGroupUpdate).Execute() + +Update a security group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The security group GUID + securityGroupUpdate := *openapiclient.NewSecurityGroupUpdate() // SecurityGroupUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SecurityGroupsGuidPatch(context.Background(), guid).SecurityGroupUpdate(securityGroupUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SecurityGroupsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SecurityGroupsGuidPatch`: SecurityGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SecurityGroupsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The security group GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SecurityGroupsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **securityGroupUpdate** | [**SecurityGroupUpdate**](SecurityGroupUpdate.md) | | + +### Return type + +[**SecurityGroup**](SecurityGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SecurityGroupsPost + +> SecurityGroup V3SecurityGroupsPost(ctx).SecurityGroupCreate(securityGroupCreate).Execute() + +Create a security group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + securityGroupCreate := *openapiclient.NewSecurityGroupCreate() // SecurityGroupCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SecurityGroupsPost(context.Background()).SecurityGroupCreate(securityGroupCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SecurityGroupsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SecurityGroupsPost`: SecurityGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SecurityGroupsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SecurityGroupsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **securityGroupCreate** | [**SecurityGroupCreate**](SecurityGroupCreate.md) | | + +### Return type + +[**SecurityGroup**](SecurityGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceBrokersGet + +> ServiceBrokerList V3ServiceBrokersGet(ctx).Names(names).Page(page).PerPage(perPage).SpaceGuids(spaceGuids).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List service brokers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := []string{"Inner_example"} // []string | Comma-delimited list of service broker names to filter by (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space GUIDs to filter by (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceBrokersGet(context.Background()).Names(names).Page(page).PerPage(perPage).SpaceGuids(spaceGuids).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceBrokersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceBrokersGet`: ServiceBrokerList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceBrokersGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceBrokersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **[]string** | Comma-delimited list of service broker names to filter by | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **spaceGuids** | **[]string** | Comma-delimited list of space GUIDs to filter by | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**ServiceBrokerList**](ServiceBrokerList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceBrokersGuidDelete + +> V3ServiceBrokersGuidDelete(ctx, guid).Execute() + +Delete a service broker + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service broker GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceBrokersGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceBrokersGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service broker GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceBrokersGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceBrokersGuidGet + +> ServiceBroker V3ServiceBrokersGuidGet(ctx, guid).Execute() + +Get a service broker + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service broker GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceBrokersGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceBrokersGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceBrokersGuidGet`: ServiceBroker + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceBrokersGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service broker GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceBrokersGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceBroker**](ServiceBroker.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceBrokersGuidPatch + +> ServiceBroker V3ServiceBrokersGuidPatch(ctx, guid).ServiceBrokerUpdate(serviceBrokerUpdate).Execute() + +Update a service broker + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service broker GUID + serviceBrokerUpdate := *openapiclient.NewServiceBrokerUpdate() // ServiceBrokerUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceBrokersGuidPatch(context.Background(), guid).ServiceBrokerUpdate(serviceBrokerUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceBrokersGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceBrokersGuidPatch`: ServiceBroker + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceBrokersGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service broker GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceBrokersGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceBrokerUpdate** | [**ServiceBrokerUpdate**](ServiceBrokerUpdate.md) | | + +### Return type + +[**ServiceBroker**](ServiceBroker.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceBrokersPost + +> ServiceBroker V3ServiceBrokersPost(ctx).ServiceBrokerCreate(serviceBrokerCreate).Execute() + +Create a service broker + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + serviceBrokerCreate := *openapiclient.NewServiceBrokerCreate() // ServiceBrokerCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceBrokersPost(context.Background()).ServiceBrokerCreate(serviceBrokerCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceBrokersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceBrokersPost`: ServiceBroker + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceBrokersPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceBrokersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceBrokerCreate** | [**ServiceBrokerCreate**](ServiceBrokerCreate.md) | | + +### Return type + +[**ServiceBroker**](ServiceBroker.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsGuidDelete + +> V3ServiceCredentialBindingsGuidDelete(ctx, guid).Execute() + +Delete a service credential binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsGuidDetailsGet + +> V3ServiceCredentialBindingsGuidDetailsGet200Response V3ServiceCredentialBindingsGuidDetailsGet(ctx, guid).Execute() + +Get a service credential binding details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidDetailsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsGuidDetailsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceCredentialBindingsGuidDetailsGet`: V3ServiceCredentialBindingsGuidDetailsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceCredentialBindingsGuidDetailsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsGuidDetailsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3ServiceCredentialBindingsGuidDetailsGet200Response**](V3ServiceCredentialBindingsGuidDetailsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsGuidGet + +> ServiceCredentialBinding V3ServiceCredentialBindingsGuidGet(ctx, guid).Include(include).Execute() + +Get a service credential binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + include := []string{"Include_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidGet(context.Background(), guid).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceCredentialBindingsGuidGet`: ServiceCredentialBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceCredentialBindingsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | **[]string** | | + +### Return type + +[**ServiceCredentialBinding**](ServiceCredentialBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsGuidParametersGet + +> map[string]interface{} V3ServiceCredentialBindingsGuidParametersGet(ctx, guid).Execute() + +Get parameters for a service credential binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidParametersGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsGuidParametersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceCredentialBindingsGuidParametersGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceCredentialBindingsGuidParametersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsGuidParametersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsGuidPatch + +> ServiceCredentialBinding V3ServiceCredentialBindingsGuidPatch(ctx, guid).V3ServiceCredentialBindingsGuidPatchRequest(v3ServiceCredentialBindingsGuidPatchRequest).Execute() + +Update a service credential binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3ServiceCredentialBindingsGuidPatchRequest := *openapiclient.NewV3ServiceCredentialBindingsGuidPatchRequest() // V3ServiceCredentialBindingsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidPatch(context.Background(), guid).V3ServiceCredentialBindingsGuidPatchRequest(v3ServiceCredentialBindingsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceCredentialBindingsGuidPatch`: ServiceCredentialBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceCredentialBindingsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3ServiceCredentialBindingsGuidPatchRequest** | [**V3ServiceCredentialBindingsGuidPatchRequest**](V3ServiceCredentialBindingsGuidPatchRequest.md) | | + +### Return type + +[**ServiceCredentialBinding**](ServiceCredentialBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceCredentialBindingsPost + +> ServiceCredentialBinding V3ServiceCredentialBindingsPost(ctx).V3ServiceCredentialBindingsPostRequest(v3ServiceCredentialBindingsPostRequest).Execute() + +Create a service credential binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3ServiceCredentialBindingsPostRequest := *openapiclient.NewV3ServiceCredentialBindingsPostRequest(*openapiclient.NewV3ServiceCredentialBindingsPostRequestRelationships(*openapiclient.NewV3AppsPostRequestRelationshipsSpace()), "Type_example") // V3ServiceCredentialBindingsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsPost(context.Background()).V3ServiceCredentialBindingsPostRequest(v3ServiceCredentialBindingsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceCredentialBindingsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceCredentialBindingsPost`: ServiceCredentialBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceCredentialBindingsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceCredentialBindingsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3ServiceCredentialBindingsPostRequest** | [**V3ServiceCredentialBindingsPostRequest**](V3ServiceCredentialBindingsPostRequest.md) | | + +### Return type + +[**ServiceCredentialBinding**](ServiceCredentialBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGet + +> V3ServiceInstancesGet200Response V3ServiceInstancesGet(ctx).Names(names).Guids(guids).Type_(type_).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).ServicePlanGuids(servicePlanGuids).ServicePlanNames(servicePlanNames).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +Retrieve service instances + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := []string{"Inner_example"} // []string | Comma-delimited list of service instance names to filter by (optional) + guids := []string{"Inner_example"} // []string | Comma-delimited list of service instance guids to filter by (optional) + type_ := "type__example" // string | Filter by type (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space guids to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization guids to filter by (optional) + servicePlanGuids := []string{"Inner_example"} // []string | Comma-delimited list of service plan guids to filter by (optional) + servicePlanNames := []string{"Inner_example"} // []string | Comma-delimited list of service plan names to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by (optional) + updatedAts := []time.Time{time.Now()} // []time.Time | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceInstancesGet(context.Background()).Names(names).Guids(guids).Type_(type_).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).ServicePlanGuids(servicePlanGuids).ServicePlanNames(servicePlanNames).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceInstancesGet`: V3ServiceInstancesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceInstancesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **[]string** | Comma-delimited list of service instance names to filter by | + **guids** | **[]string** | Comma-delimited list of service instance guids to filter by | + **type_** | **string** | Filter by type | + **spaceGuids** | **[]string** | Comma-delimited list of space guids to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization guids to filter by | + **servicePlanGuids** | **[]string** | Comma-delimited list of service plan guids to filter by | + **servicePlanNames** | **[]string** | Comma-delimited list of service plan names to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by | + **updatedAts** | [**[]time.Time**](time.Time.md) | Timestamp to filter by | + +### Return type + +[**V3ServiceInstancesGet200Response**](V3ServiceInstancesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGuidCredentialsGet + +> map[string]string V3ServiceInstancesGuidCredentialsGet(ctx, guid).Execute() + +Get credentials for a user-provided service instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | GUID of the service instance + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceInstancesGuidCredentialsGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGuidCredentialsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceInstancesGuidCredentialsGet`: map[string]string + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceInstancesGuidCredentialsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | GUID of the service instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGuidCredentialsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGuidPatch + +> ServiceInstance V3ServiceInstancesGuidPatch(ctx, guid).V3ServiceInstancesGuidPatchRequest(v3ServiceInstancesGuidPatchRequest).Execute() + +Update a service instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | GUID of the service instance + v3ServiceInstancesGuidPatchRequest := openapiclient._v3_service_instances__guid__patch_request{ManagedServiceInstanceUpdate: openapiclient.NewManagedServiceInstanceUpdate()} // V3ServiceInstancesGuidPatchRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceInstancesGuidPatch(context.Background(), guid).V3ServiceInstancesGuidPatchRequest(v3ServiceInstancesGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceInstancesGuidPatch`: ServiceInstance + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceInstancesGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | GUID of the service instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3ServiceInstancesGuidPatchRequest** | [**V3ServiceInstancesGuidPatchRequest**](V3ServiceInstancesGuidPatchRequest.md) | | + +### Return type + +[**ServiceInstance**](ServiceInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGuidRelationshipsSharedSpacesPost + +> V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest V3ServiceInstancesGuidRelationshipsSharedSpacesPost(ctx, guid).V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest(v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest).Execute() + +Share a service instance to other spaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | GUID of the service instance + v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest := *openapiclient.NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest() // V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesPost(context.Background(), guid).V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest(v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceInstancesGuidRelationshipsSharedSpacesPost`: V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | GUID of the service instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest** | [**V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest**](V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md) | | + +### Return type + +[**V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest**](V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete + +> V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete(ctx, guid, spaceGuid).Execute() + +Unshare a service instance from another space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | GUID of the service instance + spaceGuid := "spaceGuid_example" // string | GUID of the space + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete(context.Background(), guid, spaceGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | GUID of the service instance | +**spaceGuid** | **string** | GUID of the space | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet + +> UsageSummary V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet(ctx, guid).Execute() + +Get usage summary in shared spaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | GUID of the service instance + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet`: UsageSummary + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | GUID of the service instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**UsageSummary**](UsageSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceOfferingsGet + +> ServiceOfferingList V3ServiceOfferingsGet(ctx).Names(names).Available(available).ServiceBrokerGuids(serviceBrokerGuids).ServiceBrokerNames(serviceBrokerNames).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).LabelSelector(labelSelector).OrderBy(orderBy).Page(page).PerPage(perPage).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List service offerings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := []string{"Inner_example"} // []string | Comma-delimited list of names to filter by (optional) + available := true // bool | Filter by the available property; valid values are true or false (optional) + serviceBrokerGuids := []string{"Inner_example"} // []string | Comma-delimited list of service broker GUIDs to filter by (optional) + serviceBrokerNames := []string{"Inner_example"} // []string | Comma-delimited list of service broker names to filter by (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space GUIDs to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization GUIDs to filter by (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceOfferingsGet(context.Background()).Names(names).Available(available).ServiceBrokerGuids(serviceBrokerGuids).ServiceBrokerNames(serviceBrokerNames).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).LabelSelector(labelSelector).OrderBy(orderBy).Page(page).PerPage(perPage).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceOfferingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceOfferingsGet`: ServiceOfferingList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceOfferingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceOfferingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **[]string** | Comma-delimited list of names to filter by | + **available** | **bool** | Filter by the available property; valid values are true or false | + **serviceBrokerGuids** | **[]string** | Comma-delimited list of service broker GUIDs to filter by | + **serviceBrokerNames** | **[]string** | Comma-delimited list of service broker names to filter by | + **spaceGuids** | **[]string** | Comma-delimited list of space GUIDs to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization GUIDs to filter by | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**ServiceOfferingList**](ServiceOfferingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceOfferingsGuidDelete + +> V3ServiceOfferingsGuidDelete(ctx, guid).Purge(purge).Execute() + +Delete a service offering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service offering GUID + purge := true // bool | If true, any service plans, instances, and bindings associated with this service offering will also be deleted (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidDelete(context.Background(), guid).Purge(purge).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceOfferingsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service offering GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceOfferingsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **purge** | **bool** | If true, any service plans, instances, and bindings associated with this service offering will also be deleted | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceOfferingsGuidGet + +> ServiceOffering V3ServiceOfferingsGuidGet(ctx, guid).Execute() + +Get a service offering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service offering GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceOfferingsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceOfferingsGuidGet`: ServiceOffering + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceOfferingsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service offering GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceOfferingsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceOffering**](ServiceOffering.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceOfferingsGuidPatch + +> ServiceOffering V3ServiceOfferingsGuidPatch(ctx, guid).ServiceOfferingUpdate(serviceOfferingUpdate).Execute() + +Update a service offering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service offering GUID + serviceOfferingUpdate := *openapiclient.NewServiceOfferingUpdate() // ServiceOfferingUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidPatch(context.Background(), guid).ServiceOfferingUpdate(serviceOfferingUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceOfferingsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceOfferingsGuidPatch`: ServiceOffering + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceOfferingsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service offering GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceOfferingsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceOfferingUpdate** | [**ServiceOfferingUpdate**](ServiceOfferingUpdate.md) | | + +### Return type + +[**ServiceOffering**](ServiceOffering.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceOfferingsPost + +> ServiceOffering V3ServiceOfferingsPost(ctx).ServiceOfferingCreate(serviceOfferingCreate).Execute() + +Create a service offering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + serviceOfferingCreate := *openapiclient.NewServiceOfferingCreate() // ServiceOfferingCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceOfferingsPost(context.Background()).ServiceOfferingCreate(serviceOfferingCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceOfferingsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceOfferingsPost`: ServiceOffering + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceOfferingsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceOfferingsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceOfferingCreate** | [**ServiceOfferingCreate**](ServiceOfferingCreate.md) | | + +### Return type + +[**ServiceOffering**](ServiceOffering.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGet + +> ServicePlanList V3ServicePlansGet(ctx).Names(names).Available(available).BrokerCatalogIds(brokerCatalogIds).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).ServiceBrokerGuids(serviceBrokerGuids).ServiceBrokerNames(serviceBrokerNames).ServiceOfferingGuids(serviceOfferingGuids).ServiceOfferingNames(serviceOfferingNames).ServiceInstanceGuids(serviceInstanceGuids).Include(include).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Fields(fields).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List service plans + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := []string{"Inner_example"} // []string | Comma-delimited list of names to filter by (optional) + available := true // bool | Filter by the available property; valid values are true or false (optional) + brokerCatalogIds := []string{"Inner_example"} // []string | Comma-delimited list of IDs provided by the service broker for the service plan to filter by (optional) + spaceGuids := []string{"Inner_example"} // []string | Comma-delimited list of space GUIDs to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of organization GUIDs to filter by (optional) + serviceBrokerGuids := []string{"Inner_example"} // []string | Comma-delimited list of service broker GUIDs to filter by (optional) + serviceBrokerNames := []string{"Inner_example"} // []string | Comma-delimited list of service broker names to filter by (optional) + serviceOfferingGuids := []string{"Inner_example"} // []string | Comma-delimited list of service Offering GUIDs to filter by (optional) + serviceOfferingNames := []string{"Inner_example"} // []string | Comma-delimited list of service Offering names to filter by (optional) + serviceInstanceGuids := []string{"Inner_example"} // []string | Comma-delimited list of service Instance GUIDs to filter by (optional) + include := []string{"Inner_example"} // []string | Optionally include a list of related resources in the response; valid values are space.organization and service_offering (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page; valid values are 1 through 5000 (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + fields := "fields_example" // string | Allowed values for fields (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGet(context.Background()).Names(names).Available(available).BrokerCatalogIds(brokerCatalogIds).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).ServiceBrokerGuids(serviceBrokerGuids).ServiceBrokerNames(serviceBrokerNames).ServiceOfferingGuids(serviceOfferingGuids).ServiceOfferingNames(serviceOfferingNames).ServiceInstanceGuids(serviceInstanceGuids).Include(include).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Fields(fields).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGet`: ServicePlanList + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **[]string** | Comma-delimited list of names to filter by | + **available** | **bool** | Filter by the available property; valid values are true or false | + **brokerCatalogIds** | **[]string** | Comma-delimited list of IDs provided by the service broker for the service plan to filter by | + **spaceGuids** | **[]string** | Comma-delimited list of space GUIDs to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of organization GUIDs to filter by | + **serviceBrokerGuids** | **[]string** | Comma-delimited list of service broker GUIDs to filter by | + **serviceBrokerNames** | **[]string** | Comma-delimited list of service broker names to filter by | + **serviceOfferingGuids** | **[]string** | Comma-delimited list of service Offering GUIDs to filter by | + **serviceOfferingNames** | **[]string** | Comma-delimited list of service Offering names to filter by | + **serviceInstanceGuids** | **[]string** | Comma-delimited list of service Instance GUIDs to filter by | + **include** | **[]string** | Optionally include a list of related resources in the response; valid values are space.organization and service_offering | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page; valid values are 1 through 5000 | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending. Valid values are created_at, updated_at, name | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **fields** | **string** | Allowed values for fields | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**ServicePlanList**](ServicePlanList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidDelete + +> V3ServicePlansGuidDelete(ctx, guid).Purge(purge).Execute() + +Delete a service plan + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + purge := true // bool | If true, any service plans, instances, and bindings associated with this service plan will also be deleted (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServicePlansGuidDelete(context.Background(), guid).Purge(purge).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **purge** | **bool** | If true, any service plans, instances, and bindings associated with this service plan will also be deleted | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidGet + +> ServicePlan V3ServicePlansGuidGet(ctx, guid).Execute() + +Get a service plan + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGuidGet`: ServicePlan + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServicePlan**](ServicePlan.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidPatch + +> ServicePlan V3ServicePlansGuidPatch(ctx, guid).ServicePlanUpdate(servicePlanUpdate).Execute() + +Update a service plan + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + servicePlanUpdate := *openapiclient.NewServicePlanUpdate() // ServicePlanUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGuidPatch(context.Background(), guid).ServicePlanUpdate(servicePlanUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGuidPatch`: ServicePlan + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **servicePlanUpdate** | [**ServicePlanUpdate**](ServicePlanUpdate.md) | | + +### Return type + +[**ServicePlan**](ServicePlan.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidVisibilityGet + +> ServicePlanVisibility V3ServicePlansGuidVisibilityGet(ctx, guid).Execute() + +Get a service plan visibility + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidVisibilityGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGuidVisibilityGet`: ServicePlanVisibility + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGuidVisibilityGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidVisibilityGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServicePlanVisibility**](ServicePlanVisibility.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidVisibilityOrganizationGuidDelete + +> V3ServicePlansGuidVisibilityOrganizationGuidDelete(ctx, guid, organizationGuid).Execute() + +Remove organization from a service plan visibility + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + organizationGuid := "organizationGuid_example" // string | The organization GUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityOrganizationGuidDelete(context.Background(), guid, organizationGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidVisibilityOrganizationGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | +**organizationGuid** | **string** | The organization GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidVisibilityOrganizationGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidVisibilityPatch + +> ServicePlanVisibility V3ServicePlansGuidVisibilityPatch(ctx, guid).ServicePlanVisibilityUpdate(servicePlanVisibilityUpdate).Execute() + +Update a service plan visibility + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + servicePlanVisibilityUpdate := *openapiclient.NewServicePlanVisibilityUpdate() // ServicePlanVisibilityUpdate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityPatch(context.Background(), guid).ServicePlanVisibilityUpdate(servicePlanVisibilityUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidVisibilityPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGuidVisibilityPatch`: ServicePlanVisibility + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGuidVisibilityPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidVisibilityPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **servicePlanVisibilityUpdate** | [**ServicePlanVisibilityUpdate**](ServicePlanVisibilityUpdate.md) | | + +### Return type + +[**ServicePlanVisibility**](ServicePlanVisibility.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansGuidVisibilityPost + +> ServicePlanVisibility V3ServicePlansGuidVisibilityPost(ctx, guid).ServicePlanVisibilityApply(servicePlanVisibilityApply).Execute() + +Apply a service plan visibility + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | The service plan GUID + servicePlanVisibilityApply := *openapiclient.NewServicePlanVisibilityApply() // ServicePlanVisibilityApply | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityPost(context.Background(), guid).ServicePlanVisibilityApply(servicePlanVisibilityApply).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansGuidVisibilityPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansGuidVisibilityPost`: ServicePlanVisibility + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansGuidVisibilityPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | The service plan GUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansGuidVisibilityPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **servicePlanVisibilityApply** | [**ServicePlanVisibilityApply**](ServicePlanVisibilityApply.md) | | + +### Return type + +[**ServicePlanVisibility**](ServicePlanVisibility.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServicePlansPost + +> ServicePlan V3ServicePlansPost(ctx).ServicePlanCreate(servicePlanCreate).Execute() + +Create a service plan + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + servicePlanCreate := *openapiclient.NewServicePlanCreate() // ServicePlanCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServicePlansPost(context.Background()).ServicePlanCreate(servicePlanCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServicePlansPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServicePlansPost`: ServicePlan + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServicePlansPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServicePlansPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **servicePlanCreate** | [**ServicePlanCreate**](ServicePlanCreate.md) | | + +### Return type + +[**ServicePlan**](ServicePlan.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsGet + +> V3ServiceRouteBindingsGet200Response V3ServiceRouteBindingsGet(ctx).RouteGuids(routeGuids).ServiceInstanceGuids(serviceInstanceGuids).ServiceInstanceNames(serviceInstanceNames).LabelSelector(labelSelector).Guids(guids).CreatedAts(createdAts).UpdatedAts(updatedAts).Include(include).Page(page).PerPage(perPage).OrderBy(orderBy).Execute() + +List service route bindings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + routeGuids := []string{"Inner_example"} // []string | (optional) + serviceInstanceGuids := []string{"Inner_example"} // []string | (optional) + serviceInstanceNames := []string{"Inner_example"} // []string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + guids := []string{"Inner_example"} // []string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + include := []string{"Inner_example"} // []string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGet(context.Background()).RouteGuids(routeGuids).ServiceInstanceGuids(serviceInstanceGuids).ServiceInstanceNames(serviceInstanceNames).LabelSelector(labelSelector).Guids(guids).CreatedAts(createdAts).UpdatedAts(updatedAts).Include(include).Page(page).PerPage(perPage).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceRouteBindingsGet`: V3ServiceRouteBindingsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceRouteBindingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **routeGuids** | **[]string** | | + **serviceInstanceGuids** | **[]string** | | + **serviceInstanceNames** | **[]string** | | + **labelSelector** | **string** | | + **guids** | **[]string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + **include** | **[]string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + +### Return type + +[**V3ServiceRouteBindingsGet200Response**](V3ServiceRouteBindingsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsGuidDelete + +> V3ServiceRouteBindingsGuidDelete(ctx, guid).Execute() + +Delete a service route binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsGuidGet + +> ServiceRouteBinding V3ServiceRouteBindingsGuidGet(ctx, guid).Include(include).Execute() + +Get a service route binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + include := []string{"Include_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidGet(context.Background(), guid).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceRouteBindingsGuidGet`: ServiceRouteBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceRouteBindingsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | **[]string** | | + +### Return type + +[**ServiceRouteBinding**](ServiceRouteBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsGuidParametersGet + +> map[string]string V3ServiceRouteBindingsGuidParametersGet(ctx, guid).Execute() + +Get parameters for a route binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidParametersGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsGuidParametersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceRouteBindingsGuidParametersGet`: map[string]string + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceRouteBindingsGuidParametersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsGuidParametersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsGuidPatch + +> ServiceRouteBinding V3ServiceRouteBindingsGuidPatch(ctx, guid).V3ServiceRouteBindingsGuidPatchRequest(v3ServiceRouteBindingsGuidPatchRequest).Execute() + +Update a service route binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3ServiceRouteBindingsGuidPatchRequest := *openapiclient.NewV3ServiceRouteBindingsGuidPatchRequest() // V3ServiceRouteBindingsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidPatch(context.Background(), guid).V3ServiceRouteBindingsGuidPatchRequest(v3ServiceRouteBindingsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceRouteBindingsGuidPatch`: ServiceRouteBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceRouteBindingsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3ServiceRouteBindingsGuidPatchRequest** | [**V3ServiceRouteBindingsGuidPatchRequest**](V3ServiceRouteBindingsGuidPatchRequest.md) | | + +### Return type + +[**ServiceRouteBinding**](ServiceRouteBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceRouteBindingsPost + +> ServiceRouteBinding V3ServiceRouteBindingsPost(ctx).V3ServiceRouteBindingsPostRequest(v3ServiceRouteBindingsPostRequest).Execute() + +Create a service route binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3ServiceRouteBindingsPostRequest := *openapiclient.NewV3ServiceRouteBindingsPostRequest(*openapiclient.NewServiceRouteBindingRelationships()) // V3ServiceRouteBindingsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceRouteBindingsPost(context.Background()).V3ServiceRouteBindingsPostRequest(v3ServiceRouteBindingsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceRouteBindingsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceRouteBindingsPost`: ServiceRouteBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceRouteBindingsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceRouteBindingsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3ServiceRouteBindingsPostRequest** | [**V3ServiceRouteBindingsPostRequest**](V3ServiceRouteBindingsPostRequest.md) | | + +### Return type + +[**ServiceRouteBinding**](ServiceRouteBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceUsageEventsGet + +> V3ServiceUsageEventsGet200Response V3ServiceUsageEventsGet(ctx).Page(page).PerPage(perPage).OrderBy(orderBy).AfterGuid(afterGuid).Guids(guids).ServiceInstanceTypes(serviceInstanceTypes).ServiceOfferingGuids(serviceOfferingGuids).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List service usage events + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + afterGuid := "afterGuid_example" // string | (optional) + guids := []string{"Inner_example"} // []string | (optional) + serviceInstanceTypes := []string{"ServiceInstanceTypes_example"} // []string | (optional) + serviceOfferingGuids := []string{"Inner_example"} // []string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceUsageEventsGet(context.Background()).Page(page).PerPage(perPage).OrderBy(orderBy).AfterGuid(afterGuid).Guids(guids).ServiceInstanceTypes(serviceInstanceTypes).ServiceOfferingGuids(serviceOfferingGuids).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceUsageEventsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceUsageEventsGet`: V3ServiceUsageEventsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceUsageEventsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceUsageEventsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **afterGuid** | **string** | | + **guids** | **[]string** | | + **serviceInstanceTypes** | **[]string** | | + **serviceOfferingGuids** | **[]string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3ServiceUsageEventsGet200Response**](V3ServiceUsageEventsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceUsageEventsGuidGet + +> ServiceUsageEvent V3ServiceUsageEventsGuidGet(ctx, guid).Execute() + +Get a service usage event + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3ServiceUsageEventsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceUsageEventsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3ServiceUsageEventsGuidGet`: ServiceUsageEvent + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3ServiceUsageEventsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceUsageEventsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceUsageEvent**](ServiceUsageEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3ServiceUsageEventsPost + +> V3ServiceUsageEventsPost(ctx).Execute() + +Purge and seed service usage events + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3ServiceUsageEventsPost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3ServiceUsageEventsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3ServiceUsageEventsPostRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SidecarsGuidDelete + +> V3SidecarsGuidDelete(ctx, guid).Execute() + +Delete a sidecar + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3SidecarsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SidecarsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SidecarsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SidecarsGuidGet + +> Sidecar V3SidecarsGuidGet(ctx, guid).Execute() + +Get a sidecar + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SidecarsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SidecarsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SidecarsGuidGet`: Sidecar + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SidecarsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SidecarsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Sidecar**](Sidecar.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SidecarsGuidPatch + +> Sidecar V3SidecarsGuidPatch(ctx, guid).V3SidecarsGuidPatchRequest(v3SidecarsGuidPatchRequest).Execute() + +Update a sidecar + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3SidecarsGuidPatchRequest := *openapiclient.NewV3SidecarsGuidPatchRequest() // V3SidecarsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SidecarsGuidPatch(context.Background(), guid).V3SidecarsGuidPatchRequest(v3SidecarsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SidecarsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SidecarsGuidPatch`: Sidecar + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SidecarsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SidecarsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3SidecarsGuidPatchRequest** | [**V3SidecarsGuidPatchRequest**](V3SidecarsGuidPatchRequest.md) | | + +### Return type + +[**Sidecar**](Sidecar.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasGet + +> V3SpaceQuotasGet200Response V3SpaceQuotasGet(ctx).Guids(guids).Names(names).OrganizationGuids(organizationGuids).SpaceGuids(spaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List space quotas + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := "guids_example" // string | (optional) + names := "names_example" // string | (optional) + organizationGuids := "organizationGuids_example" // string | (optional) + spaceGuids := "spaceGuids_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpaceQuotasGet(context.Background()).Guids(guids).Names(names).OrganizationGuids(organizationGuids).SpaceGuids(spaceGuids).Page(page).PerPage(perPage).OrderBy(orderBy).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpaceQuotasGet`: V3SpaceQuotasGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpaceQuotasGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **string** | | + **names** | **string** | | + **organizationGuids** | **string** | | + **spaceGuids** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3SpaceQuotasGet200Response**](V3SpaceQuotasGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasGuidDelete + +> V3SpaceQuotasGuidDelete(ctx, guid).Execute() + +Delete a space quota + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3SpaceQuotasGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasGuidGet + +> SpaceQuota V3SpaceQuotasGuidGet(ctx, guid).Execute() + +Get a space quota + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpaceQuotasGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpaceQuotasGuidGet`: SpaceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpaceQuotasGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SpaceQuota**](SpaceQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasGuidPatch + +> SpaceQuota V3SpaceQuotasGuidPatch(ctx, guid).V3SpaceQuotasGuidPatchRequest(v3SpaceQuotasGuidPatchRequest).Execute() + +Update a space quota + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3SpaceQuotasGuidPatchRequest := *openapiclient.NewV3SpaceQuotasGuidPatchRequest() // V3SpaceQuotasGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpaceQuotasGuidPatch(context.Background(), guid).V3SpaceQuotasGuidPatchRequest(v3SpaceQuotasGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpaceQuotasGuidPatch`: SpaceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpaceQuotasGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3SpaceQuotasGuidPatchRequest** | [**V3SpaceQuotasGuidPatchRequest**](V3SpaceQuotasGuidPatchRequest.md) | | + +### Return type + +[**SpaceQuota**](SpaceQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasPost + +> SpaceQuota V3SpaceQuotasPost(ctx).V3SpaceQuotasPostRequest(v3SpaceQuotasPostRequest).Execute() + +Create a space quota + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3SpaceQuotasPostRequest := *openapiclient.NewV3SpaceQuotasPostRequest("Name_example", *openapiclient.NewV3SpaceQuotasPostRequestRelationships()) // V3SpaceQuotasPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpaceQuotasPost(context.Background()).V3SpaceQuotasPostRequest(v3SpaceQuotasPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpaceQuotasPost`: SpaceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpaceQuotasPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3SpaceQuotasPostRequest** | [**V3SpaceQuotasPostRequest**](V3SpaceQuotasPostRequest.md) | | + +### Return type + +[**SpaceQuota**](SpaceQuota.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasQuotaGuidRelationshipsSpacesPost + +> V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response V3SpaceQuotasQuotaGuidRelationshipsSpacesPost(ctx, quotaGuid).V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest).Execute() + +Apply a space quota to spaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + quotaGuid := "quotaGuid_example" // string | + v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest := *openapiclient.NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest() // V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesPost(context.Background(), quotaGuid).V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpaceQuotasQuotaGuidRelationshipsSpacesPost`: V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**quotaGuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasQuotaGuidRelationshipsSpacesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest** | [**V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest**](V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) | | + +### Return type + +[**V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response**](V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete + +> V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete(ctx, quotaGuid, spaceGuid).Execute() + +Remove a space quota from a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + quotaGuid := "quotaGuid_example" // string | + spaceGuid := "spaceGuid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete(context.Background(), quotaGuid, spaceGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**quotaGuid** | **string** | | +**spaceGuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGet + +> V3SpacesGet200Response V3SpacesGet(ctx).Names(names).Guids(guids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List spaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := "names_example" // string | (optional) + guids := "guids_example" // string | (optional) + organizationGuids := "organizationGuids_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + include := "include_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGet(context.Background()).Names(names).Guids(guids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).Include(include).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGet`: V3SpacesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **string** | | + **guids** | **string** | | + **organizationGuids** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **include** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3SpacesGet200Response**](V3SpacesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidDelete + +> V3SpacesGuidDelete(ctx, guid).Execute() + +Delete a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3SpacesGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidFeaturesGet + +> V3SpacesGuidFeaturesGet200Response V3SpacesGuidFeaturesGet(ctx, guid).Execute() + +List space features + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidFeaturesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidFeaturesGet`: V3SpacesGuidFeaturesGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidFeaturesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidFeaturesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3SpacesGuidFeaturesGet200Response**](V3SpacesGuidFeaturesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidFeaturesNameGet + +> SpaceFeature V3SpacesGuidFeaturesNameGet(ctx, guid, name).Execute() + +Get a space feature + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + name := "name_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesNameGet(context.Background(), guid, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidFeaturesNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidFeaturesNameGet`: SpaceFeature + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidFeaturesNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidFeaturesNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SpaceFeature**](SpaceFeature.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidFeaturesPatch + +> SpaceFeature V3SpacesGuidFeaturesPatch(ctx, guid, name).V3SpacesGuidFeaturesPatchRequest(v3SpacesGuidFeaturesPatchRequest).Execute() + +Update space features + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + name := "name_example" // string | + v3SpacesGuidFeaturesPatchRequest := *openapiclient.NewV3SpacesGuidFeaturesPatchRequest() // V3SpacesGuidFeaturesPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesPatch(context.Background(), guid, name).V3SpacesGuidFeaturesPatchRequest(v3SpacesGuidFeaturesPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidFeaturesPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidFeaturesPatch`: SpaceFeature + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidFeaturesPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidFeaturesPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **v3SpacesGuidFeaturesPatchRequest** | [**V3SpacesGuidFeaturesPatchRequest**](V3SpacesGuidFeaturesPatchRequest.md) | | + +### Return type + +[**SpaceFeature**](SpaceFeature.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidGet + +> Space V3SpacesGuidGet(ctx, guid).Execute() + +Get a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidGet`: Space + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Space**](Space.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidPatch + +> Space V3SpacesGuidPatch(ctx, guid).V3SpacesGuidPatchRequest(v3SpacesGuidPatchRequest).Execute() + +Update a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3SpacesGuidPatchRequest := *openapiclient.NewV3SpacesGuidPatchRequest() // V3SpacesGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidPatch(context.Background(), guid).V3SpacesGuidPatchRequest(v3SpacesGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidPatch`: Space + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3SpacesGuidPatchRequest** | [**V3SpacesGuidPatchRequest**](V3SpacesGuidPatchRequest.md) | | + +### Return type + +[**Space**](Space.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidRelationshipsIsolationSegmentGet + +> V3AppsPostRequestRelationshipsSpace V3SpacesGuidRelationshipsIsolationSegmentGet(ctx, guid).Execute() + +Get assigned isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidRelationshipsIsolationSegmentGet`: V3AppsPostRequestRelationshipsSpace + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidRelationshipsIsolationSegmentGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidRelationshipsIsolationSegmentPatch + +> V3AppsPostRequestRelationshipsSpace V3SpacesGuidRelationshipsIsolationSegmentPatch(ctx, guid).V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace).Execute() + +Manage isolation segment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3AppsPostRequestRelationshipsSpace := *openapiclient.NewV3AppsPostRequestRelationshipsSpace() // V3AppsPostRequestRelationshipsSpace | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentPatch(context.Background(), guid).V3AppsPostRequestRelationshipsSpace(v3AppsPostRequestRelationshipsSpace).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidRelationshipsIsolationSegmentPatch`: V3AppsPostRequestRelationshipsSpace + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidRelationshipsIsolationSegmentPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3AppsPostRequestRelationshipsSpace** | [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | + +### Return type + +[**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesGuidUsersGet + +> V3SpacesGuidUsersGet200Response V3SpacesGuidUsersGet(ctx, guid).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List users for a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + guids := "guids_example" // string | (optional) + usernames := "usernames_example" // string | (optional) + partialUsernames := "partialUsernames_example" // string | (optional) + origins := "origins_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesGuidUsersGet(context.Background(), guid).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesGuidUsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesGuidUsersGet`: V3SpacesGuidUsersGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesGuidUsersGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesGuidUsersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **guids** | **string** | | + **usernames** | **string** | | + **partialUsernames** | **string** | | + **origins** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3SpacesGuidUsersGet200Response**](V3SpacesGuidUsersGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3SpacesPost + +> Space V3SpacesPost(ctx).V3SpacesPostRequest(v3SpacesPostRequest).Execute() + +Create a space + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3SpacesPostRequest := *openapiclient.NewV3SpacesPostRequest("Name_example", *openapiclient.NewV3SpaceQuotasPostRequestRelationships()) // V3SpacesPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3SpacesPost(context.Background()).V3SpacesPostRequest(v3SpacesPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3SpacesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3SpacesPost`: Space + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3SpacesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3SpacesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3SpacesPostRequest** | [**V3SpacesPostRequest**](V3SpacesPostRequest.md) | | + +### Return type + +[**Space**](Space.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksGet + +> V3StacksGet200Response V3StacksGet(ctx).Names(names).Default_(default_).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List all stacks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + names := "names_example" // string | (optional) + default_ := true // bool | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) (default to 50) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3StacksGet(context.Background()).Names(names).Default_(default_).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3StacksGet`: V3StacksGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3StacksGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **names** | **string** | | + **default_** | **bool** | | + **page** | **int32** | | + **perPage** | **int32** | | [default to 50] + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3StacksGet200Response**](V3StacksGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksGuidAppsGet + +> V3StacksGuidAppsGet200Response V3StacksGuidAppsGet(ctx, guid).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List apps on a stack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) (default to 50) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3StacksGuidAppsGet(context.Background(), guid).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksGuidAppsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3StacksGuidAppsGet`: V3StacksGuidAppsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3StacksGuidAppsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksGuidAppsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | | + **perPage** | **int32** | | [default to 50] + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3StacksGuidAppsGet200Response**](V3StacksGuidAppsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksGuidDelete + +> V3StacksGuidDelete(ctx, guid).Execute() + +Delete a stack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3StacksGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksGuidGet + +> Stack V3StacksGuidGet(ctx, guid).Execute() + +Get a stack by GUID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3StacksGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3StacksGuidGet`: Stack + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3StacksGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Stack**](Stack.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksGuidPatch + +> Stack V3StacksGuidPatch(ctx, guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + +Update a stack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3RevisionsGuidPatchRequest := *openapiclient.NewV3RevisionsGuidPatchRequest() // V3RevisionsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3StacksGuidPatch(context.Background(), guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3StacksGuidPatch`: Stack + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3StacksGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3RevisionsGuidPatchRequest** | [**V3RevisionsGuidPatchRequest**](V3RevisionsGuidPatchRequest.md) | | + +### Return type + +[**Stack**](Stack.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3StacksPost + +> Stack V3StacksPost(ctx).V3StacksPostRequest(v3StacksPostRequest).Execute() + +Create a stack + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3StacksPostRequest := *openapiclient.NewV3StacksPostRequest("Name_example") // V3StacksPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3StacksPost(context.Background()).V3StacksPostRequest(v3StacksPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3StacksPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3StacksPost`: Stack + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3StacksPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3StacksPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3StacksPostRequest** | [**V3StacksPostRequest**](V3StacksPostRequest.md) | | + +### Return type + +[**Stack**](Stack.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3TasksGet + +> V3TasksGet200Response V3TasksGet(ctx).Guids(guids).Names(names).States(states).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List all tasks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := "guids_example" // string | (optional) + names := "names_example" // string | (optional) + states := "states_example" // string | (optional) + appGuids := "appGuids_example" // string | (optional) + spaceGuids := "spaceGuids_example" // string | (optional) + organizationGuids := "organizationGuids_example" // string | (optional) + page := int32(56) // int32 | (optional) + perPage := int32(56) // int32 | (optional) (default to 50) + orderBy := "orderBy_example" // string | (optional) + labelSelector := "labelSelector_example" // string | (optional) + createdAts := "createdAts_example" // string | (optional) + updatedAts := "updatedAts_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3TasksGet(context.Background()).Guids(guids).Names(names).States(states).AppGuids(appGuids).SpaceGuids(spaceGuids).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3TasksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3TasksGet`: V3TasksGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3TasksGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3TasksGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **string** | | + **names** | **string** | | + **states** | **string** | | + **appGuids** | **string** | | + **spaceGuids** | **string** | | + **organizationGuids** | **string** | | + **page** | **int32** | | + **perPage** | **int32** | | [default to 50] + **orderBy** | **string** | | + **labelSelector** | **string** | | + **createdAts** | **string** | | + **updatedAts** | **string** | | + +### Return type + +[**V3TasksGet200Response**](V3TasksGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3TasksGuidGet + +> Task V3TasksGuidGet(ctx, guid).Execute() + +Get a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3TasksGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3TasksGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3TasksGuidGet`: Task + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3TasksGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3TasksGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Task**](Task.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3TasksGuidPatch + +> Task V3TasksGuidPatch(ctx, guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + +Update a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + v3RevisionsGuidPatchRequest := *openapiclient.NewV3RevisionsGuidPatchRequest() // V3RevisionsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3TasksGuidPatch(context.Background(), guid).V3RevisionsGuidPatchRequest(v3RevisionsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3TasksGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3TasksGuidPatch`: Task + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3TasksGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3TasksGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3RevisionsGuidPatchRequest** | [**V3RevisionsGuidPatchRequest**](V3RevisionsGuidPatchRequest.md) | | + +### Return type + +[**Task**](Task.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3TasksGuidPost + +> Task V3TasksGuidPost(ctx, guid).Execute() + +Cancel a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3TasksGuidPost(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3TasksGuidPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3TasksGuidPost`: Task + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3TasksGuidPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3TasksGuidPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Task**](Task.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3UsersGet + +> V3UsersGet200Response V3UsersGet(ctx).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List users + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of user guids to filter by (optional) + usernames := []string{"Inner_example"} // []string | Comma-delimited list of usernames to filter by. Mutually exclusive with partial_usernames (optional) + partialUsernames := []string{"Inner_example"} // []string | Comma-delimited list of strings to search by. When using this query parameter, all the users that contain the string provided in their username will be returned. Mutually exclusive with usernames (optional) + origins := []string{"Inner_example"} // []string | Comma-delimited list of user origins (user stores) to filter by, for example, users authenticated by UAA have the origin “uaa”; users authenticated by an LDAP provider have the origin “ldap”; when filtering by origins, usernames must be included (optional) + page := int32(56) // int32 | Page to display; valid values are integers >= 1 (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by. Defaults to ascending; prepend with - to sort descending (optional) + labelSelector := "labelSelector_example" // string | A query string containing a list of label selector requirements (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3UsersGet(context.Background()).Guids(guids).Usernames(usernames).PartialUsernames(partialUsernames).Origins(origins).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3UsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3UsersGet`: V3UsersGet200Response + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3UsersGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3UsersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of user guids to filter by | + **usernames** | **[]string** | Comma-delimited list of usernames to filter by. Mutually exclusive with partial_usernames | + **partialUsernames** | **[]string** | Comma-delimited list of strings to search by. When using this query parameter, all the users that contain the string provided in their username will be returned. Mutually exclusive with usernames | + **origins** | **[]string** | Comma-delimited list of user origins (user stores) to filter by, for example, users authenticated by UAA have the origin “uaa”; users authenticated by an LDAP provider have the origin “ldap”; when filtering by origins, usernames must be included | + **page** | **int32** | Page to display; valid values are integers >= 1 | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by. Defaults to ascending; prepend with - to sort descending | + **labelSelector** | **string** | A query string containing a list of label selector requirements | + **createdAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + **updatedAts** | **string** | Timestamp to filter by. When filtering on equality, several comma-delimited timestamps may be passed. Also supports filtering with relational operators | + +### Return type + +[**V3UsersGet200Response**](V3UsersGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3UsersGuidDelete + +> V3UsersGuidDelete(ctx, guid).Execute() + +Delete a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultAPI.V3UsersGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3UsersGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the user | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3UsersGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3UsersGuidGet + +> User V3UsersGuidGet(ctx, guid).Execute() + +Get a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3UsersGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3UsersGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3UsersGuidGet`: User + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3UsersGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the user | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3UsersGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**User**](User.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3UsersGuidPatch + +> User V3UsersGuidPatch(ctx, guid).V3UsersGuidPatchRequest(v3UsersGuidPatchRequest).Execute() + +Update a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "guid_example" // string | Unique identifier for the user + v3UsersGuidPatchRequest := *openapiclient.NewV3UsersGuidPatchRequest() // V3UsersGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3UsersGuidPatch(context.Background(), guid).V3UsersGuidPatchRequest(v3UsersGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3UsersGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3UsersGuidPatch`: User + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3UsersGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | Unique identifier for the user | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3UsersGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3UsersGuidPatchRequest** | [**V3UsersGuidPatchRequest**](V3UsersGuidPatchRequest.md) | | + +### Return type + +[**User**](User.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3UsersPost + +> User V3UsersPost(ctx).V3UsersPostRequest(v3UsersPostRequest).Execute() + +Create a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3UsersPostRequest := *openapiclient.NewV3UsersPostRequest() // V3UsersPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultAPI.V3UsersPost(context.Background()).V3UsersPostRequest(v3UsersPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.V3UsersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3UsersPost`: User + fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.V3UsersPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3UsersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3UsersPostRequest** | [**V3UsersPostRequest**](V3UsersPostRequest.md) | | + +### Return type + +[**User**](User.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/DeleteOrganizationQuota202Response.md b/docs/DeleteOrganizationQuota202Response.md new file mode 100644 index 0000000..87a4768 --- /dev/null +++ b/docs/DeleteOrganizationQuota202Response.md @@ -0,0 +1,56 @@ +# DeleteOrganizationQuota202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | Pointer to **string** | URL to track the deletion job | [optional] + +## Methods + +### NewDeleteOrganizationQuota202Response + +`func NewDeleteOrganizationQuota202Response() *DeleteOrganizationQuota202Response` + +NewDeleteOrganizationQuota202Response instantiates a new DeleteOrganizationQuota202Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteOrganizationQuota202ResponseWithDefaults + +`func NewDeleteOrganizationQuota202ResponseWithDefaults() *DeleteOrganizationQuota202Response` + +NewDeleteOrganizationQuota202ResponseWithDefaults instantiates a new DeleteOrganizationQuota202Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLocation + +`func (o *DeleteOrganizationQuota202Response) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *DeleteOrganizationQuota202Response) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *DeleteOrganizationQuota202Response) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *DeleteOrganizationQuota202Response) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Destination.md b/docs/Destination.md new file mode 100644 index 0000000..6befc32 --- /dev/null +++ b/docs/Destination.md @@ -0,0 +1,180 @@ +# Destination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**DestinationApp**](DestinationApp.md) | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**Protocol** | Pointer to **NullableString** | | [optional] +**Weight** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewDestination + +`func NewDestination() *Destination` + +NewDestination instantiates a new Destination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDestinationWithDefaults + +`func NewDestinationWithDefaults() *Destination` + +NewDestinationWithDefaults instantiates a new Destination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *Destination) GetApp() DestinationApp` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *Destination) GetAppOk() (*DestinationApp, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *Destination) SetApp(v DestinationApp)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *Destination) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetGuid + +`func (o *Destination) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Destination) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Destination) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Destination) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetPort + +`func (o *Destination) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *Destination) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *Destination) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *Destination) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetProtocol + +`func (o *Destination) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *Destination) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *Destination) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *Destination) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### SetProtocolNil + +`func (o *Destination) SetProtocolNil(b bool)` + + SetProtocolNil sets the value for Protocol to be an explicit nil + +### UnsetProtocol +`func (o *Destination) UnsetProtocol()` + +UnsetProtocol ensures that no value is present for Protocol, not even an explicit nil +### GetWeight + +`func (o *Destination) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Destination) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Destination) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Destination) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *Destination) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *Destination) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DestinationApp.md b/docs/DestinationApp.md new file mode 100644 index 0000000..2b6306b --- /dev/null +++ b/docs/DestinationApp.md @@ -0,0 +1,82 @@ +# DestinationApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Process** | Pointer to [**DestinationAppProcess**](DestinationAppProcess.md) | | [optional] + +## Methods + +### NewDestinationApp + +`func NewDestinationApp() *DestinationApp` + +NewDestinationApp instantiates a new DestinationApp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDestinationAppWithDefaults + +`func NewDestinationAppWithDefaults() *DestinationApp` + +NewDestinationAppWithDefaults instantiates a new DestinationApp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *DestinationApp) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *DestinationApp) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *DestinationApp) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *DestinationApp) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetProcess + +`func (o *DestinationApp) GetProcess() DestinationAppProcess` + +GetProcess returns the Process field if non-nil, zero value otherwise. + +### GetProcessOk + +`func (o *DestinationApp) GetProcessOk() (*DestinationAppProcess, bool)` + +GetProcessOk returns a tuple with the Process field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcess + +`func (o *DestinationApp) SetProcess(v DestinationAppProcess)` + +SetProcess sets Process field to given value. + +### HasProcess + +`func (o *DestinationApp) HasProcess() bool` + +HasProcess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DestinationAppProcess.md b/docs/DestinationAppProcess.md new file mode 100644 index 0000000..ba44e04 --- /dev/null +++ b/docs/DestinationAppProcess.md @@ -0,0 +1,56 @@ +# DestinationAppProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewDestinationAppProcess + +`func NewDestinationAppProcess() *DestinationAppProcess` + +NewDestinationAppProcess instantiates a new DestinationAppProcess object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDestinationAppProcessWithDefaults + +`func NewDestinationAppProcessWithDefaults() *DestinationAppProcess` + +NewDestinationAppProcessWithDefaults instantiates a new DestinationAppProcess object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *DestinationAppProcess) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DestinationAppProcess) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DestinationAppProcess) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *DestinationAppProcess) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Domain.md b/docs/Domain.md new file mode 100644 index 0000000..dfe0f29 --- /dev/null +++ b/docs/Domain.md @@ -0,0 +1,290 @@ +# Domain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Internal** | Pointer to **bool** | | [optional] +**Links** | Pointer to [**DomainLinks**](DomainLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**DomainRelationships**](DomainRelationships.md) | | [optional] +**RouterGroup** | Pointer to [**V3DropletsPostRequestRelationshipsAppData**](V3DropletsPostRequestRelationshipsAppData.md) | | [optional] +**SupportedProtocols** | Pointer to **[]string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewDomain + +`func NewDomain() *Domain` + +NewDomain instantiates a new Domain object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainWithDefaults + +`func NewDomainWithDefaults() *Domain` + +NewDomainWithDefaults instantiates a new Domain object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Domain) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Domain) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Domain) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Domain) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *Domain) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Domain) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Domain) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Domain) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetInternal + +`func (o *Domain) GetInternal() bool` + +GetInternal returns the Internal field if non-nil, zero value otherwise. + +### GetInternalOk + +`func (o *Domain) GetInternalOk() (*bool, bool)` + +GetInternalOk returns a tuple with the Internal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternal + +`func (o *Domain) SetInternal(v bool)` + +SetInternal sets Internal field to given value. + +### HasInternal + +`func (o *Domain) HasInternal() bool` + +HasInternal returns a boolean if a field has been set. + +### GetLinks + +`func (o *Domain) GetLinks() DomainLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Domain) GetLinksOk() (*DomainLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Domain) SetLinks(v DomainLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Domain) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Domain) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Domain) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Domain) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Domain) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *Domain) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Domain) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Domain) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Domain) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Domain) GetRelationships() DomainRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Domain) GetRelationshipsOk() (*DomainRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Domain) SetRelationships(v DomainRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Domain) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRouterGroup + +`func (o *Domain) GetRouterGroup() V3DropletsPostRequestRelationshipsAppData` + +GetRouterGroup returns the RouterGroup field if non-nil, zero value otherwise. + +### GetRouterGroupOk + +`func (o *Domain) GetRouterGroupOk() (*V3DropletsPostRequestRelationshipsAppData, bool)` + +GetRouterGroupOk returns a tuple with the RouterGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouterGroup + +`func (o *Domain) SetRouterGroup(v V3DropletsPostRequestRelationshipsAppData)` + +SetRouterGroup sets RouterGroup field to given value. + +### HasRouterGroup + +`func (o *Domain) HasRouterGroup() bool` + +HasRouterGroup returns a boolean if a field has been set. + +### GetSupportedProtocols + +`func (o *Domain) GetSupportedProtocols() []string` + +GetSupportedProtocols returns the SupportedProtocols field if non-nil, zero value otherwise. + +### GetSupportedProtocolsOk + +`func (o *Domain) GetSupportedProtocolsOk() (*[]string, bool)` + +GetSupportedProtocolsOk returns a tuple with the SupportedProtocols field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedProtocols + +`func (o *Domain) SetSupportedProtocols(v []string)` + +SetSupportedProtocols sets SupportedProtocols field to given value. + +### HasSupportedProtocols + +`func (o *Domain) HasSupportedProtocols() bool` + +HasSupportedProtocols returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Domain) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Domain) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Domain) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Domain) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DomainLinks.md b/docs/DomainLinks.md new file mode 100644 index 0000000..56c6505 --- /dev/null +++ b/docs/DomainLinks.md @@ -0,0 +1,134 @@ +# DomainLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**RouteReservations** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**SharedOrganizations** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewDomainLinks + +`func NewDomainLinks() *DomainLinks` + +NewDomainLinks instantiates a new DomainLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainLinksWithDefaults + +`func NewDomainLinksWithDefaults() *DomainLinks` + +NewDomainLinksWithDefaults instantiates a new DomainLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *DomainLinks) GetOrganization() Get200ResponseLinksLogCache` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *DomainLinks) GetOrganizationOk() (*Get200ResponseLinksLogCache, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *DomainLinks) SetOrganization(v Get200ResponseLinksLogCache)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *DomainLinks) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetRouteReservations + +`func (o *DomainLinks) GetRouteReservations() Get200ResponseLinksLogCache` + +GetRouteReservations returns the RouteReservations field if non-nil, zero value otherwise. + +### GetRouteReservationsOk + +`func (o *DomainLinks) GetRouteReservationsOk() (*Get200ResponseLinksLogCache, bool)` + +GetRouteReservationsOk returns a tuple with the RouteReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouteReservations + +`func (o *DomainLinks) SetRouteReservations(v Get200ResponseLinksLogCache)` + +SetRouteReservations sets RouteReservations field to given value. + +### HasRouteReservations + +`func (o *DomainLinks) HasRouteReservations() bool` + +HasRouteReservations returns a boolean if a field has been set. + +### GetSelf + +`func (o *DomainLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *DomainLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *DomainLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *DomainLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSharedOrganizations + +`func (o *DomainLinks) GetSharedOrganizations() Get200ResponseLinksLogCache` + +GetSharedOrganizations returns the SharedOrganizations field if non-nil, zero value otherwise. + +### GetSharedOrganizationsOk + +`func (o *DomainLinks) GetSharedOrganizationsOk() (*Get200ResponseLinksLogCache, bool)` + +GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedOrganizations + +`func (o *DomainLinks) SetSharedOrganizations(v Get200ResponseLinksLogCache)` + +SetSharedOrganizations sets SharedOrganizations field to given value. + +### HasSharedOrganizations + +`func (o *DomainLinks) HasSharedOrganizations() bool` + +HasSharedOrganizations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DomainRelationships.md b/docs/DomainRelationships.md new file mode 100644 index 0000000..0bc721f --- /dev/null +++ b/docs/DomainRelationships.md @@ -0,0 +1,82 @@ +# DomainRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**V3DropletsPostRequestRelationshipsApp**](V3DropletsPostRequestRelationshipsApp.md) | | [optional] +**SharedOrganizations** | Pointer to [**DomainRelationshipsSharedOrganizations**](DomainRelationshipsSharedOrganizations.md) | | [optional] + +## Methods + +### NewDomainRelationships + +`func NewDomainRelationships() *DomainRelationships` + +NewDomainRelationships instantiates a new DomainRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainRelationshipsWithDefaults + +`func NewDomainRelationshipsWithDefaults() *DomainRelationships` + +NewDomainRelationshipsWithDefaults instantiates a new DomainRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *DomainRelationships) GetOrganization() V3DropletsPostRequestRelationshipsApp` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *DomainRelationships) GetOrganizationOk() (*V3DropletsPostRequestRelationshipsApp, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *DomainRelationships) SetOrganization(v V3DropletsPostRequestRelationshipsApp)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *DomainRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSharedOrganizations + +`func (o *DomainRelationships) GetSharedOrganizations() DomainRelationshipsSharedOrganizations` + +GetSharedOrganizations returns the SharedOrganizations field if non-nil, zero value otherwise. + +### GetSharedOrganizationsOk + +`func (o *DomainRelationships) GetSharedOrganizationsOk() (*DomainRelationshipsSharedOrganizations, bool)` + +GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedOrganizations + +`func (o *DomainRelationships) SetSharedOrganizations(v DomainRelationshipsSharedOrganizations)` + +SetSharedOrganizations sets SharedOrganizations field to given value. + +### HasSharedOrganizations + +`func (o *DomainRelationships) HasSharedOrganizations() bool` + +HasSharedOrganizations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DomainRelationshipsSharedOrganizations.md b/docs/DomainRelationshipsSharedOrganizations.md new file mode 100644 index 0000000..4935c10 --- /dev/null +++ b/docs/DomainRelationshipsSharedOrganizations.md @@ -0,0 +1,56 @@ +# DomainRelationshipsSharedOrganizations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3DropletsPostRequestRelationshipsAppData**](V3DropletsPostRequestRelationshipsAppData.md) | | [optional] + +## Methods + +### NewDomainRelationshipsSharedOrganizations + +`func NewDomainRelationshipsSharedOrganizations() *DomainRelationshipsSharedOrganizations` + +NewDomainRelationshipsSharedOrganizations instantiates a new DomainRelationshipsSharedOrganizations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainRelationshipsSharedOrganizationsWithDefaults + +`func NewDomainRelationshipsSharedOrganizationsWithDefaults() *DomainRelationshipsSharedOrganizations` + +NewDomainRelationshipsSharedOrganizationsWithDefaults instantiates a new DomainRelationshipsSharedOrganizations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *DomainRelationshipsSharedOrganizations) GetData() []V3DropletsPostRequestRelationshipsAppData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DomainRelationshipsSharedOrganizations) GetDataOk() (*[]V3DropletsPostRequestRelationshipsAppData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DomainRelationshipsSharedOrganizations) SetData(v []V3DropletsPostRequestRelationshipsAppData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DomainRelationshipsSharedOrganizations) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DomainsAPI.md b/docs/DomainsAPI.md new file mode 100644 index 0000000..7b80353 --- /dev/null +++ b/docs/DomainsAPI.md @@ -0,0 +1,516 @@ +# \DomainsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V3DomainsGet**](DomainsAPI.md#V3DomainsGet) | **Get** /v3/domains | List domains +[**V3DomainsGuidDelete**](DomainsAPI.md#V3DomainsGuidDelete) | **Delete** /v3/domains/{guid} | Delete a domain +[**V3DomainsGuidGet**](DomainsAPI.md#V3DomainsGuidGet) | **Get** /v3/domains/{guid} | Get a domain +[**V3DomainsGuidPatch**](DomainsAPI.md#V3DomainsGuidPatch) | **Patch** /v3/domains/{guid} | Update a domain +[**V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete**](DomainsAPI.md#V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete) | **Delete** /v3/domains/{guid}/relationships/shared_organizations/{org_guid} | Unshare a domain +[**V3DomainsGuidRelationshipsSharedOrganizationsPost**](DomainsAPI.md#V3DomainsGuidRelationshipsSharedOrganizationsPost) | **Post** /v3/domains/{guid}/relationships/shared_organizations | Share a domain +[**V3DomainsPost**](DomainsAPI.md#V3DomainsPost) | **Post** /v3/domains | Create a domain + + + +## V3DomainsGet + +> V3DomainsGet200Response V3DomainsGet(ctx).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + +List domains + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guids := []string{"Inner_example"} // []string | Comma-delimited list of guids to filter by (optional) + names := []string{"Inner_example"} // []string | Comma-delimited list of domain names to filter by (optional) + organizationGuids := []string{"Inner_example"} // []string | Comma-delimited list of owning organization guids to filter by (optional) + page := int32(56) // int32 | Page to display (optional) + perPage := int32(56) // int32 | Number of results per page (optional) + orderBy := "orderBy_example" // string | Value to sort by (optional) + labelSelector := "labelSelector_example" // string | List of label selector requirements (optional) + createdAts := "createdAts_example" // string | Timestamp to filter by (optional) + updatedAts := "updatedAts_example" // string | Timestamp to filter by (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainsAPI.V3DomainsGet(context.Background()).Guids(guids).Names(names).OrganizationGuids(organizationGuids).Page(page).PerPage(perPage).OrderBy(orderBy).LabelSelector(labelSelector).CreatedAts(createdAts).UpdatedAts(updatedAts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DomainsGet`: V3DomainsGet200Response + fmt.Fprintf(os.Stdout, "Response from `DomainsAPI.V3DomainsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **guids** | **[]string** | Comma-delimited list of guids to filter by | + **names** | **[]string** | Comma-delimited list of domain names to filter by | + **organizationGuids** | **[]string** | Comma-delimited list of owning organization guids to filter by | + **page** | **int32** | Page to display | + **perPage** | **int32** | Number of results per page | + **orderBy** | **string** | Value to sort by | + **labelSelector** | **string** | List of label selector requirements | + **createdAts** | **string** | Timestamp to filter by | + **updatedAts** | **string** | Timestamp to filter by | + +### Return type + +[**V3DomainsGet200Response**](V3DomainsGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsGuidDelete + +> V3DomainsGuidDelete(ctx, guid).Execute() + +Delete a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DomainsAPI.V3DomainsGuidDelete(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsGuidGet + +> Domain V3DomainsGuidGet(ctx, guid).Execute() + +Get a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainsAPI.V3DomainsGuidGet(context.Background(), guid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DomainsGuidGet`: Domain + fmt.Fprintf(os.Stdout, "Response from `DomainsAPI.V3DomainsGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Domain**](Domain.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsGuidPatch + +> Domain V3DomainsGuidPatch(ctx, guid).V3DomainsGuidPatchRequest(v3DomainsGuidPatchRequest).Execute() + +Update a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + v3DomainsGuidPatchRequest := *openapiclient.NewV3DomainsGuidPatchRequest() // V3DomainsGuidPatchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainsAPI.V3DomainsGuidPatch(context.Background(), guid).V3DomainsGuidPatchRequest(v3DomainsGuidPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGuidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DomainsGuidPatch`: Domain + fmt.Fprintf(os.Stdout, "Response from `DomainsAPI.V3DomainsGuidPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGuidPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3DomainsGuidPatchRequest** | [**V3DomainsGuidPatchRequest**](V3DomainsGuidPatchRequest.md) | | + +### Return type + +[**Domain**](Domain.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete + +> V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete(ctx, guid, orgGuid).Execute() + +Unshare a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + orgGuid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete(context.Background(), guid, orgGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | +**orgGuid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsGuidRelationshipsSharedOrganizationsPost + +> V3DomainsGuidRelationshipsSharedOrganizationsPost200Response V3DomainsGuidRelationshipsSharedOrganizationsPost(ctx, guid).V3DomainsGuidRelationshipsSharedOrganizationsPostRequest(v3DomainsGuidRelationshipsSharedOrganizationsPostRequest).Execute() + +Share a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + guid := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + v3DomainsGuidRelationshipsSharedOrganizationsPostRequest := *openapiclient.NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest() // V3DomainsGuidRelationshipsSharedOrganizationsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsPost(context.Background(), guid).V3DomainsGuidRelationshipsSharedOrganizationsPostRequest(v3DomainsGuidRelationshipsSharedOrganizationsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DomainsGuidRelationshipsSharedOrganizationsPost`: V3DomainsGuidRelationshipsSharedOrganizationsPost200Response + fmt.Fprintf(os.Stdout, "Response from `DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**guid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsGuidRelationshipsSharedOrganizationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **v3DomainsGuidRelationshipsSharedOrganizationsPostRequest** | [**V3DomainsGuidRelationshipsSharedOrganizationsPostRequest**](V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md) | | + +### Return type + +[**V3DomainsGuidRelationshipsSharedOrganizationsPost200Response**](V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V3DomainsPost + +> Domain V3DomainsPost(ctx).V3DomainsPostRequest(v3DomainsPostRequest).Execute() + +Create a domain + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func main() { + v3DomainsPostRequest := *openapiclient.NewV3DomainsPostRequest() // V3DomainsPostRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainsAPI.V3DomainsPost(context.Background()).V3DomainsPostRequest(v3DomainsPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainsAPI.V3DomainsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V3DomainsPost`: Domain + fmt.Fprintf(os.Stdout, "Response from `DomainsAPI.V3DomainsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV3DomainsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v3DomainsPostRequest** | [**V3DomainsPostRequest**](V3DomainsPostRequest.md) | | + +### Return type + +[**Domain**](Domain.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/DomainsQuota.md b/docs/DomainsQuota.md new file mode 100644 index 0000000..6e403af --- /dev/null +++ b/docs/DomainsQuota.md @@ -0,0 +1,66 @@ +# DomainsQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalDomains** | Pointer to **NullableInt32** | Total number of domains that can be scoped to an organization | [optional] + +## Methods + +### NewDomainsQuota + +`func NewDomainsQuota() *DomainsQuota` + +NewDomainsQuota instantiates a new DomainsQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainsQuotaWithDefaults + +`func NewDomainsQuotaWithDefaults() *DomainsQuota` + +NewDomainsQuotaWithDefaults instantiates a new DomainsQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalDomains + +`func (o *DomainsQuota) GetTotalDomains() int32` + +GetTotalDomains returns the TotalDomains field if non-nil, zero value otherwise. + +### GetTotalDomainsOk + +`func (o *DomainsQuota) GetTotalDomainsOk() (*int32, bool)` + +GetTotalDomainsOk returns a tuple with the TotalDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalDomains + +`func (o *DomainsQuota) SetTotalDomains(v int32)` + +SetTotalDomains sets TotalDomains field to given value. + +### HasTotalDomains + +`func (o *DomainsQuota) HasTotalDomains() bool` + +HasTotalDomains returns a boolean if a field has been set. + +### SetTotalDomainsNil + +`func (o *DomainsQuota) SetTotalDomainsNil(b bool)` + + SetTotalDomainsNil sets the value for TotalDomains to be an explicit nil + +### UnsetTotalDomains +`func (o *DomainsQuota) UnsetTotalDomains()` + +UnsetTotalDomains ensures that no value is present for TotalDomains, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Droplet.md b/docs/Droplet.md new file mode 100644 index 0000000..1ffb1ca --- /dev/null +++ b/docs/Droplet.md @@ -0,0 +1,420 @@ +# Droplet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buildpacks** | Pointer to [**[]Buildpack**](Buildpack.md) | | [optional] +**Checksum** | Pointer to [**DropletChecksum**](DropletChecksum.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Error** | Pointer to **string** | | [optional] +**ExecutionMetadata** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Image** | Pointer to **string** | | [optional] +**Lifecycle** | Pointer to [**DropletLifecycle**](DropletLifecycle.md) | | [optional] +**Links** | Pointer to [**DropletLinks**](DropletLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**ProcessTypes** | Pointer to **map[string]string** | | [optional] +**Relationships** | Pointer to [**V3DropletsPostRequestRelationships**](V3DropletsPostRequestRelationships.md) | | [optional] +**Stack** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewDroplet + +`func NewDroplet() *Droplet` + +NewDroplet instantiates a new Droplet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDropletWithDefaults + +`func NewDropletWithDefaults() *Droplet` + +NewDropletWithDefaults instantiates a new Droplet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpacks + +`func (o *Droplet) GetBuildpacks() []Buildpack` + +GetBuildpacks returns the Buildpacks field if non-nil, zero value otherwise. + +### GetBuildpacksOk + +`func (o *Droplet) GetBuildpacksOk() (*[]Buildpack, bool)` + +GetBuildpacksOk returns a tuple with the Buildpacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpacks + +`func (o *Droplet) SetBuildpacks(v []Buildpack)` + +SetBuildpacks sets Buildpacks field to given value. + +### HasBuildpacks + +`func (o *Droplet) HasBuildpacks() bool` + +HasBuildpacks returns a boolean if a field has been set. + +### GetChecksum + +`func (o *Droplet) GetChecksum() DropletChecksum` + +GetChecksum returns the Checksum field if non-nil, zero value otherwise. + +### GetChecksumOk + +`func (o *Droplet) GetChecksumOk() (*DropletChecksum, bool)` + +GetChecksumOk returns a tuple with the Checksum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksum + +`func (o *Droplet) SetChecksum(v DropletChecksum)` + +SetChecksum sets Checksum field to given value. + +### HasChecksum + +`func (o *Droplet) HasChecksum() bool` + +HasChecksum returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Droplet) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Droplet) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Droplet) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Droplet) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetError + +`func (o *Droplet) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Droplet) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Droplet) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *Droplet) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetExecutionMetadata + +`func (o *Droplet) GetExecutionMetadata() string` + +GetExecutionMetadata returns the ExecutionMetadata field if non-nil, zero value otherwise. + +### GetExecutionMetadataOk + +`func (o *Droplet) GetExecutionMetadataOk() (*string, bool)` + +GetExecutionMetadataOk returns a tuple with the ExecutionMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionMetadata + +`func (o *Droplet) SetExecutionMetadata(v string)` + +SetExecutionMetadata sets ExecutionMetadata field to given value. + +### HasExecutionMetadata + +`func (o *Droplet) HasExecutionMetadata() bool` + +HasExecutionMetadata returns a boolean if a field has been set. + +### GetGuid + +`func (o *Droplet) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Droplet) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Droplet) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Droplet) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetImage + +`func (o *Droplet) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *Droplet) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *Droplet) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *Droplet) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetLifecycle + +`func (o *Droplet) GetLifecycle() DropletLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *Droplet) GetLifecycleOk() (*DropletLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *Droplet) SetLifecycle(v DropletLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + +### HasLifecycle + +`func (o *Droplet) HasLifecycle() bool` + +HasLifecycle returns a boolean if a field has been set. + +### GetLinks + +`func (o *Droplet) GetLinks() DropletLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Droplet) GetLinksOk() (*DropletLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Droplet) SetLinks(v DropletLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Droplet) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Droplet) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Droplet) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Droplet) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Droplet) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProcessTypes + +`func (o *Droplet) GetProcessTypes() map[string]string` + +GetProcessTypes returns the ProcessTypes field if non-nil, zero value otherwise. + +### GetProcessTypesOk + +`func (o *Droplet) GetProcessTypesOk() (*map[string]string, bool)` + +GetProcessTypesOk returns a tuple with the ProcessTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessTypes + +`func (o *Droplet) SetProcessTypes(v map[string]string)` + +SetProcessTypes sets ProcessTypes field to given value. + +### HasProcessTypes + +`func (o *Droplet) HasProcessTypes() bool` + +HasProcessTypes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Droplet) GetRelationships() V3DropletsPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Droplet) GetRelationshipsOk() (*V3DropletsPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Droplet) SetRelationships(v V3DropletsPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Droplet) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetStack + +`func (o *Droplet) GetStack() string` + +GetStack returns the Stack field if non-nil, zero value otherwise. + +### GetStackOk + +`func (o *Droplet) GetStackOk() (*string, bool)` + +GetStackOk returns a tuple with the Stack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStack + +`func (o *Droplet) SetStack(v string)` + +SetStack sets Stack field to given value. + +### HasStack + +`func (o *Droplet) HasStack() bool` + +HasStack returns a boolean if a field has been set. + +### GetState + +`func (o *Droplet) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Droplet) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *Droplet) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *Droplet) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Droplet) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Droplet) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Droplet) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Droplet) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DropletChecksum.md b/docs/DropletChecksum.md new file mode 100644 index 0000000..836d249 --- /dev/null +++ b/docs/DropletChecksum.md @@ -0,0 +1,82 @@ +# DropletChecksum + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewDropletChecksum + +`func NewDropletChecksum() *DropletChecksum` + +NewDropletChecksum instantiates a new DropletChecksum object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDropletChecksumWithDefaults + +`func NewDropletChecksumWithDefaults() *DropletChecksum` + +NewDropletChecksumWithDefaults instantiates a new DropletChecksum object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *DropletChecksum) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DropletChecksum) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DropletChecksum) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *DropletChecksum) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValue + +`func (o *DropletChecksum) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DropletChecksum) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DropletChecksum) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DropletChecksum) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DropletLifecycle.md b/docs/DropletLifecycle.md new file mode 100644 index 0000000..246dd3e --- /dev/null +++ b/docs/DropletLifecycle.md @@ -0,0 +1,82 @@ +# DropletLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **map[string]interface{}** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewDropletLifecycle + +`func NewDropletLifecycle() *DropletLifecycle` + +NewDropletLifecycle instantiates a new DropletLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDropletLifecycleWithDefaults + +`func NewDropletLifecycleWithDefaults() *DropletLifecycle` + +NewDropletLifecycleWithDefaults instantiates a new DropletLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *DropletLifecycle) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DropletLifecycle) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DropletLifecycle) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *DropletLifecycle) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *DropletLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DropletLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DropletLifecycle) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *DropletLifecycle) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DropletLinks.md b/docs/DropletLinks.md new file mode 100644 index 0000000..1dc6796 --- /dev/null +++ b/docs/DropletLinks.md @@ -0,0 +1,160 @@ +# DropletLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**AssignCurrentDroplet** | Pointer to [**DropletLinksAssignCurrentDroplet**](DropletLinksAssignCurrentDroplet.md) | | [optional] +**Download** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Package** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewDropletLinks + +`func NewDropletLinks() *DropletLinks` + +NewDropletLinks instantiates a new DropletLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDropletLinksWithDefaults + +`func NewDropletLinksWithDefaults() *DropletLinks` + +NewDropletLinksWithDefaults instantiates a new DropletLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *DropletLinks) GetApp() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *DropletLinks) GetAppOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *DropletLinks) SetApp(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *DropletLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetAssignCurrentDroplet + +`func (o *DropletLinks) GetAssignCurrentDroplet() DropletLinksAssignCurrentDroplet` + +GetAssignCurrentDroplet returns the AssignCurrentDroplet field if non-nil, zero value otherwise. + +### GetAssignCurrentDropletOk + +`func (o *DropletLinks) GetAssignCurrentDropletOk() (*DropletLinksAssignCurrentDroplet, bool)` + +GetAssignCurrentDropletOk returns a tuple with the AssignCurrentDroplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignCurrentDroplet + +`func (o *DropletLinks) SetAssignCurrentDroplet(v DropletLinksAssignCurrentDroplet)` + +SetAssignCurrentDroplet sets AssignCurrentDroplet field to given value. + +### HasAssignCurrentDroplet + +`func (o *DropletLinks) HasAssignCurrentDroplet() bool` + +HasAssignCurrentDroplet returns a boolean if a field has been set. + +### GetDownload + +`func (o *DropletLinks) GetDownload() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetDownload returns the Download field if non-nil, zero value otherwise. + +### GetDownloadOk + +`func (o *DropletLinks) GetDownloadOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetDownloadOk returns a tuple with the Download field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownload + +`func (o *DropletLinks) SetDownload(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetDownload sets Download field to given value. + +### HasDownload + +`func (o *DropletLinks) HasDownload() bool` + +HasDownload returns a boolean if a field has been set. + +### GetPackage + +`func (o *DropletLinks) GetPackage() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetPackage returns the Package field if non-nil, zero value otherwise. + +### GetPackageOk + +`func (o *DropletLinks) GetPackageOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackage + +`func (o *DropletLinks) SetPackage(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetPackage sets Package field to given value. + +### HasPackage + +`func (o *DropletLinks) HasPackage() bool` + +HasPackage returns a boolean if a field has been set. + +### GetSelf + +`func (o *DropletLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *DropletLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *DropletLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *DropletLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DropletLinksAssignCurrentDroplet.md b/docs/DropletLinksAssignCurrentDroplet.md new file mode 100644 index 0000000..30f5797 --- /dev/null +++ b/docs/DropletLinksAssignCurrentDroplet.md @@ -0,0 +1,82 @@ +# DropletLinksAssignCurrentDroplet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Method** | Pointer to **string** | | [optional] + +## Methods + +### NewDropletLinksAssignCurrentDroplet + +`func NewDropletLinksAssignCurrentDroplet() *DropletLinksAssignCurrentDroplet` + +NewDropletLinksAssignCurrentDroplet instantiates a new DropletLinksAssignCurrentDroplet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDropletLinksAssignCurrentDropletWithDefaults + +`func NewDropletLinksAssignCurrentDropletWithDefaults() *DropletLinksAssignCurrentDroplet` + +NewDropletLinksAssignCurrentDropletWithDefaults instantiates a new DropletLinksAssignCurrentDroplet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *DropletLinksAssignCurrentDroplet) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *DropletLinksAssignCurrentDroplet) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *DropletLinksAssignCurrentDroplet) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *DropletLinksAssignCurrentDroplet) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMethod + +`func (o *DropletLinksAssignCurrentDroplet) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *DropletLinksAssignCurrentDroplet) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *DropletLinksAssignCurrentDroplet) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *DropletLinksAssignCurrentDroplet) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EnvironmentVariableGroup.md b/docs/EnvironmentVariableGroup.md new file mode 100644 index 0000000..1e2c0f7 --- /dev/null +++ b/docs/EnvironmentVariableGroup.md @@ -0,0 +1,134 @@ +# EnvironmentVariableGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks**](V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Var** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewEnvironmentVariableGroup + +`func NewEnvironmentVariableGroup() *EnvironmentVariableGroup` + +NewEnvironmentVariableGroup instantiates a new EnvironmentVariableGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentVariableGroupWithDefaults + +`func NewEnvironmentVariableGroupWithDefaults() *EnvironmentVariableGroup` + +NewEnvironmentVariableGroupWithDefaults instantiates a new EnvironmentVariableGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *EnvironmentVariableGroup) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *EnvironmentVariableGroup) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *EnvironmentVariableGroup) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *EnvironmentVariableGroup) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *EnvironmentVariableGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EnvironmentVariableGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EnvironmentVariableGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *EnvironmentVariableGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *EnvironmentVariableGroup) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *EnvironmentVariableGroup) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *EnvironmentVariableGroup) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *EnvironmentVariableGroup) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetVar + +`func (o *EnvironmentVariableGroup) GetVar() map[string]string` + +GetVar returns the Var field if non-nil, zero value otherwise. + +### GetVarOk + +`func (o *EnvironmentVariableGroup) GetVarOk() (*map[string]string, bool)` + +GetVarOk returns a tuple with the Var field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVar + +`func (o *EnvironmentVariableGroup) SetVar(v map[string]string)` + +SetVar sets Var field to given value. + +### HasVar + +`func (o *EnvironmentVariableGroup) HasVar() bool` + +HasVar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EnvironmentVariables.md b/docs/EnvironmentVariables.md new file mode 100644 index 0000000..e395833 --- /dev/null +++ b/docs/EnvironmentVariables.md @@ -0,0 +1,82 @@ +# EnvironmentVariables + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**EnvironmentVariablesLinks**](EnvironmentVariablesLinks.md) | | [optional] +**Var** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewEnvironmentVariables + +`func NewEnvironmentVariables() *EnvironmentVariables` + +NewEnvironmentVariables instantiates a new EnvironmentVariables object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentVariablesWithDefaults + +`func NewEnvironmentVariablesWithDefaults() *EnvironmentVariables` + +NewEnvironmentVariablesWithDefaults instantiates a new EnvironmentVariables object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *EnvironmentVariables) GetLinks() EnvironmentVariablesLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *EnvironmentVariables) GetLinksOk() (*EnvironmentVariablesLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *EnvironmentVariables) SetLinks(v EnvironmentVariablesLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *EnvironmentVariables) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetVar + +`func (o *EnvironmentVariables) GetVar() map[string]string` + +GetVar returns the Var field if non-nil, zero value otherwise. + +### GetVarOk + +`func (o *EnvironmentVariables) GetVarOk() (*map[string]string, bool)` + +GetVarOk returns a tuple with the Var field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVar + +`func (o *EnvironmentVariables) SetVar(v map[string]string)` + +SetVar sets Var field to given value. + +### HasVar + +`func (o *EnvironmentVariables) HasVar() bool` + +HasVar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EnvironmentVariablesLinks.md b/docs/EnvironmentVariablesLinks.md new file mode 100644 index 0000000..47e4625 --- /dev/null +++ b/docs/EnvironmentVariablesLinks.md @@ -0,0 +1,108 @@ +# EnvironmentVariablesLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Revision** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewEnvironmentVariablesLinks + +`func NewEnvironmentVariablesLinks() *EnvironmentVariablesLinks` + +NewEnvironmentVariablesLinks instantiates a new EnvironmentVariablesLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnvironmentVariablesLinksWithDefaults + +`func NewEnvironmentVariablesLinksWithDefaults() *EnvironmentVariablesLinks` + +NewEnvironmentVariablesLinksWithDefaults instantiates a new EnvironmentVariablesLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *EnvironmentVariablesLinks) GetApp() Get200ResponseLinksLogCache` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *EnvironmentVariablesLinks) GetAppOk() (*Get200ResponseLinksLogCache, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *EnvironmentVariablesLinks) SetApp(v Get200ResponseLinksLogCache)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *EnvironmentVariablesLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetRevision + +`func (o *EnvironmentVariablesLinks) GetRevision() Get200ResponseLinksLogCache` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *EnvironmentVariablesLinks) GetRevisionOk() (*Get200ResponseLinksLogCache, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *EnvironmentVariablesLinks) SetRevision(v Get200ResponseLinksLogCache)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *EnvironmentVariablesLinks) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### GetSelf + +`func (o *EnvironmentVariablesLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *EnvironmentVariablesLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *EnvironmentVariablesLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *EnvironmentVariablesLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FeatureFlag.md b/docs/FeatureFlag.md new file mode 100644 index 0000000..a4d8fcb --- /dev/null +++ b/docs/FeatureFlag.md @@ -0,0 +1,160 @@ +# FeatureFlag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomErrorMessage** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Links** | Pointer to [**V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks**](V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewFeatureFlag + +`func NewFeatureFlag() *FeatureFlag` + +NewFeatureFlag instantiates a new FeatureFlag object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFeatureFlagWithDefaults + +`func NewFeatureFlagWithDefaults() *FeatureFlag` + +NewFeatureFlagWithDefaults instantiates a new FeatureFlag object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomErrorMessage + +`func (o *FeatureFlag) GetCustomErrorMessage() string` + +GetCustomErrorMessage returns the CustomErrorMessage field if non-nil, zero value otherwise. + +### GetCustomErrorMessageOk + +`func (o *FeatureFlag) GetCustomErrorMessageOk() (*string, bool)` + +GetCustomErrorMessageOk returns a tuple with the CustomErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomErrorMessage + +`func (o *FeatureFlag) SetCustomErrorMessage(v string)` + +SetCustomErrorMessage sets CustomErrorMessage field to given value. + +### HasCustomErrorMessage + +`func (o *FeatureFlag) HasCustomErrorMessage() bool` + +HasCustomErrorMessage returns a boolean if a field has been set. + +### GetEnabled + +`func (o *FeatureFlag) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *FeatureFlag) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *FeatureFlag) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *FeatureFlag) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetLinks + +`func (o *FeatureFlag) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *FeatureFlag) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *FeatureFlag) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *FeatureFlag) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *FeatureFlag) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FeatureFlag) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FeatureFlag) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FeatureFlag) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FeatureFlag) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FeatureFlag) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *FeatureFlag) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FeatureFlag) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200Response.md b/docs/Get200Response.md new file mode 100644 index 0000000..29fa136 --- /dev/null +++ b/docs/Get200Response.md @@ -0,0 +1,56 @@ +# Get200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**Get200ResponseLinks**](Get200ResponseLinks.md) | | [optional] + +## Methods + +### NewGet200Response + +`func NewGet200Response() *Get200Response` + +NewGet200Response instantiates a new Get200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseWithDefaults + +`func NewGet200ResponseWithDefaults() *Get200Response` + +NewGet200ResponseWithDefaults instantiates a new Get200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *Get200Response) GetLinks() Get200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Get200Response) GetLinksOk() (*Get200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Get200Response) SetLinks(v Get200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Get200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinks.md b/docs/Get200ResponseLinks.md new file mode 100644 index 0000000..665ae68 --- /dev/null +++ b/docs/Get200ResponseLinks.md @@ -0,0 +1,378 @@ +# Get200ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppSsh** | Pointer to [**Get200ResponseLinksAppSsh**](Get200ResponseLinksAppSsh.md) | | [optional] +**CloudControllerV2** | Pointer to [**Get200ResponseLinksCloudControllerV2**](Get200ResponseLinksCloudControllerV2.md) | | [optional] +**CloudControllerV3** | Pointer to [**Get200ResponseLinksCloudControllerV2**](Get200ResponseLinksCloudControllerV2.md) | | [optional] +**Credhub** | Pointer to **map[string]interface{}** | | [optional] +**LogCache** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**LogStream** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Logging** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Login** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**NetworkPolicyV0** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**NetworkPolicyV1** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Routing** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Uaa** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewGet200ResponseLinks + +`func NewGet200ResponseLinks() *Get200ResponseLinks` + +NewGet200ResponseLinks instantiates a new Get200ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksWithDefaults + +`func NewGet200ResponseLinksWithDefaults() *Get200ResponseLinks` + +NewGet200ResponseLinksWithDefaults instantiates a new Get200ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAppSsh + +`func (o *Get200ResponseLinks) GetAppSsh() Get200ResponseLinksAppSsh` + +GetAppSsh returns the AppSsh field if non-nil, zero value otherwise. + +### GetAppSshOk + +`func (o *Get200ResponseLinks) GetAppSshOk() (*Get200ResponseLinksAppSsh, bool)` + +GetAppSshOk returns a tuple with the AppSsh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppSsh + +`func (o *Get200ResponseLinks) SetAppSsh(v Get200ResponseLinksAppSsh)` + +SetAppSsh sets AppSsh field to given value. + +### HasAppSsh + +`func (o *Get200ResponseLinks) HasAppSsh() bool` + +HasAppSsh returns a boolean if a field has been set. + +### GetCloudControllerV2 + +`func (o *Get200ResponseLinks) GetCloudControllerV2() Get200ResponseLinksCloudControllerV2` + +GetCloudControllerV2 returns the CloudControllerV2 field if non-nil, zero value otherwise. + +### GetCloudControllerV2Ok + +`func (o *Get200ResponseLinks) GetCloudControllerV2Ok() (*Get200ResponseLinksCloudControllerV2, bool)` + +GetCloudControllerV2Ok returns a tuple with the CloudControllerV2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudControllerV2 + +`func (o *Get200ResponseLinks) SetCloudControllerV2(v Get200ResponseLinksCloudControllerV2)` + +SetCloudControllerV2 sets CloudControllerV2 field to given value. + +### HasCloudControllerV2 + +`func (o *Get200ResponseLinks) HasCloudControllerV2() bool` + +HasCloudControllerV2 returns a boolean if a field has been set. + +### GetCloudControllerV3 + +`func (o *Get200ResponseLinks) GetCloudControllerV3() Get200ResponseLinksCloudControllerV2` + +GetCloudControllerV3 returns the CloudControllerV3 field if non-nil, zero value otherwise. + +### GetCloudControllerV3Ok + +`func (o *Get200ResponseLinks) GetCloudControllerV3Ok() (*Get200ResponseLinksCloudControllerV2, bool)` + +GetCloudControllerV3Ok returns a tuple with the CloudControllerV3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudControllerV3 + +`func (o *Get200ResponseLinks) SetCloudControllerV3(v Get200ResponseLinksCloudControllerV2)` + +SetCloudControllerV3 sets CloudControllerV3 field to given value. + +### HasCloudControllerV3 + +`func (o *Get200ResponseLinks) HasCloudControllerV3() bool` + +HasCloudControllerV3 returns a boolean if a field has been set. + +### GetCredhub + +`func (o *Get200ResponseLinks) GetCredhub() map[string]interface{}` + +GetCredhub returns the Credhub field if non-nil, zero value otherwise. + +### GetCredhubOk + +`func (o *Get200ResponseLinks) GetCredhubOk() (*map[string]interface{}, bool)` + +GetCredhubOk returns a tuple with the Credhub field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredhub + +`func (o *Get200ResponseLinks) SetCredhub(v map[string]interface{})` + +SetCredhub sets Credhub field to given value. + +### HasCredhub + +`func (o *Get200ResponseLinks) HasCredhub() bool` + +HasCredhub returns a boolean if a field has been set. + +### SetCredhubNil + +`func (o *Get200ResponseLinks) SetCredhubNil(b bool)` + + SetCredhubNil sets the value for Credhub to be an explicit nil + +### UnsetCredhub +`func (o *Get200ResponseLinks) UnsetCredhub()` + +UnsetCredhub ensures that no value is present for Credhub, not even an explicit nil +### GetLogCache + +`func (o *Get200ResponseLinks) GetLogCache() Get200ResponseLinksLogCache` + +GetLogCache returns the LogCache field if non-nil, zero value otherwise. + +### GetLogCacheOk + +`func (o *Get200ResponseLinks) GetLogCacheOk() (*Get200ResponseLinksLogCache, bool)` + +GetLogCacheOk returns a tuple with the LogCache field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogCache + +`func (o *Get200ResponseLinks) SetLogCache(v Get200ResponseLinksLogCache)` + +SetLogCache sets LogCache field to given value. + +### HasLogCache + +`func (o *Get200ResponseLinks) HasLogCache() bool` + +HasLogCache returns a boolean if a field has been set. + +### GetLogStream + +`func (o *Get200ResponseLinks) GetLogStream() Get200ResponseLinksLogCache` + +GetLogStream returns the LogStream field if non-nil, zero value otherwise. + +### GetLogStreamOk + +`func (o *Get200ResponseLinks) GetLogStreamOk() (*Get200ResponseLinksLogCache, bool)` + +GetLogStreamOk returns a tuple with the LogStream field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogStream + +`func (o *Get200ResponseLinks) SetLogStream(v Get200ResponseLinksLogCache)` + +SetLogStream sets LogStream field to given value. + +### HasLogStream + +`func (o *Get200ResponseLinks) HasLogStream() bool` + +HasLogStream returns a boolean if a field has been set. + +### GetLogging + +`func (o *Get200ResponseLinks) GetLogging() Get200ResponseLinksLogCache` + +GetLogging returns the Logging field if non-nil, zero value otherwise. + +### GetLoggingOk + +`func (o *Get200ResponseLinks) GetLoggingOk() (*Get200ResponseLinksLogCache, bool)` + +GetLoggingOk returns a tuple with the Logging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogging + +`func (o *Get200ResponseLinks) SetLogging(v Get200ResponseLinksLogCache)` + +SetLogging sets Logging field to given value. + +### HasLogging + +`func (o *Get200ResponseLinks) HasLogging() bool` + +HasLogging returns a boolean if a field has been set. + +### GetLogin + +`func (o *Get200ResponseLinks) GetLogin() Get200ResponseLinksLogCache` + +GetLogin returns the Login field if non-nil, zero value otherwise. + +### GetLoginOk + +`func (o *Get200ResponseLinks) GetLoginOk() (*Get200ResponseLinksLogCache, bool)` + +GetLoginOk returns a tuple with the Login field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogin + +`func (o *Get200ResponseLinks) SetLogin(v Get200ResponseLinksLogCache)` + +SetLogin sets Login field to given value. + +### HasLogin + +`func (o *Get200ResponseLinks) HasLogin() bool` + +HasLogin returns a boolean if a field has been set. + +### GetNetworkPolicyV0 + +`func (o *Get200ResponseLinks) GetNetworkPolicyV0() Get200ResponseLinksLogCache` + +GetNetworkPolicyV0 returns the NetworkPolicyV0 field if non-nil, zero value otherwise. + +### GetNetworkPolicyV0Ok + +`func (o *Get200ResponseLinks) GetNetworkPolicyV0Ok() (*Get200ResponseLinksLogCache, bool)` + +GetNetworkPolicyV0Ok returns a tuple with the NetworkPolicyV0 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkPolicyV0 + +`func (o *Get200ResponseLinks) SetNetworkPolicyV0(v Get200ResponseLinksLogCache)` + +SetNetworkPolicyV0 sets NetworkPolicyV0 field to given value. + +### HasNetworkPolicyV0 + +`func (o *Get200ResponseLinks) HasNetworkPolicyV0() bool` + +HasNetworkPolicyV0 returns a boolean if a field has been set. + +### GetNetworkPolicyV1 + +`func (o *Get200ResponseLinks) GetNetworkPolicyV1() Get200ResponseLinksLogCache` + +GetNetworkPolicyV1 returns the NetworkPolicyV1 field if non-nil, zero value otherwise. + +### GetNetworkPolicyV1Ok + +`func (o *Get200ResponseLinks) GetNetworkPolicyV1Ok() (*Get200ResponseLinksLogCache, bool)` + +GetNetworkPolicyV1Ok returns a tuple with the NetworkPolicyV1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkPolicyV1 + +`func (o *Get200ResponseLinks) SetNetworkPolicyV1(v Get200ResponseLinksLogCache)` + +SetNetworkPolicyV1 sets NetworkPolicyV1 field to given value. + +### HasNetworkPolicyV1 + +`func (o *Get200ResponseLinks) HasNetworkPolicyV1() bool` + +HasNetworkPolicyV1 returns a boolean if a field has been set. + +### GetRouting + +`func (o *Get200ResponseLinks) GetRouting() Get200ResponseLinksLogCache` + +GetRouting returns the Routing field if non-nil, zero value otherwise. + +### GetRoutingOk + +`func (o *Get200ResponseLinks) GetRoutingOk() (*Get200ResponseLinksLogCache, bool)` + +GetRoutingOk returns a tuple with the Routing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouting + +`func (o *Get200ResponseLinks) SetRouting(v Get200ResponseLinksLogCache)` + +SetRouting sets Routing field to given value. + +### HasRouting + +`func (o *Get200ResponseLinks) HasRouting() bool` + +HasRouting returns a boolean if a field has been set. + +### GetSelf + +`func (o *Get200ResponseLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *Get200ResponseLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *Get200ResponseLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *Get200ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetUaa + +`func (o *Get200ResponseLinks) GetUaa() Get200ResponseLinksLogCache` + +GetUaa returns the Uaa field if non-nil, zero value otherwise. + +### GetUaaOk + +`func (o *Get200ResponseLinks) GetUaaOk() (*Get200ResponseLinksLogCache, bool)` + +GetUaaOk returns a tuple with the Uaa field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUaa + +`func (o *Get200ResponseLinks) SetUaa(v Get200ResponseLinksLogCache)` + +SetUaa sets Uaa field to given value. + +### HasUaa + +`func (o *Get200ResponseLinks) HasUaa() bool` + +HasUaa returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinksAppSsh.md b/docs/Get200ResponseLinksAppSsh.md new file mode 100644 index 0000000..064aeeb --- /dev/null +++ b/docs/Get200ResponseLinksAppSsh.md @@ -0,0 +1,82 @@ +# Get200ResponseLinksAppSsh + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Meta** | Pointer to [**Get200ResponseLinksAppSshMeta**](Get200ResponseLinksAppSshMeta.md) | | [optional] + +## Methods + +### NewGet200ResponseLinksAppSsh + +`func NewGet200ResponseLinksAppSsh() *Get200ResponseLinksAppSsh` + +NewGet200ResponseLinksAppSsh instantiates a new Get200ResponseLinksAppSsh object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksAppSshWithDefaults + +`func NewGet200ResponseLinksAppSshWithDefaults() *Get200ResponseLinksAppSsh` + +NewGet200ResponseLinksAppSshWithDefaults instantiates a new Get200ResponseLinksAppSsh object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *Get200ResponseLinksAppSsh) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Get200ResponseLinksAppSsh) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Get200ResponseLinksAppSsh) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Get200ResponseLinksAppSsh) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMeta + +`func (o *Get200ResponseLinksAppSsh) GetMeta() Get200ResponseLinksAppSshMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *Get200ResponseLinksAppSsh) GetMetaOk() (*Get200ResponseLinksAppSshMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *Get200ResponseLinksAppSsh) SetMeta(v Get200ResponseLinksAppSshMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *Get200ResponseLinksAppSsh) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinksAppSshMeta.md b/docs/Get200ResponseLinksAppSshMeta.md new file mode 100644 index 0000000..384c59f --- /dev/null +++ b/docs/Get200ResponseLinksAppSshMeta.md @@ -0,0 +1,82 @@ +# Get200ResponseLinksAppSshMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostKeyFingerprint** | Pointer to **string** | | [optional] +**OauthClient** | Pointer to **string** | | [optional] + +## Methods + +### NewGet200ResponseLinksAppSshMeta + +`func NewGet200ResponseLinksAppSshMeta() *Get200ResponseLinksAppSshMeta` + +NewGet200ResponseLinksAppSshMeta instantiates a new Get200ResponseLinksAppSshMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksAppSshMetaWithDefaults + +`func NewGet200ResponseLinksAppSshMetaWithDefaults() *Get200ResponseLinksAppSshMeta` + +NewGet200ResponseLinksAppSshMetaWithDefaults instantiates a new Get200ResponseLinksAppSshMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHostKeyFingerprint + +`func (o *Get200ResponseLinksAppSshMeta) GetHostKeyFingerprint() string` + +GetHostKeyFingerprint returns the HostKeyFingerprint field if non-nil, zero value otherwise. + +### GetHostKeyFingerprintOk + +`func (o *Get200ResponseLinksAppSshMeta) GetHostKeyFingerprintOk() (*string, bool)` + +GetHostKeyFingerprintOk returns a tuple with the HostKeyFingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostKeyFingerprint + +`func (o *Get200ResponseLinksAppSshMeta) SetHostKeyFingerprint(v string)` + +SetHostKeyFingerprint sets HostKeyFingerprint field to given value. + +### HasHostKeyFingerprint + +`func (o *Get200ResponseLinksAppSshMeta) HasHostKeyFingerprint() bool` + +HasHostKeyFingerprint returns a boolean if a field has been set. + +### GetOauthClient + +`func (o *Get200ResponseLinksAppSshMeta) GetOauthClient() string` + +GetOauthClient returns the OauthClient field if non-nil, zero value otherwise. + +### GetOauthClientOk + +`func (o *Get200ResponseLinksAppSshMeta) GetOauthClientOk() (*string, bool)` + +GetOauthClientOk returns a tuple with the OauthClient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauthClient + +`func (o *Get200ResponseLinksAppSshMeta) SetOauthClient(v string)` + +SetOauthClient sets OauthClient field to given value. + +### HasOauthClient + +`func (o *Get200ResponseLinksAppSshMeta) HasOauthClient() bool` + +HasOauthClient returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinksCloudControllerV2.md b/docs/Get200ResponseLinksCloudControllerV2.md new file mode 100644 index 0000000..80691c4 --- /dev/null +++ b/docs/Get200ResponseLinksCloudControllerV2.md @@ -0,0 +1,82 @@ +# Get200ResponseLinksCloudControllerV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Meta** | Pointer to [**Get200ResponseLinksCloudControllerV2Meta**](Get200ResponseLinksCloudControllerV2Meta.md) | | [optional] + +## Methods + +### NewGet200ResponseLinksCloudControllerV2 + +`func NewGet200ResponseLinksCloudControllerV2() *Get200ResponseLinksCloudControllerV2` + +NewGet200ResponseLinksCloudControllerV2 instantiates a new Get200ResponseLinksCloudControllerV2 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksCloudControllerV2WithDefaults + +`func NewGet200ResponseLinksCloudControllerV2WithDefaults() *Get200ResponseLinksCloudControllerV2` + +NewGet200ResponseLinksCloudControllerV2WithDefaults instantiates a new Get200ResponseLinksCloudControllerV2 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *Get200ResponseLinksCloudControllerV2) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Get200ResponseLinksCloudControllerV2) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Get200ResponseLinksCloudControllerV2) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Get200ResponseLinksCloudControllerV2) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMeta + +`func (o *Get200ResponseLinksCloudControllerV2) GetMeta() Get200ResponseLinksCloudControllerV2Meta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *Get200ResponseLinksCloudControllerV2) GetMetaOk() (*Get200ResponseLinksCloudControllerV2Meta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *Get200ResponseLinksCloudControllerV2) SetMeta(v Get200ResponseLinksCloudControllerV2Meta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *Get200ResponseLinksCloudControllerV2) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinksCloudControllerV2Meta.md b/docs/Get200ResponseLinksCloudControllerV2Meta.md new file mode 100644 index 0000000..488aa6c --- /dev/null +++ b/docs/Get200ResponseLinksCloudControllerV2Meta.md @@ -0,0 +1,56 @@ +# Get200ResponseLinksCloudControllerV2Meta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewGet200ResponseLinksCloudControllerV2Meta + +`func NewGet200ResponseLinksCloudControllerV2Meta() *Get200ResponseLinksCloudControllerV2Meta` + +NewGet200ResponseLinksCloudControllerV2Meta instantiates a new Get200ResponseLinksCloudControllerV2Meta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksCloudControllerV2MetaWithDefaults + +`func NewGet200ResponseLinksCloudControllerV2MetaWithDefaults() *Get200ResponseLinksCloudControllerV2Meta` + +NewGet200ResponseLinksCloudControllerV2MetaWithDefaults instantiates a new Get200ResponseLinksCloudControllerV2Meta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVersion + +`func (o *Get200ResponseLinksCloudControllerV2Meta) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *Get200ResponseLinksCloudControllerV2Meta) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *Get200ResponseLinksCloudControllerV2Meta) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *Get200ResponseLinksCloudControllerV2Meta) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Get200ResponseLinksLogCache.md b/docs/Get200ResponseLinksLogCache.md new file mode 100644 index 0000000..5f34cd0 --- /dev/null +++ b/docs/Get200ResponseLinksLogCache.md @@ -0,0 +1,56 @@ +# Get200ResponseLinksLogCache + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewGet200ResponseLinksLogCache + +`func NewGet200ResponseLinksLogCache() *Get200ResponseLinksLogCache` + +NewGet200ResponseLinksLogCache instantiates a new Get200ResponseLinksLogCache object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGet200ResponseLinksLogCacheWithDefaults + +`func NewGet200ResponseLinksLogCacheWithDefaults() *Get200ResponseLinksLogCache` + +NewGet200ResponseLinksLogCacheWithDefaults instantiates a new Get200ResponseLinksLogCache object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *Get200ResponseLinksLogCache) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Get200ResponseLinksLogCache) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Get200ResponseLinksLogCache) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Get200ResponseLinksLogCache) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HealthCheck.md b/docs/HealthCheck.md new file mode 100644 index 0000000..7a76f3e --- /dev/null +++ b/docs/HealthCheck.md @@ -0,0 +1,82 @@ +# HealthCheck + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**HealthCheckData**](HealthCheckData.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewHealthCheck + +`func NewHealthCheck() *HealthCheck` + +NewHealthCheck instantiates a new HealthCheck object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHealthCheckWithDefaults + +`func NewHealthCheckWithDefaults() *HealthCheck` + +NewHealthCheckWithDefaults instantiates a new HealthCheck object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *HealthCheck) GetData() HealthCheckData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HealthCheck) GetDataOk() (*HealthCheckData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HealthCheck) SetData(v HealthCheckData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HealthCheck) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *HealthCheck) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthCheck) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *HealthCheck) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *HealthCheck) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HealthCheckData.md b/docs/HealthCheckData.md new file mode 100644 index 0000000..4f3eb70 --- /dev/null +++ b/docs/HealthCheckData.md @@ -0,0 +1,174 @@ +# HealthCheckData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Endpoint** | Pointer to **NullableString** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] +**InvocationTimeout** | Pointer to **NullableInt32** | | [optional] +**Timeout** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewHealthCheckData + +`func NewHealthCheckData() *HealthCheckData` + +NewHealthCheckData instantiates a new HealthCheckData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHealthCheckDataWithDefaults + +`func NewHealthCheckDataWithDefaults() *HealthCheckData` + +NewHealthCheckDataWithDefaults instantiates a new HealthCheckData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpoint + +`func (o *HealthCheckData) GetEndpoint() string` + +GetEndpoint returns the Endpoint field if non-nil, zero value otherwise. + +### GetEndpointOk + +`func (o *HealthCheckData) GetEndpointOk() (*string, bool)` + +GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpoint + +`func (o *HealthCheckData) SetEndpoint(v string)` + +SetEndpoint sets Endpoint field to given value. + +### HasEndpoint + +`func (o *HealthCheckData) HasEndpoint() bool` + +HasEndpoint returns a boolean if a field has been set. + +### SetEndpointNil + +`func (o *HealthCheckData) SetEndpointNil(b bool)` + + SetEndpointNil sets the value for Endpoint to be an explicit nil + +### UnsetEndpoint +`func (o *HealthCheckData) UnsetEndpoint()` + +UnsetEndpoint ensures that no value is present for Endpoint, not even an explicit nil +### GetInterval + +`func (o *HealthCheckData) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *HealthCheckData) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *HealthCheckData) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *HealthCheckData) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *HealthCheckData) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *HealthCheckData) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil +### GetInvocationTimeout + +`func (o *HealthCheckData) GetInvocationTimeout() int32` + +GetInvocationTimeout returns the InvocationTimeout field if non-nil, zero value otherwise. + +### GetInvocationTimeoutOk + +`func (o *HealthCheckData) GetInvocationTimeoutOk() (*int32, bool)` + +GetInvocationTimeoutOk returns a tuple with the InvocationTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationTimeout + +`func (o *HealthCheckData) SetInvocationTimeout(v int32)` + +SetInvocationTimeout sets InvocationTimeout field to given value. + +### HasInvocationTimeout + +`func (o *HealthCheckData) HasInvocationTimeout() bool` + +HasInvocationTimeout returns a boolean if a field has been set. + +### SetInvocationTimeoutNil + +`func (o *HealthCheckData) SetInvocationTimeoutNil(b bool)` + + SetInvocationTimeoutNil sets the value for InvocationTimeout to be an explicit nil + +### UnsetInvocationTimeout +`func (o *HealthCheckData) UnsetInvocationTimeout()` + +UnsetInvocationTimeout ensures that no value is present for InvocationTimeout, not even an explicit nil +### GetTimeout + +`func (o *HealthCheckData) GetTimeout() int32` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *HealthCheckData) GetTimeoutOk() (*int32, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *HealthCheckData) SetTimeout(v int32)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *HealthCheckData) HasTimeout() bool` + +HasTimeout returns a boolean if a field has been set. + +### SetTimeoutNil + +`func (o *HealthCheckData) SetTimeoutNil(b bool)` + + SetTimeoutNil sets the value for Timeout to be an explicit nil + +### UnsetTimeout +`func (o *HealthCheckData) UnsetTimeout()` + +UnsetTimeout ensures that no value is present for Timeout, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IsolationSegment.md b/docs/IsolationSegment.md new file mode 100644 index 0000000..5fc6231 --- /dev/null +++ b/docs/IsolationSegment.md @@ -0,0 +1,186 @@ +# IsolationSegment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**IsolationSegmentLinks**](IsolationSegmentLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewIsolationSegment + +`func NewIsolationSegment() *IsolationSegment` + +NewIsolationSegment instantiates a new IsolationSegment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIsolationSegmentWithDefaults + +`func NewIsolationSegmentWithDefaults() *IsolationSegment` + +NewIsolationSegmentWithDefaults instantiates a new IsolationSegment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *IsolationSegment) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *IsolationSegment) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *IsolationSegment) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *IsolationSegment) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *IsolationSegment) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *IsolationSegment) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *IsolationSegment) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *IsolationSegment) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *IsolationSegment) GetLinks() IsolationSegmentLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *IsolationSegment) GetLinksOk() (*IsolationSegmentLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *IsolationSegment) SetLinks(v IsolationSegmentLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *IsolationSegment) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *IsolationSegment) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *IsolationSegment) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *IsolationSegment) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *IsolationSegment) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *IsolationSegment) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IsolationSegment) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IsolationSegment) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IsolationSegment) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *IsolationSegment) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *IsolationSegment) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *IsolationSegment) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *IsolationSegment) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IsolationSegmentLinks.md b/docs/IsolationSegmentLinks.md new file mode 100644 index 0000000..00dc88b --- /dev/null +++ b/docs/IsolationSegmentLinks.md @@ -0,0 +1,82 @@ +# IsolationSegmentLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewIsolationSegmentLinks + +`func NewIsolationSegmentLinks() *IsolationSegmentLinks` + +NewIsolationSegmentLinks instantiates a new IsolationSegmentLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIsolationSegmentLinksWithDefaults + +`func NewIsolationSegmentLinksWithDefaults() *IsolationSegmentLinks` + +NewIsolationSegmentLinksWithDefaults instantiates a new IsolationSegmentLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *IsolationSegmentLinks) GetOrganizations() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *IsolationSegmentLinks) GetOrganizationsOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *IsolationSegmentLinks) SetOrganizations(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *IsolationSegmentLinks) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetSelf + +`func (o *IsolationSegmentLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *IsolationSegmentLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *IsolationSegmentLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *IsolationSegmentLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LastOperation.md b/docs/LastOperation.md new file mode 100644 index 0000000..31c31df --- /dev/null +++ b/docs/LastOperation.md @@ -0,0 +1,160 @@ +# LastOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewLastOperation + +`func NewLastOperation() *LastOperation` + +NewLastOperation instantiates a new LastOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLastOperationWithDefaults + +`func NewLastOperationWithDefaults() *LastOperation` + +NewLastOperationWithDefaults instantiates a new LastOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *LastOperation) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *LastOperation) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *LastOperation) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *LastOperation) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *LastOperation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *LastOperation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *LastOperation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *LastOperation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetState + +`func (o *LastOperation) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *LastOperation) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *LastOperation) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *LastOperation) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetType + +`func (o *LastOperation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LastOperation) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LastOperation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *LastOperation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *LastOperation) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *LastOperation) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *LastOperation) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *LastOperation) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Link.md b/docs/Link.md new file mode 100644 index 0000000..9522e88 --- /dev/null +++ b/docs/Link.md @@ -0,0 +1,87 @@ +# Link + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | **string** | | +**Method** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewLink + +`func NewLink(href string, ) *Link` + +NewLink instantiates a new Link object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkWithDefaults + +`func NewLinkWithDefaults() *Link` + +NewLinkWithDefaults instantiates a new Link object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *Link) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Link) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Link) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetMethod + +`func (o *Link) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *Link) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *Link) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *Link) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### SetMethodNil + +`func (o *Link) SetMethodNil(b bool)` + + SetMethodNil sets the value for Method to be an explicit nil + +### UnsetMethod +`func (o *Link) UnsetMethod()` + +UnsetMethod ensures that no value is present for Method, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LinkWithMethod.md b/docs/LinkWithMethod.md new file mode 100644 index 0000000..bcdd15a --- /dev/null +++ b/docs/LinkWithMethod.md @@ -0,0 +1,72 @@ +# LinkWithMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | **string** | | +**Method** | **string** | | + +## Methods + +### NewLinkWithMethod + +`func NewLinkWithMethod(href string, method string, ) *LinkWithMethod` + +NewLinkWithMethod instantiates a new LinkWithMethod object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkWithMethodWithDefaults + +`func NewLinkWithMethodWithDefaults() *LinkWithMethod` + +NewLinkWithMethodWithDefaults instantiates a new LinkWithMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *LinkWithMethod) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *LinkWithMethod) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *LinkWithMethod) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetMethod + +`func (o *LinkWithMethod) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *LinkWithMethod) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *LinkWithMethod) SetMethod(v string)` + +SetMethod sets Method field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Links.md b/docs/Links.md new file mode 100644 index 0000000..a293f44 --- /dev/null +++ b/docs/Links.md @@ -0,0 +1,212 @@ +# Links + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Parameters** | Pointer to [**Link**](Link.md) | | [optional] +**Self** | Pointer to [**Link**](Link.md) | | [optional] +**ServiceCredentialBindings** | Pointer to [**Link**](Link.md) | | [optional] +**ServicePlan** | Pointer to [**Link**](Link.md) | | [optional] +**ServiceRouteBindings** | Pointer to [**Link**](Link.md) | | [optional] +**SharedSpaces** | Pointer to [**Link**](Link.md) | | [optional] +**Space** | Pointer to [**Link**](Link.md) | | [optional] + +## Methods + +### NewLinks + +`func NewLinks() *Links` + +NewLinks instantiates a new Links object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinksWithDefaults + +`func NewLinksWithDefaults() *Links` + +NewLinksWithDefaults instantiates a new Links object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParameters + +`func (o *Links) GetParameters() Link` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *Links) GetParametersOk() (*Link, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *Links) SetParameters(v Link)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *Links) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetSelf + +`func (o *Links) GetSelf() Link` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *Links) GetSelfOk() (*Link, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *Links) SetSelf(v Link)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *Links) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceCredentialBindings + +`func (o *Links) GetServiceCredentialBindings() Link` + +GetServiceCredentialBindings returns the ServiceCredentialBindings field if non-nil, zero value otherwise. + +### GetServiceCredentialBindingsOk + +`func (o *Links) GetServiceCredentialBindingsOk() (*Link, bool)` + +GetServiceCredentialBindingsOk returns a tuple with the ServiceCredentialBindings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceCredentialBindings + +`func (o *Links) SetServiceCredentialBindings(v Link)` + +SetServiceCredentialBindings sets ServiceCredentialBindings field to given value. + +### HasServiceCredentialBindings + +`func (o *Links) HasServiceCredentialBindings() bool` + +HasServiceCredentialBindings returns a boolean if a field has been set. + +### GetServicePlan + +`func (o *Links) GetServicePlan() Link` + +GetServicePlan returns the ServicePlan field if non-nil, zero value otherwise. + +### GetServicePlanOk + +`func (o *Links) GetServicePlanOk() (*Link, bool)` + +GetServicePlanOk returns a tuple with the ServicePlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlan + +`func (o *Links) SetServicePlan(v Link)` + +SetServicePlan sets ServicePlan field to given value. + +### HasServicePlan + +`func (o *Links) HasServicePlan() bool` + +HasServicePlan returns a boolean if a field has been set. + +### GetServiceRouteBindings + +`func (o *Links) GetServiceRouteBindings() Link` + +GetServiceRouteBindings returns the ServiceRouteBindings field if non-nil, zero value otherwise. + +### GetServiceRouteBindingsOk + +`func (o *Links) GetServiceRouteBindingsOk() (*Link, bool)` + +GetServiceRouteBindingsOk returns a tuple with the ServiceRouteBindings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceRouteBindings + +`func (o *Links) SetServiceRouteBindings(v Link)` + +SetServiceRouteBindings sets ServiceRouteBindings field to given value. + +### HasServiceRouteBindings + +`func (o *Links) HasServiceRouteBindings() bool` + +HasServiceRouteBindings returns a boolean if a field has been set. + +### GetSharedSpaces + +`func (o *Links) GetSharedSpaces() Link` + +GetSharedSpaces returns the SharedSpaces field if non-nil, zero value otherwise. + +### GetSharedSpacesOk + +`func (o *Links) GetSharedSpacesOk() (*Link, bool)` + +GetSharedSpacesOk returns a tuple with the SharedSpaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedSpaces + +`func (o *Links) SetSharedSpaces(v Link)` + +SetSharedSpaces sets SharedSpaces field to given value. + +### HasSharedSpaces + +`func (o *Links) HasSharedSpaces() bool` + +HasSharedSpaces returns a boolean if a field has been set. + +### GetSpace + +`func (o *Links) GetSpace() Link` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *Links) GetSpaceOk() (*Link, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *Links) SetSpace(v Link)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *Links) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrganizationQuotas200Response.md b/docs/ListOrganizationQuotas200Response.md new file mode 100644 index 0000000..e192ce7 --- /dev/null +++ b/docs/ListOrganizationQuotas200Response.md @@ -0,0 +1,82 @@ +# ListOrganizationQuotas200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**ListOrganizationQuotas200ResponsePagination**](ListOrganizationQuotas200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]OrganizationQuota**](OrganizationQuota.md) | | [optional] + +## Methods + +### NewListOrganizationQuotas200Response + +`func NewListOrganizationQuotas200Response() *ListOrganizationQuotas200Response` + +NewListOrganizationQuotas200Response instantiates a new ListOrganizationQuotas200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListOrganizationQuotas200ResponseWithDefaults + +`func NewListOrganizationQuotas200ResponseWithDefaults() *ListOrganizationQuotas200Response` + +NewListOrganizationQuotas200ResponseWithDefaults instantiates a new ListOrganizationQuotas200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *ListOrganizationQuotas200Response) GetPagination() ListOrganizationQuotas200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ListOrganizationQuotas200Response) GetPaginationOk() (*ListOrganizationQuotas200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ListOrganizationQuotas200Response) SetPagination(v ListOrganizationQuotas200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ListOrganizationQuotas200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *ListOrganizationQuotas200Response) GetResources() []OrganizationQuota` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ListOrganizationQuotas200Response) GetResourcesOk() (*[]OrganizationQuota, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ListOrganizationQuotas200Response) SetResources(v []OrganizationQuota)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ListOrganizationQuotas200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrganizationQuotas200ResponsePagination.md b/docs/ListOrganizationQuotas200ResponsePagination.md new file mode 100644 index 0000000..ee83a77 --- /dev/null +++ b/docs/ListOrganizationQuotas200ResponsePagination.md @@ -0,0 +1,206 @@ +# ListOrganizationQuotas200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Last** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Next** | Pointer to [**NullableListOrganizationQuotas200ResponsePaginationNext**](ListOrganizationQuotas200ResponsePaginationNext.md) | | [optional] +**Previous** | Pointer to [**NullableListOrganizationQuotas200ResponsePaginationNext**](ListOrganizationQuotas200ResponsePaginationNext.md) | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewListOrganizationQuotas200ResponsePagination + +`func NewListOrganizationQuotas200ResponsePagination() *ListOrganizationQuotas200ResponsePagination` + +NewListOrganizationQuotas200ResponsePagination instantiates a new ListOrganizationQuotas200ResponsePagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListOrganizationQuotas200ResponsePaginationWithDefaults + +`func NewListOrganizationQuotas200ResponsePaginationWithDefaults() *ListOrganizationQuotas200ResponsePagination` + +NewListOrganizationQuotas200ResponsePaginationWithDefaults instantiates a new ListOrganizationQuotas200ResponsePagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *ListOrganizationQuotas200ResponsePagination) GetFirst() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetFirstOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *ListOrganizationQuotas200ResponsePagination) SetFirst(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *ListOrganizationQuotas200ResponsePagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *ListOrganizationQuotas200ResponsePagination) GetLast() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetLastOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *ListOrganizationQuotas200ResponsePagination) SetLast(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *ListOrganizationQuotas200ResponsePagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *ListOrganizationQuotas200ResponsePagination) GetNext() ListOrganizationQuotas200ResponsePaginationNext` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetNextOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *ListOrganizationQuotas200ResponsePagination) SetNext(v ListOrganizationQuotas200ResponsePaginationNext)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *ListOrganizationQuotas200ResponsePagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *ListOrganizationQuotas200ResponsePagination) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *ListOrganizationQuotas200ResponsePagination) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *ListOrganizationQuotas200ResponsePagination) GetPrevious() ListOrganizationQuotas200ResponsePaginationNext` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetPreviousOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *ListOrganizationQuotas200ResponsePagination) SetPrevious(v ListOrganizationQuotas200ResponsePaginationNext)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *ListOrganizationQuotas200ResponsePagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *ListOrganizationQuotas200ResponsePagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *ListOrganizationQuotas200ResponsePagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *ListOrganizationQuotas200ResponsePagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *ListOrganizationQuotas200ResponsePagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *ListOrganizationQuotas200ResponsePagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *ListOrganizationQuotas200ResponsePagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *ListOrganizationQuotas200ResponsePagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *ListOrganizationQuotas200ResponsePagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *ListOrganizationQuotas200ResponsePagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListOrganizationQuotas200ResponsePaginationNext.md b/docs/ListOrganizationQuotas200ResponsePaginationNext.md new file mode 100644 index 0000000..86a3e9f --- /dev/null +++ b/docs/ListOrganizationQuotas200ResponsePaginationNext.md @@ -0,0 +1,56 @@ +# ListOrganizationQuotas200ResponsePaginationNext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewListOrganizationQuotas200ResponsePaginationNext + +`func NewListOrganizationQuotas200ResponsePaginationNext() *ListOrganizationQuotas200ResponsePaginationNext` + +NewListOrganizationQuotas200ResponsePaginationNext instantiates a new ListOrganizationQuotas200ResponsePaginationNext object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListOrganizationQuotas200ResponsePaginationNextWithDefaults + +`func NewListOrganizationQuotas200ResponsePaginationNextWithDefaults() *ListOrganizationQuotas200ResponsePaginationNext` + +NewListOrganizationQuotas200ResponsePaginationNextWithDefaults instantiates a new ListOrganizationQuotas200ResponsePaginationNext object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *ListOrganizationQuotas200ResponsePaginationNext) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ListOrganizationQuotas200ResponsePaginationNext) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ListOrganizationQuotas200ResponsePaginationNext) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ListOrganizationQuotas200ResponsePaginationNext) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MaintenanceInfo.md b/docs/MaintenanceInfo.md new file mode 100644 index 0000000..1dd7d9b --- /dev/null +++ b/docs/MaintenanceInfo.md @@ -0,0 +1,82 @@ +# MaintenanceInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewMaintenanceInfo + +`func NewMaintenanceInfo() *MaintenanceInfo` + +NewMaintenanceInfo instantiates a new MaintenanceInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMaintenanceInfoWithDefaults + +`func NewMaintenanceInfoWithDefaults() *MaintenanceInfo` + +NewMaintenanceInfoWithDefaults instantiates a new MaintenanceInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *MaintenanceInfo) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MaintenanceInfo) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MaintenanceInfo) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MaintenanceInfo) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVersion + +`func (o *MaintenanceInfo) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *MaintenanceInfo) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *MaintenanceInfo) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *MaintenanceInfo) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManagedServiceInstanceUpdate.md b/docs/ManagedServiceInstanceUpdate.md new file mode 100644 index 0000000..ec64f5e --- /dev/null +++ b/docs/ManagedServiceInstanceUpdate.md @@ -0,0 +1,186 @@ +# ManagedServiceInstanceUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaintenanceInfo** | Pointer to [**Get200ResponseLinksCloudControllerV2Meta**](Get200ResponseLinksCloudControllerV2Meta.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **map[string]interface{}** | | [optional] +**Relationships** | Pointer to [**ManagedServiceInstanceUpdateRelationships**](ManagedServiceInstanceUpdateRelationships.md) | | [optional] +**Tags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewManagedServiceInstanceUpdate + +`func NewManagedServiceInstanceUpdate() *ManagedServiceInstanceUpdate` + +NewManagedServiceInstanceUpdate instantiates a new ManagedServiceInstanceUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewManagedServiceInstanceUpdateWithDefaults + +`func NewManagedServiceInstanceUpdateWithDefaults() *ManagedServiceInstanceUpdate` + +NewManagedServiceInstanceUpdateWithDefaults instantiates a new ManagedServiceInstanceUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMaintenanceInfo + +`func (o *ManagedServiceInstanceUpdate) GetMaintenanceInfo() Get200ResponseLinksCloudControllerV2Meta` + +GetMaintenanceInfo returns the MaintenanceInfo field if non-nil, zero value otherwise. + +### GetMaintenanceInfoOk + +`func (o *ManagedServiceInstanceUpdate) GetMaintenanceInfoOk() (*Get200ResponseLinksCloudControllerV2Meta, bool)` + +GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenanceInfo + +`func (o *ManagedServiceInstanceUpdate) SetMaintenanceInfo(v Get200ResponseLinksCloudControllerV2Meta)` + +SetMaintenanceInfo sets MaintenanceInfo field to given value. + +### HasMaintenanceInfo + +`func (o *ManagedServiceInstanceUpdate) HasMaintenanceInfo() bool` + +HasMaintenanceInfo returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ManagedServiceInstanceUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ManagedServiceInstanceUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ManagedServiceInstanceUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ManagedServiceInstanceUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ManagedServiceInstanceUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ManagedServiceInstanceUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ManagedServiceInstanceUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ManagedServiceInstanceUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParameters + +`func (o *ManagedServiceInstanceUpdate) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *ManagedServiceInstanceUpdate) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *ManagedServiceInstanceUpdate) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *ManagedServiceInstanceUpdate) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ManagedServiceInstanceUpdate) GetRelationships() ManagedServiceInstanceUpdateRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ManagedServiceInstanceUpdate) GetRelationshipsOk() (*ManagedServiceInstanceUpdateRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ManagedServiceInstanceUpdate) SetRelationships(v ManagedServiceInstanceUpdateRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ManagedServiceInstanceUpdate) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetTags + +`func (o *ManagedServiceInstanceUpdate) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ManagedServiceInstanceUpdate) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ManagedServiceInstanceUpdate) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ManagedServiceInstanceUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManagedServiceInstanceUpdateRelationships.md b/docs/ManagedServiceInstanceUpdateRelationships.md new file mode 100644 index 0000000..b7cbce7 --- /dev/null +++ b/docs/ManagedServiceInstanceUpdateRelationships.md @@ -0,0 +1,56 @@ +# ManagedServiceInstanceUpdateRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServicePlan** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] + +## Methods + +### NewManagedServiceInstanceUpdateRelationships + +`func NewManagedServiceInstanceUpdateRelationships() *ManagedServiceInstanceUpdateRelationships` + +NewManagedServiceInstanceUpdateRelationships instantiates a new ManagedServiceInstanceUpdateRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewManagedServiceInstanceUpdateRelationshipsWithDefaults + +`func NewManagedServiceInstanceUpdateRelationshipsWithDefaults() *ManagedServiceInstanceUpdateRelationships` + +NewManagedServiceInstanceUpdateRelationshipsWithDefaults instantiates a new ManagedServiceInstanceUpdateRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServicePlan + +`func (o *ManagedServiceInstanceUpdateRelationships) GetServicePlan() ToOneRelationship` + +GetServicePlan returns the ServicePlan field if non-nil, zero value otherwise. + +### GetServicePlanOk + +`func (o *ManagedServiceInstanceUpdateRelationships) GetServicePlanOk() (*ToOneRelationship, bool)` + +GetServicePlanOk returns a tuple with the ServicePlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlan + +`func (o *ManagedServiceInstanceUpdateRelationships) SetServicePlan(v ToOneRelationship)` + +SetServicePlan sets ServicePlan field to given value. + +### HasServicePlan + +`func (o *ManagedServiceInstanceUpdateRelationships) HasServicePlan() bool` + +HasServicePlan returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Metadata.md b/docs/Metadata.md new file mode 100644 index 0000000..e29f649 --- /dev/null +++ b/docs/Metadata.md @@ -0,0 +1,82 @@ +# Metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | | [optional] +**Labels** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewMetadata + +`func NewMetadata() *Metadata` + +NewMetadata instantiates a new Metadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetadataWithDefaults + +`func NewMetadataWithDefaults() *Metadata` + +NewMetadataWithDefaults instantiates a new Metadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *Metadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *Metadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *Metadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *Metadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *Metadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *Metadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *Metadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *Metadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Organization.md b/docs/Organization.md new file mode 100644 index 0000000..868a5fe --- /dev/null +++ b/docs/Organization.md @@ -0,0 +1,238 @@ +# Organization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**OrganizationLinks**](OrganizationLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**OrganizationRelationships**](OrganizationRelationships.md) | | [optional] +**Suspended** | Pointer to **bool** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrganization + +`func NewOrganization() *Organization` + +NewOrganization instantiates a new Organization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationWithDefaults + +`func NewOrganizationWithDefaults() *Organization` + +NewOrganizationWithDefaults instantiates a new Organization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Organization) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Organization) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Organization) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Organization) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *Organization) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Organization) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Organization) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Organization) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Organization) GetLinks() OrganizationLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Organization) GetLinksOk() (*OrganizationLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Organization) SetLinks(v OrganizationLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Organization) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Organization) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Organization) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Organization) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Organization) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *Organization) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Organization) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Organization) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Organization) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Organization) GetRelationships() OrganizationRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Organization) GetRelationshipsOk() (*OrganizationRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Organization) SetRelationships(v OrganizationRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Organization) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetSuspended + +`func (o *Organization) GetSuspended() bool` + +GetSuspended returns the Suspended field if non-nil, zero value otherwise. + +### GetSuspendedOk + +`func (o *Organization) GetSuspendedOk() (*bool, bool)` + +GetSuspendedOk returns a tuple with the Suspended field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspended + +`func (o *Organization) SetSuspended(v bool)` + +SetSuspended sets Suspended field to given value. + +### HasSuspended + +`func (o *Organization) HasSuspended() bool` + +HasSuspended returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Organization) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Organization) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Organization) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Organization) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationLinks.md b/docs/OrganizationLinks.md new file mode 100644 index 0000000..f315aa4 --- /dev/null +++ b/docs/OrganizationLinks.md @@ -0,0 +1,134 @@ +# OrganizationLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultDomain** | Pointer to **string** | | [optional] +**Domains** | Pointer to **string** | | [optional] +**Quota** | Pointer to **string** | | [optional] +**Self** | Pointer to **string** | | [optional] + +## Methods + +### NewOrganizationLinks + +`func NewOrganizationLinks() *OrganizationLinks` + +NewOrganizationLinks instantiates a new OrganizationLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationLinksWithDefaults + +`func NewOrganizationLinksWithDefaults() *OrganizationLinks` + +NewOrganizationLinksWithDefaults instantiates a new OrganizationLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultDomain + +`func (o *OrganizationLinks) GetDefaultDomain() string` + +GetDefaultDomain returns the DefaultDomain field if non-nil, zero value otherwise. + +### GetDefaultDomainOk + +`func (o *OrganizationLinks) GetDefaultDomainOk() (*string, bool)` + +GetDefaultDomainOk returns a tuple with the DefaultDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultDomain + +`func (o *OrganizationLinks) SetDefaultDomain(v string)` + +SetDefaultDomain sets DefaultDomain field to given value. + +### HasDefaultDomain + +`func (o *OrganizationLinks) HasDefaultDomain() bool` + +HasDefaultDomain returns a boolean if a field has been set. + +### GetDomains + +`func (o *OrganizationLinks) GetDomains() string` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *OrganizationLinks) GetDomainsOk() (*string, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *OrganizationLinks) SetDomains(v string)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *OrganizationLinks) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetQuota + +`func (o *OrganizationLinks) GetQuota() string` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *OrganizationLinks) GetQuotaOk() (*string, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *OrganizationLinks) SetQuota(v string)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *OrganizationLinks) HasQuota() bool` + +HasQuota returns a boolean if a field has been set. + +### GetSelf + +`func (o *OrganizationLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *OrganizationLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *OrganizationLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *OrganizationLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationQuota.md b/docs/OrganizationQuota.md new file mode 100644 index 0000000..fdc8701 --- /dev/null +++ b/docs/OrganizationQuota.md @@ -0,0 +1,290 @@ +# OrganizationQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**AppsQuota**](AppsQuota.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | The time with zone when the organization quota was created | [optional] +**Domains** | Pointer to [**DomainsQuota**](DomainsQuota.md) | | [optional] +**Guid** | Pointer to **string** | Unique identifier for the organization quota | [optional] +**Links** | Pointer to [**OrganizationQuotaLinks**](OrganizationQuotaLinks.md) | | [optional] +**Name** | Pointer to **string** | Name of the quota | [optional] +**Relationships** | Pointer to [**OrganizationQuotaRelationships**](OrganizationQuotaRelationships.md) | | [optional] +**Routes** | Pointer to [**RoutesQuota**](RoutesQuota.md) | | [optional] +**Services** | Pointer to [**ServicesQuota**](ServicesQuota.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | The time with zone when the organization quota was last updated | [optional] + +## Methods + +### NewOrganizationQuota + +`func NewOrganizationQuota() *OrganizationQuota` + +NewOrganizationQuota instantiates a new OrganizationQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationQuotaWithDefaults + +`func NewOrganizationQuotaWithDefaults() *OrganizationQuota` + +NewOrganizationQuotaWithDefaults instantiates a new OrganizationQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *OrganizationQuota) GetApps() AppsQuota` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *OrganizationQuota) GetAppsOk() (*AppsQuota, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *OrganizationQuota) SetApps(v AppsQuota)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *OrganizationQuota) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *OrganizationQuota) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *OrganizationQuota) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *OrganizationQuota) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *OrganizationQuota) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDomains + +`func (o *OrganizationQuota) GetDomains() DomainsQuota` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *OrganizationQuota) GetDomainsOk() (*DomainsQuota, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *OrganizationQuota) SetDomains(v DomainsQuota)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *OrganizationQuota) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetGuid + +`func (o *OrganizationQuota) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *OrganizationQuota) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *OrganizationQuota) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *OrganizationQuota) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *OrganizationQuota) GetLinks() OrganizationQuotaLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *OrganizationQuota) GetLinksOk() (*OrganizationQuotaLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *OrganizationQuota) SetLinks(v OrganizationQuotaLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *OrganizationQuota) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *OrganizationQuota) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationQuota) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrganizationQuota) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationQuota) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *OrganizationQuota) GetRelationships() OrganizationQuotaRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *OrganizationQuota) GetRelationshipsOk() (*OrganizationQuotaRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *OrganizationQuota) SetRelationships(v OrganizationQuotaRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *OrganizationQuota) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRoutes + +`func (o *OrganizationQuota) GetRoutes() RoutesQuota` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *OrganizationQuota) GetRoutesOk() (*RoutesQuota, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *OrganizationQuota) SetRoutes(v RoutesQuota)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *OrganizationQuota) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *OrganizationQuota) GetServices() ServicesQuota` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *OrganizationQuota) GetServicesOk() (*ServicesQuota, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *OrganizationQuota) SetServices(v ServicesQuota)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *OrganizationQuota) HasServices() bool` + +HasServices returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *OrganizationQuota) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *OrganizationQuota) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *OrganizationQuota) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *OrganizationQuota) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationQuotaLinks.md b/docs/OrganizationQuotaLinks.md new file mode 100644 index 0000000..e1548d8 --- /dev/null +++ b/docs/OrganizationQuotaLinks.md @@ -0,0 +1,56 @@ +# OrganizationQuotaLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to **string** | URL of the organization quota | [optional] + +## Methods + +### NewOrganizationQuotaLinks + +`func NewOrganizationQuotaLinks() *OrganizationQuotaLinks` + +NewOrganizationQuotaLinks instantiates a new OrganizationQuotaLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationQuotaLinksWithDefaults + +`func NewOrganizationQuotaLinksWithDefaults() *OrganizationQuotaLinks` + +NewOrganizationQuotaLinksWithDefaults instantiates a new OrganizationQuotaLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *OrganizationQuotaLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *OrganizationQuotaLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *OrganizationQuotaLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *OrganizationQuotaLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationQuotaRelationships.md b/docs/OrganizationQuotaRelationships.md new file mode 100644 index 0000000..d11f51b --- /dev/null +++ b/docs/OrganizationQuotaRelationships.md @@ -0,0 +1,56 @@ +# OrganizationQuotaRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**DomainRelationshipsSharedOrganizations**](DomainRelationshipsSharedOrganizations.md) | | [optional] + +## Methods + +### NewOrganizationQuotaRelationships + +`func NewOrganizationQuotaRelationships() *OrganizationQuotaRelationships` + +NewOrganizationQuotaRelationships instantiates a new OrganizationQuotaRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationQuotaRelationshipsWithDefaults + +`func NewOrganizationQuotaRelationshipsWithDefaults() *OrganizationQuotaRelationships` + +NewOrganizationQuotaRelationshipsWithDefaults instantiates a new OrganizationQuotaRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *OrganizationQuotaRelationships) GetOrganizations() DomainRelationshipsSharedOrganizations` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *OrganizationQuotaRelationships) GetOrganizationsOk() (*DomainRelationshipsSharedOrganizations, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *OrganizationQuotaRelationships) SetOrganizations(v DomainRelationshipsSharedOrganizations)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *OrganizationQuotaRelationships) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationRelationships.md b/docs/OrganizationRelationships.md new file mode 100644 index 0000000..6261fd2 --- /dev/null +++ b/docs/OrganizationRelationships.md @@ -0,0 +1,56 @@ +# OrganizationRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Quota** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewOrganizationRelationships + +`func NewOrganizationRelationships() *OrganizationRelationships` + +NewOrganizationRelationships instantiates a new OrganizationRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationRelationshipsWithDefaults + +`func NewOrganizationRelationshipsWithDefaults() *OrganizationRelationships` + +NewOrganizationRelationshipsWithDefaults instantiates a new OrganizationRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuota + +`func (o *OrganizationRelationships) GetQuota() V3AppsPostRequestRelationshipsSpace` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *OrganizationRelationships) GetQuotaOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *OrganizationRelationships) SetQuota(v V3AppsPostRequestRelationshipsSpace)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *OrganizationRelationships) HasQuota() bool` + +HasQuota returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrganizationVisibility.md b/docs/OrganizationVisibility.md new file mode 100644 index 0000000..87b3b68 --- /dev/null +++ b/docs/OrganizationVisibility.md @@ -0,0 +1,82 @@ +# OrganizationVisibility + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the organization where the plan is available | [optional] +**Name** | Pointer to **string** | Name of the organization where the plan is available | [optional] + +## Methods + +### NewOrganizationVisibility + +`func NewOrganizationVisibility() *OrganizationVisibility` + +NewOrganizationVisibility instantiates a new OrganizationVisibility object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganizationVisibilityWithDefaults + +`func NewOrganizationVisibilityWithDefaults() *OrganizationVisibility` + +NewOrganizationVisibilityWithDefaults instantiates a new OrganizationVisibility object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *OrganizationVisibility) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *OrganizationVisibility) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *OrganizationVisibility) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *OrganizationVisibility) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *OrganizationVisibility) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationVisibility) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrganizationVisibility) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationVisibility) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Package.md b/docs/Package.md new file mode 100644 index 0000000..29bc6da --- /dev/null +++ b/docs/Package.md @@ -0,0 +1,239 @@ +# Package + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **time.Time** | The time with zone when the object was created | +**Data** | Pointer to [**PackageData**](PackageData.md) | | [optional] +**Guid** | **string** | Unique identifier for the package | +**Links** | Pointer to [**PackageLinks**](PackageLinks.md) | | [optional] +**Metadata** | Pointer to [**V3PackagesPostRequestMetadata**](V3PackagesPostRequestMetadata.md) | | [optional] +**Relationships** | Pointer to [**V3PackagesPostRequestRelationships**](V3PackagesPostRequestRelationships.md) | | [optional] +**State** | **string** | State of the package; valid states are AWAITING_UPLOAD, PROCESSING_UPLOAD, READY, FAILED, COPYING, EXPIRED | +**Type** | **string** | Package type; valid values are bits, docker | +**UpdatedAt** | **time.Time** | The time with zone when the object was last updated | + +## Methods + +### NewPackage + +`func NewPackage(createdAt time.Time, guid string, state string, type_ string, updatedAt time.Time, ) *Package` + +NewPackage instantiates a new Package object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageWithDefaults + +`func NewPackageWithDefaults() *Package` + +NewPackageWithDefaults instantiates a new Package object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Package) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Package) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Package) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetData + +`func (o *Package) GetData() PackageData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *Package) GetDataOk() (*PackageData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *Package) SetData(v PackageData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *Package) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetGuid + +`func (o *Package) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Package) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Package) SetGuid(v string)` + +SetGuid sets Guid field to given value. + + +### GetLinks + +`func (o *Package) GetLinks() PackageLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Package) GetLinksOk() (*PackageLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Package) SetLinks(v PackageLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Package) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Package) GetMetadata() V3PackagesPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Package) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Package) SetMetadata(v V3PackagesPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Package) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Package) GetRelationships() V3PackagesPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Package) GetRelationshipsOk() (*V3PackagesPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Package) SetRelationships(v V3PackagesPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Package) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetState + +`func (o *Package) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Package) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *Package) SetState(v string)` + +SetState sets State field to given value. + + +### GetType + +`func (o *Package) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Package) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Package) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUpdatedAt + +`func (o *Package) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Package) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Package) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageData.md b/docs/PackageData.md new file mode 100644 index 0000000..d0daa92 --- /dev/null +++ b/docs/PackageData.md @@ -0,0 +1,170 @@ +# PackageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Checksum** | Pointer to [**PackageDataChecksum**](PackageDataChecksum.md) | | [optional] +**Error** | Pointer to **NullableString** | If an error occurs this field will contain the error message | [optional] +**Image** | Pointer to **string** | The registry address of the image (for Docker packages) | [optional] +**Password** | Pointer to **string** | The password for the image's registry (for Docker packages) | [optional] +**Username** | Pointer to **string** | The username for the image's registry (for Docker packages) | [optional] + +## Methods + +### NewPackageData + +`func NewPackageData() *PackageData` + +NewPackageData instantiates a new PackageData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageDataWithDefaults + +`func NewPackageDataWithDefaults() *PackageData` + +NewPackageDataWithDefaults instantiates a new PackageData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChecksum + +`func (o *PackageData) GetChecksum() PackageDataChecksum` + +GetChecksum returns the Checksum field if non-nil, zero value otherwise. + +### GetChecksumOk + +`func (o *PackageData) GetChecksumOk() (*PackageDataChecksum, bool)` + +GetChecksumOk returns a tuple with the Checksum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksum + +`func (o *PackageData) SetChecksum(v PackageDataChecksum)` + +SetChecksum sets Checksum field to given value. + +### HasChecksum + +`func (o *PackageData) HasChecksum() bool` + +HasChecksum returns a boolean if a field has been set. + +### GetError + +`func (o *PackageData) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PackageData) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PackageData) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *PackageData) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *PackageData) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *PackageData) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetImage + +`func (o *PackageData) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *PackageData) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *PackageData) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *PackageData) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetPassword + +`func (o *PackageData) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PackageData) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PackageData) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PackageData) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *PackageData) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *PackageData) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *PackageData) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *PackageData) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageDataChecksum.md b/docs/PackageDataChecksum.md new file mode 100644 index 0000000..cc5d6e2 --- /dev/null +++ b/docs/PackageDataChecksum.md @@ -0,0 +1,92 @@ +# PackageDataChecksum + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The checksum type, for example: sha256 | [optional] +**Value** | Pointer to **NullableString** | The checksum value; this will be populated after bits are uploaded | [optional] + +## Methods + +### NewPackageDataChecksum + +`func NewPackageDataChecksum() *PackageDataChecksum` + +NewPackageDataChecksum instantiates a new PackageDataChecksum object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageDataChecksumWithDefaults + +`func NewPackageDataChecksumWithDefaults() *PackageDataChecksum` + +NewPackageDataChecksumWithDefaults instantiates a new PackageDataChecksum object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PackageDataChecksum) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PackageDataChecksum) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PackageDataChecksum) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PackageDataChecksum) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValue + +`func (o *PackageDataChecksum) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PackageDataChecksum) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PackageDataChecksum) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PackageDataChecksum) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PackageDataChecksum) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PackageDataChecksum) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLinks.md b/docs/PackageLinks.md new file mode 100644 index 0000000..048bdfb --- /dev/null +++ b/docs/PackageLinks.md @@ -0,0 +1,134 @@ +# PackageLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**PackageLinksApp**](PackageLinksApp.md) | | [optional] +**Download** | Pointer to [**PackageLinksDownload**](PackageLinksDownload.md) | | [optional] +**Self** | Pointer to [**PackageLinksSelf**](PackageLinksSelf.md) | | [optional] +**Upload** | Pointer to [**PackageLinksUpload**](PackageLinksUpload.md) | | [optional] + +## Methods + +### NewPackageLinks + +`func NewPackageLinks() *PackageLinks` + +NewPackageLinks instantiates a new PackageLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageLinksWithDefaults + +`func NewPackageLinksWithDefaults() *PackageLinks` + +NewPackageLinksWithDefaults instantiates a new PackageLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *PackageLinks) GetApp() PackageLinksApp` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *PackageLinks) GetAppOk() (*PackageLinksApp, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *PackageLinks) SetApp(v PackageLinksApp)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *PackageLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetDownload + +`func (o *PackageLinks) GetDownload() PackageLinksDownload` + +GetDownload returns the Download field if non-nil, zero value otherwise. + +### GetDownloadOk + +`func (o *PackageLinks) GetDownloadOk() (*PackageLinksDownload, bool)` + +GetDownloadOk returns a tuple with the Download field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownload + +`func (o *PackageLinks) SetDownload(v PackageLinksDownload)` + +SetDownload sets Download field to given value. + +### HasDownload + +`func (o *PackageLinks) HasDownload() bool` + +HasDownload returns a boolean if a field has been set. + +### GetSelf + +`func (o *PackageLinks) GetSelf() PackageLinksSelf` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *PackageLinks) GetSelfOk() (*PackageLinksSelf, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *PackageLinks) SetSelf(v PackageLinksSelf)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *PackageLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetUpload + +`func (o *PackageLinks) GetUpload() PackageLinksUpload` + +GetUpload returns the Upload field if non-nil, zero value otherwise. + +### GetUploadOk + +`func (o *PackageLinks) GetUploadOk() (*PackageLinksUpload, bool)` + +GetUploadOk returns a tuple with the Upload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpload + +`func (o *PackageLinks) SetUpload(v PackageLinksUpload)` + +SetUpload sets Upload field to given value. + +### HasUpload + +`func (o *PackageLinks) HasUpload() bool` + +HasUpload returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLinksApp.md b/docs/PackageLinksApp.md new file mode 100644 index 0000000..72d76be --- /dev/null +++ b/docs/PackageLinksApp.md @@ -0,0 +1,56 @@ +# PackageLinksApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | URL of the app | [optional] + +## Methods + +### NewPackageLinksApp + +`func NewPackageLinksApp() *PackageLinksApp` + +NewPackageLinksApp instantiates a new PackageLinksApp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageLinksAppWithDefaults + +`func NewPackageLinksAppWithDefaults() *PackageLinksApp` + +NewPackageLinksAppWithDefaults instantiates a new PackageLinksApp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *PackageLinksApp) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PackageLinksApp) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *PackageLinksApp) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PackageLinksApp) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLinksDownload.md b/docs/PackageLinksDownload.md new file mode 100644 index 0000000..e26ca01 --- /dev/null +++ b/docs/PackageLinksDownload.md @@ -0,0 +1,82 @@ +# PackageLinksDownload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | URL to download the package | [optional] +**Method** | Pointer to **string** | HTTP method for the download URL | [optional] + +## Methods + +### NewPackageLinksDownload + +`func NewPackageLinksDownload() *PackageLinksDownload` + +NewPackageLinksDownload instantiates a new PackageLinksDownload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageLinksDownloadWithDefaults + +`func NewPackageLinksDownloadWithDefaults() *PackageLinksDownload` + +NewPackageLinksDownloadWithDefaults instantiates a new PackageLinksDownload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *PackageLinksDownload) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PackageLinksDownload) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *PackageLinksDownload) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PackageLinksDownload) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMethod + +`func (o *PackageLinksDownload) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *PackageLinksDownload) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *PackageLinksDownload) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *PackageLinksDownload) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLinksSelf.md b/docs/PackageLinksSelf.md new file mode 100644 index 0000000..4e734ac --- /dev/null +++ b/docs/PackageLinksSelf.md @@ -0,0 +1,56 @@ +# PackageLinksSelf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | URL of the package | [optional] + +## Methods + +### NewPackageLinksSelf + +`func NewPackageLinksSelf() *PackageLinksSelf` + +NewPackageLinksSelf instantiates a new PackageLinksSelf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageLinksSelfWithDefaults + +`func NewPackageLinksSelfWithDefaults() *PackageLinksSelf` + +NewPackageLinksSelfWithDefaults instantiates a new PackageLinksSelf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *PackageLinksSelf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PackageLinksSelf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *PackageLinksSelf) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PackageLinksSelf) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLinksUpload.md b/docs/PackageLinksUpload.md new file mode 100644 index 0000000..c4ef1b0 --- /dev/null +++ b/docs/PackageLinksUpload.md @@ -0,0 +1,82 @@ +# PackageLinksUpload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | URL to upload the package | [optional] +**Method** | Pointer to **string** | HTTP method for the upload URL | [optional] + +## Methods + +### NewPackageLinksUpload + +`func NewPackageLinksUpload() *PackageLinksUpload` + +NewPackageLinksUpload instantiates a new PackageLinksUpload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageLinksUploadWithDefaults + +`func NewPackageLinksUploadWithDefaults() *PackageLinksUpload` + +NewPackageLinksUploadWithDefaults instantiates a new PackageLinksUpload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *PackageLinksUpload) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *PackageLinksUpload) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *PackageLinksUpload) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *PackageLinksUpload) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMethod + +`func (o *PackageLinksUpload) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *PackageLinksUpload) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *PackageLinksUpload) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *PackageLinksUpload) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Pagination.md b/docs/Pagination.md new file mode 100644 index 0000000..6b8c7c0 --- /dev/null +++ b/docs/Pagination.md @@ -0,0 +1,196 @@ +# Pagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**Link**](Link.md) | | [optional] +**Last** | Pointer to [**Link**](Link.md) | | [optional] +**Next** | Pointer to [**Link**](Link.md) | | [optional] +**Previous** | Pointer to [**NullableListOrganizationQuotas200ResponsePaginationNext**](ListOrganizationQuotas200ResponsePaginationNext.md) | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewPagination + +`func NewPagination() *Pagination` + +NewPagination instantiates a new Pagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginationWithDefaults + +`func NewPaginationWithDefaults() *Pagination` + +NewPaginationWithDefaults instantiates a new Pagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *Pagination) GetFirst() Link` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *Pagination) GetFirstOk() (*Link, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *Pagination) SetFirst(v Link)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *Pagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *Pagination) GetLast() Link` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *Pagination) GetLastOk() (*Link, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *Pagination) SetLast(v Link)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *Pagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *Pagination) GetNext() Link` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *Pagination) GetNextOk() (*Link, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *Pagination) SetNext(v Link)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *Pagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *Pagination) GetPrevious() ListOrganizationQuotas200ResponsePaginationNext` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *Pagination) GetPreviousOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *Pagination) SetPrevious(v ListOrganizationQuotas200ResponsePaginationNext)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *Pagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *Pagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *Pagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *Pagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *Pagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *Pagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *Pagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *Pagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *Pagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *Pagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *Pagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlanSchemas.md b/docs/PlanSchemas.md new file mode 100644 index 0000000..7c4c197 --- /dev/null +++ b/docs/PlanSchemas.md @@ -0,0 +1,82 @@ +# PlanSchemas + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceBinding** | Pointer to [**PlanSchemasServiceBinding**](PlanSchemasServiceBinding.md) | | [optional] +**ServiceInstance** | Pointer to [**PlanSchemasServiceInstance**](PlanSchemasServiceInstance.md) | | [optional] + +## Methods + +### NewPlanSchemas + +`func NewPlanSchemas() *PlanSchemas` + +NewPlanSchemas instantiates a new PlanSchemas object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlanSchemasWithDefaults + +`func NewPlanSchemasWithDefaults() *PlanSchemas` + +NewPlanSchemasWithDefaults instantiates a new PlanSchemas object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceBinding + +`func (o *PlanSchemas) GetServiceBinding() PlanSchemasServiceBinding` + +GetServiceBinding returns the ServiceBinding field if non-nil, zero value otherwise. + +### GetServiceBindingOk + +`func (o *PlanSchemas) GetServiceBindingOk() (*PlanSchemasServiceBinding, bool)` + +GetServiceBindingOk returns a tuple with the ServiceBinding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceBinding + +`func (o *PlanSchemas) SetServiceBinding(v PlanSchemasServiceBinding)` + +SetServiceBinding sets ServiceBinding field to given value. + +### HasServiceBinding + +`func (o *PlanSchemas) HasServiceBinding() bool` + +HasServiceBinding returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *PlanSchemas) GetServiceInstance() PlanSchemasServiceInstance` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *PlanSchemas) GetServiceInstanceOk() (*PlanSchemasServiceInstance, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *PlanSchemas) SetServiceInstance(v PlanSchemasServiceInstance)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *PlanSchemas) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlanSchemasServiceBinding.md b/docs/PlanSchemasServiceBinding.md new file mode 100644 index 0000000..d3ab221 --- /dev/null +++ b/docs/PlanSchemasServiceBinding.md @@ -0,0 +1,56 @@ +# PlanSchemasServiceBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Create** | Pointer to [**PlanSchemasServiceBindingCreate**](PlanSchemasServiceBindingCreate.md) | | [optional] + +## Methods + +### NewPlanSchemasServiceBinding + +`func NewPlanSchemasServiceBinding() *PlanSchemasServiceBinding` + +NewPlanSchemasServiceBinding instantiates a new PlanSchemasServiceBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlanSchemasServiceBindingWithDefaults + +`func NewPlanSchemasServiceBindingWithDefaults() *PlanSchemasServiceBinding` + +NewPlanSchemasServiceBindingWithDefaults instantiates a new PlanSchemasServiceBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreate + +`func (o *PlanSchemasServiceBinding) GetCreate() PlanSchemasServiceBindingCreate` + +GetCreate returns the Create field if non-nil, zero value otherwise. + +### GetCreateOk + +`func (o *PlanSchemasServiceBinding) GetCreateOk() (*PlanSchemasServiceBindingCreate, bool)` + +GetCreateOk returns a tuple with the Create field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreate + +`func (o *PlanSchemasServiceBinding) SetCreate(v PlanSchemasServiceBindingCreate)` + +SetCreate sets Create field to given value. + +### HasCreate + +`func (o *PlanSchemasServiceBinding) HasCreate() bool` + +HasCreate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlanSchemasServiceBindingCreate.md b/docs/PlanSchemasServiceBindingCreate.md new file mode 100644 index 0000000..22ee5dd --- /dev/null +++ b/docs/PlanSchemasServiceBindingCreate.md @@ -0,0 +1,56 @@ +# PlanSchemasServiceBindingCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Parameters** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPlanSchemasServiceBindingCreate + +`func NewPlanSchemasServiceBindingCreate() *PlanSchemasServiceBindingCreate` + +NewPlanSchemasServiceBindingCreate instantiates a new PlanSchemasServiceBindingCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlanSchemasServiceBindingCreateWithDefaults + +`func NewPlanSchemasServiceBindingCreateWithDefaults() *PlanSchemasServiceBindingCreate` + +NewPlanSchemasServiceBindingCreateWithDefaults instantiates a new PlanSchemasServiceBindingCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParameters + +`func (o *PlanSchemasServiceBindingCreate) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PlanSchemasServiceBindingCreate) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PlanSchemasServiceBindingCreate) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PlanSchemasServiceBindingCreate) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlanSchemasServiceInstance.md b/docs/PlanSchemasServiceInstance.md new file mode 100644 index 0000000..3af6607 --- /dev/null +++ b/docs/PlanSchemasServiceInstance.md @@ -0,0 +1,82 @@ +# PlanSchemasServiceInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Create** | Pointer to [**PlanSchemasServiceBindingCreate**](PlanSchemasServiceBindingCreate.md) | | [optional] +**Update** | Pointer to [**PlanSchemasServiceBindingCreate**](PlanSchemasServiceBindingCreate.md) | | [optional] + +## Methods + +### NewPlanSchemasServiceInstance + +`func NewPlanSchemasServiceInstance() *PlanSchemasServiceInstance` + +NewPlanSchemasServiceInstance instantiates a new PlanSchemasServiceInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlanSchemasServiceInstanceWithDefaults + +`func NewPlanSchemasServiceInstanceWithDefaults() *PlanSchemasServiceInstance` + +NewPlanSchemasServiceInstanceWithDefaults instantiates a new PlanSchemasServiceInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreate + +`func (o *PlanSchemasServiceInstance) GetCreate() PlanSchemasServiceBindingCreate` + +GetCreate returns the Create field if non-nil, zero value otherwise. + +### GetCreateOk + +`func (o *PlanSchemasServiceInstance) GetCreateOk() (*PlanSchemasServiceBindingCreate, bool)` + +GetCreateOk returns a tuple with the Create field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreate + +`func (o *PlanSchemasServiceInstance) SetCreate(v PlanSchemasServiceBindingCreate)` + +SetCreate sets Create field to given value. + +### HasCreate + +`func (o *PlanSchemasServiceInstance) HasCreate() bool` + +HasCreate returns a boolean if a field has been set. + +### GetUpdate + +`func (o *PlanSchemasServiceInstance) GetUpdate() PlanSchemasServiceBindingCreate` + +GetUpdate returns the Update field if non-nil, zero value otherwise. + +### GetUpdateOk + +`func (o *PlanSchemasServiceInstance) GetUpdateOk() (*PlanSchemasServiceBindingCreate, bool)` + +GetUpdateOk returns a tuple with the Update field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdate + +`func (o *PlanSchemasServiceInstance) SetUpdate(v PlanSchemasServiceBindingCreate)` + +SetUpdate sets Update field to given value. + +### HasUpdate + +`func (o *PlanSchemasServiceInstance) HasUpdate() bool` + +HasUpdate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlatformInfo.md b/docs/PlatformInfo.md new file mode 100644 index 0000000..248d3c9 --- /dev/null +++ b/docs/PlatformInfo.md @@ -0,0 +1,212 @@ +# PlatformInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Build** | Pointer to **string** | | [optional] +**CliVersion** | Pointer to [**PlatformInfoCliVersion**](PlatformInfoCliVersion.md) | | [optional] +**Custom** | Pointer to **map[string]string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Links** | Pointer to [**PlatformInfoLinks**](PlatformInfoLinks.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **int32** | | [optional] + +## Methods + +### NewPlatformInfo + +`func NewPlatformInfo() *PlatformInfo` + +NewPlatformInfo instantiates a new PlatformInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlatformInfoWithDefaults + +`func NewPlatformInfoWithDefaults() *PlatformInfo` + +NewPlatformInfoWithDefaults instantiates a new PlatformInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuild + +`func (o *PlatformInfo) GetBuild() string` + +GetBuild returns the Build field if non-nil, zero value otherwise. + +### GetBuildOk + +`func (o *PlatformInfo) GetBuildOk() (*string, bool)` + +GetBuildOk returns a tuple with the Build field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuild + +`func (o *PlatformInfo) SetBuild(v string)` + +SetBuild sets Build field to given value. + +### HasBuild + +`func (o *PlatformInfo) HasBuild() bool` + +HasBuild returns a boolean if a field has been set. + +### GetCliVersion + +`func (o *PlatformInfo) GetCliVersion() PlatformInfoCliVersion` + +GetCliVersion returns the CliVersion field if non-nil, zero value otherwise. + +### GetCliVersionOk + +`func (o *PlatformInfo) GetCliVersionOk() (*PlatformInfoCliVersion, bool)` + +GetCliVersionOk returns a tuple with the CliVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCliVersion + +`func (o *PlatformInfo) SetCliVersion(v PlatformInfoCliVersion)` + +SetCliVersion sets CliVersion field to given value. + +### HasCliVersion + +`func (o *PlatformInfo) HasCliVersion() bool` + +HasCliVersion returns a boolean if a field has been set. + +### GetCustom + +`func (o *PlatformInfo) GetCustom() map[string]string` + +GetCustom returns the Custom field if non-nil, zero value otherwise. + +### GetCustomOk + +`func (o *PlatformInfo) GetCustomOk() (*map[string]string, bool)` + +GetCustomOk returns a tuple with the Custom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustom + +`func (o *PlatformInfo) SetCustom(v map[string]string)` + +SetCustom sets Custom field to given value. + +### HasCustom + +`func (o *PlatformInfo) HasCustom() bool` + +HasCustom returns a boolean if a field has been set. + +### GetDescription + +`func (o *PlatformInfo) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PlatformInfo) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PlatformInfo) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PlatformInfo) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetLinks + +`func (o *PlatformInfo) GetLinks() PlatformInfoLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PlatformInfo) GetLinksOk() (*PlatformInfoLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PlatformInfo) SetLinks(v PlatformInfoLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PlatformInfo) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *PlatformInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PlatformInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PlatformInfo) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PlatformInfo) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *PlatformInfo) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *PlatformInfo) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *PlatformInfo) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *PlatformInfo) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlatformInfoCliVersion.md b/docs/PlatformInfoCliVersion.md new file mode 100644 index 0000000..32a115d --- /dev/null +++ b/docs/PlatformInfoCliVersion.md @@ -0,0 +1,82 @@ +# PlatformInfoCliVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Minimum** | Pointer to **string** | | [optional] +**Recommended** | Pointer to **string** | | [optional] + +## Methods + +### NewPlatformInfoCliVersion + +`func NewPlatformInfoCliVersion() *PlatformInfoCliVersion` + +NewPlatformInfoCliVersion instantiates a new PlatformInfoCliVersion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlatformInfoCliVersionWithDefaults + +`func NewPlatformInfoCliVersionWithDefaults() *PlatformInfoCliVersion` + +NewPlatformInfoCliVersionWithDefaults instantiates a new PlatformInfoCliVersion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMinimum + +`func (o *PlatformInfoCliVersion) GetMinimum() string` + +GetMinimum returns the Minimum field if non-nil, zero value otherwise. + +### GetMinimumOk + +`func (o *PlatformInfoCliVersion) GetMinimumOk() (*string, bool)` + +GetMinimumOk returns a tuple with the Minimum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimum + +`func (o *PlatformInfoCliVersion) SetMinimum(v string)` + +SetMinimum sets Minimum field to given value. + +### HasMinimum + +`func (o *PlatformInfoCliVersion) HasMinimum() bool` + +HasMinimum returns a boolean if a field has been set. + +### GetRecommended + +`func (o *PlatformInfoCliVersion) GetRecommended() string` + +GetRecommended returns the Recommended field if non-nil, zero value otherwise. + +### GetRecommendedOk + +`func (o *PlatformInfoCliVersion) GetRecommendedOk() (*string, bool)` + +GetRecommendedOk returns a tuple with the Recommended field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommended + +`func (o *PlatformInfoCliVersion) SetRecommended(v string)` + +SetRecommended sets Recommended field to given value. + +### HasRecommended + +`func (o *PlatformInfoCliVersion) HasRecommended() bool` + +HasRecommended returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PlatformInfoLinks.md b/docs/PlatformInfoLinks.md new file mode 100644 index 0000000..cf30434 --- /dev/null +++ b/docs/PlatformInfoLinks.md @@ -0,0 +1,82 @@ +# PlatformInfoLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Support** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewPlatformInfoLinks + +`func NewPlatformInfoLinks() *PlatformInfoLinks` + +NewPlatformInfoLinks instantiates a new PlatformInfoLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPlatformInfoLinksWithDefaults + +`func NewPlatformInfoLinksWithDefaults() *PlatformInfoLinks` + +NewPlatformInfoLinksWithDefaults instantiates a new PlatformInfoLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *PlatformInfoLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *PlatformInfoLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *PlatformInfoLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *PlatformInfoLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSupport + +`func (o *PlatformInfoLinks) GetSupport() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSupport returns the Support field if non-nil, zero value otherwise. + +### GetSupportOk + +`func (o *PlatformInfoLinks) GetSupportOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSupportOk returns a tuple with the Support field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupport + +`func (o *PlatformInfoLinks) SetSupport(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSupport sets Support field to given value. + +### HasSupport + +`func (o *PlatformInfoLinks) HasSupport() bool` + +HasSupport returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Process.md b/docs/Process.md new file mode 100644 index 0000000..6eb7251 --- /dev/null +++ b/docs/Process.md @@ -0,0 +1,430 @@ +# Process + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **NullableString** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**DiskInMb** | Pointer to **int32** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**HealthCheck** | Pointer to [**HealthCheck**](HealthCheck.md) | | [optional] +**Instances** | Pointer to **int32** | | [optional] +**Links** | Pointer to [**ProcessLinks**](ProcessLinks.md) | | [optional] +**LogRateLimitInBytesPerSecond** | Pointer to **int32** | | [optional] +**MemoryInMb** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**ReadinessHealthCheck** | Pointer to [**ReadinessHealthCheck**](ReadinessHealthCheck.md) | | [optional] +**Relationships** | Pointer to [**ProcessRelationships**](ProcessRelationships.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewProcess + +`func NewProcess() *Process` + +NewProcess instantiates a new Process object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessWithDefaults + +`func NewProcessWithDefaults() *Process` + +NewProcessWithDefaults instantiates a new Process object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *Process) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *Process) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *Process) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *Process) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### SetCommandNil + +`func (o *Process) SetCommandNil(b bool)` + + SetCommandNil sets the value for Command to be an explicit nil + +### UnsetCommand +`func (o *Process) UnsetCommand()` + +UnsetCommand ensures that no value is present for Command, not even an explicit nil +### GetCreatedAt + +`func (o *Process) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Process) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Process) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Process) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDiskInMb + +`func (o *Process) GetDiskInMb() int32` + +GetDiskInMb returns the DiskInMb field if non-nil, zero value otherwise. + +### GetDiskInMbOk + +`func (o *Process) GetDiskInMbOk() (*int32, bool)` + +GetDiskInMbOk returns a tuple with the DiskInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskInMb + +`func (o *Process) SetDiskInMb(v int32)` + +SetDiskInMb sets DiskInMb field to given value. + +### HasDiskInMb + +`func (o *Process) HasDiskInMb() bool` + +HasDiskInMb returns a boolean if a field has been set. + +### GetGuid + +`func (o *Process) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Process) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Process) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Process) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetHealthCheck + +`func (o *Process) GetHealthCheck() HealthCheck` + +GetHealthCheck returns the HealthCheck field if non-nil, zero value otherwise. + +### GetHealthCheckOk + +`func (o *Process) GetHealthCheckOk() (*HealthCheck, bool)` + +GetHealthCheckOk returns a tuple with the HealthCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHealthCheck + +`func (o *Process) SetHealthCheck(v HealthCheck)` + +SetHealthCheck sets HealthCheck field to given value. + +### HasHealthCheck + +`func (o *Process) HasHealthCheck() bool` + +HasHealthCheck returns a boolean if a field has been set. + +### GetInstances + +`func (o *Process) GetInstances() int32` + +GetInstances returns the Instances field if non-nil, zero value otherwise. + +### GetInstancesOk + +`func (o *Process) GetInstancesOk() (*int32, bool)` + +GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstances + +`func (o *Process) SetInstances(v int32)` + +SetInstances sets Instances field to given value. + +### HasInstances + +`func (o *Process) HasInstances() bool` + +HasInstances returns a boolean if a field has been set. + +### GetLinks + +`func (o *Process) GetLinks() ProcessLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Process) GetLinksOk() (*ProcessLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Process) SetLinks(v ProcessLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Process) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetLogRateLimitInBytesPerSecond + +`func (o *Process) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *Process) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *Process) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *Process) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *Process) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *Process) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *Process) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *Process) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Process) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Process) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Process) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Process) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetReadinessHealthCheck + +`func (o *Process) GetReadinessHealthCheck() ReadinessHealthCheck` + +GetReadinessHealthCheck returns the ReadinessHealthCheck field if non-nil, zero value otherwise. + +### GetReadinessHealthCheckOk + +`func (o *Process) GetReadinessHealthCheckOk() (*ReadinessHealthCheck, bool)` + +GetReadinessHealthCheckOk returns a tuple with the ReadinessHealthCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadinessHealthCheck + +`func (o *Process) SetReadinessHealthCheck(v ReadinessHealthCheck)` + +SetReadinessHealthCheck sets ReadinessHealthCheck field to given value. + +### HasReadinessHealthCheck + +`func (o *Process) HasReadinessHealthCheck() bool` + +HasReadinessHealthCheck returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Process) GetRelationships() ProcessRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Process) GetRelationshipsOk() (*ProcessRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Process) SetRelationships(v ProcessRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Process) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetType + +`func (o *Process) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Process) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Process) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Process) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Process) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Process) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Process) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Process) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetVersion + +`func (o *Process) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *Process) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *Process) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *Process) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessLinks.md b/docs/ProcessLinks.md new file mode 100644 index 0000000..8586de6 --- /dev/null +++ b/docs/ProcessLinks.md @@ -0,0 +1,160 @@ +# ProcessLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**Link**](Link.md) | | [optional] +**Scale** | Pointer to [**Link**](Link.md) | | [optional] +**Self** | Pointer to [**Link**](Link.md) | | [optional] +**Space** | Pointer to [**Link**](Link.md) | | [optional] +**Stats** | Pointer to [**Link**](Link.md) | | [optional] + +## Methods + +### NewProcessLinks + +`func NewProcessLinks() *ProcessLinks` + +NewProcessLinks instantiates a new ProcessLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessLinksWithDefaults + +`func NewProcessLinksWithDefaults() *ProcessLinks` + +NewProcessLinksWithDefaults instantiates a new ProcessLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *ProcessLinks) GetApp() Link` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *ProcessLinks) GetAppOk() (*Link, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *ProcessLinks) SetApp(v Link)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *ProcessLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetScale + +`func (o *ProcessLinks) GetScale() Link` + +GetScale returns the Scale field if non-nil, zero value otherwise. + +### GetScaleOk + +`func (o *ProcessLinks) GetScaleOk() (*Link, bool)` + +GetScaleOk returns a tuple with the Scale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScale + +`func (o *ProcessLinks) SetScale(v Link)` + +SetScale sets Scale field to given value. + +### HasScale + +`func (o *ProcessLinks) HasScale() bool` + +HasScale returns a boolean if a field has been set. + +### GetSelf + +`func (o *ProcessLinks) GetSelf() Link` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ProcessLinks) GetSelfOk() (*Link, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ProcessLinks) SetSelf(v Link)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ProcessLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSpace + +`func (o *ProcessLinks) GetSpace() Link` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ProcessLinks) GetSpaceOk() (*Link, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ProcessLinks) SetSpace(v Link)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ProcessLinks) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetStats + +`func (o *ProcessLinks) GetStats() Link` + +GetStats returns the Stats field if non-nil, zero value otherwise. + +### GetStatsOk + +`func (o *ProcessLinks) GetStatsOk() (*Link, bool)` + +GetStatsOk returns a tuple with the Stats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStats + +`func (o *ProcessLinks) SetStats(v Link)` + +SetStats sets Stats field to given value. + +### HasStats + +`func (o *ProcessLinks) HasStats() bool` + +HasStats returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessList.md b/docs/ProcessList.md new file mode 100644 index 0000000..52fb968 --- /dev/null +++ b/docs/ProcessList.md @@ -0,0 +1,82 @@ +# ProcessList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Process**](Process.md) | | [optional] + +## Methods + +### NewProcessList + +`func NewProcessList() *ProcessList` + +NewProcessList instantiates a new ProcessList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessListWithDefaults + +`func NewProcessListWithDefaults() *ProcessList` + +NewProcessListWithDefaults instantiates a new ProcessList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *ProcessList) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ProcessList) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ProcessList) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ProcessList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *ProcessList) GetResources() []Process` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ProcessList) GetResourcesOk() (*[]Process, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ProcessList) SetResources(v []Process)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ProcessList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessRelationships.md b/docs/ProcessRelationships.md new file mode 100644 index 0000000..0a82942 --- /dev/null +++ b/docs/ProcessRelationships.md @@ -0,0 +1,82 @@ +# ProcessRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] +**Revision** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] + +## Methods + +### NewProcessRelationships + +`func NewProcessRelationships() *ProcessRelationships` + +NewProcessRelationships instantiates a new ProcessRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessRelationshipsWithDefaults + +`func NewProcessRelationshipsWithDefaults() *ProcessRelationships` + +NewProcessRelationshipsWithDefaults instantiates a new ProcessRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *ProcessRelationships) GetApp() ToOneRelationship` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *ProcessRelationships) GetAppOk() (*ToOneRelationship, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *ProcessRelationships) SetApp(v ToOneRelationship)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *ProcessRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetRevision + +`func (o *ProcessRelationships) GetRevision() ToOneRelationship` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *ProcessRelationships) GetRevisionOk() (*ToOneRelationship, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *ProcessRelationships) SetRevision(v ToOneRelationship)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *ProcessRelationships) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessScale.md b/docs/ProcessScale.md new file mode 100644 index 0000000..deb97e4 --- /dev/null +++ b/docs/ProcessScale.md @@ -0,0 +1,134 @@ +# ProcessScale + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiskInMb** | Pointer to **int32** | | [optional] +**Instances** | Pointer to **int32** | | [optional] +**LogRateLimitInBytesPerSecond** | Pointer to **int32** | | [optional] +**MemoryInMb** | Pointer to **int32** | | [optional] + +## Methods + +### NewProcessScale + +`func NewProcessScale() *ProcessScale` + +NewProcessScale instantiates a new ProcessScale object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessScaleWithDefaults + +`func NewProcessScaleWithDefaults() *ProcessScale` + +NewProcessScaleWithDefaults instantiates a new ProcessScale object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDiskInMb + +`func (o *ProcessScale) GetDiskInMb() int32` + +GetDiskInMb returns the DiskInMb field if non-nil, zero value otherwise. + +### GetDiskInMbOk + +`func (o *ProcessScale) GetDiskInMbOk() (*int32, bool)` + +GetDiskInMbOk returns a tuple with the DiskInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskInMb + +`func (o *ProcessScale) SetDiskInMb(v int32)` + +SetDiskInMb sets DiskInMb field to given value. + +### HasDiskInMb + +`func (o *ProcessScale) HasDiskInMb() bool` + +HasDiskInMb returns a boolean if a field has been set. + +### GetInstances + +`func (o *ProcessScale) GetInstances() int32` + +GetInstances returns the Instances field if non-nil, zero value otherwise. + +### GetInstancesOk + +`func (o *ProcessScale) GetInstancesOk() (*int32, bool)` + +GetInstancesOk returns a tuple with the Instances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstances + +`func (o *ProcessScale) SetInstances(v int32)` + +SetInstances sets Instances field to given value. + +### HasInstances + +`func (o *ProcessScale) HasInstances() bool` + +HasInstances returns a boolean if a field has been set. + +### GetLogRateLimitInBytesPerSecond + +`func (o *ProcessScale) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *ProcessScale) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *ProcessScale) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *ProcessScale) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *ProcessScale) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *ProcessScale) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *ProcessScale) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *ProcessScale) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessStats.md b/docs/ProcessStats.md new file mode 100644 index 0000000..e61addd --- /dev/null +++ b/docs/ProcessStats.md @@ -0,0 +1,444 @@ +# ProcessStats + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | Pointer to **NullableString** | | [optional] +**DiskQuota** | Pointer to **NullableInt32** | | [optional] +**FdsQuota** | Pointer to **int32** | | [optional] +**Host** | Pointer to **string** | | [optional] +**Index** | Pointer to **int32** | | [optional] +**InstanceInternalIp** | Pointer to **string** | | [optional] +**InstancePorts** | Pointer to [**[]ProcessStatsInstancePortsInner**](ProcessStatsInstancePortsInner.md) | | [optional] +**IsolationSegment** | Pointer to **NullableString** | | [optional] +**LogRateLimit** | Pointer to **NullableInt32** | | [optional] +**MemQuota** | Pointer to **NullableInt32** | | [optional] +**State** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Uptime** | Pointer to **int32** | | [optional] +**Usage** | Pointer to [**ProcessStatsUsage**](ProcessStatsUsage.md) | | [optional] + +## Methods + +### NewProcessStats + +`func NewProcessStats() *ProcessStats` + +NewProcessStats instantiates a new ProcessStats object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessStatsWithDefaults + +`func NewProcessStatsWithDefaults() *ProcessStats` + +NewProcessStatsWithDefaults instantiates a new ProcessStats object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDetails + +`func (o *ProcessStats) GetDetails() string` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *ProcessStats) GetDetailsOk() (*string, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *ProcessStats) SetDetails(v string)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *ProcessStats) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### SetDetailsNil + +`func (o *ProcessStats) SetDetailsNil(b bool)` + + SetDetailsNil sets the value for Details to be an explicit nil + +### UnsetDetails +`func (o *ProcessStats) UnsetDetails()` + +UnsetDetails ensures that no value is present for Details, not even an explicit nil +### GetDiskQuota + +`func (o *ProcessStats) GetDiskQuota() int32` + +GetDiskQuota returns the DiskQuota field if non-nil, zero value otherwise. + +### GetDiskQuotaOk + +`func (o *ProcessStats) GetDiskQuotaOk() (*int32, bool)` + +GetDiskQuotaOk returns a tuple with the DiskQuota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskQuota + +`func (o *ProcessStats) SetDiskQuota(v int32)` + +SetDiskQuota sets DiskQuota field to given value. + +### HasDiskQuota + +`func (o *ProcessStats) HasDiskQuota() bool` + +HasDiskQuota returns a boolean if a field has been set. + +### SetDiskQuotaNil + +`func (o *ProcessStats) SetDiskQuotaNil(b bool)` + + SetDiskQuotaNil sets the value for DiskQuota to be an explicit nil + +### UnsetDiskQuota +`func (o *ProcessStats) UnsetDiskQuota()` + +UnsetDiskQuota ensures that no value is present for DiskQuota, not even an explicit nil +### GetFdsQuota + +`func (o *ProcessStats) GetFdsQuota() int32` + +GetFdsQuota returns the FdsQuota field if non-nil, zero value otherwise. + +### GetFdsQuotaOk + +`func (o *ProcessStats) GetFdsQuotaOk() (*int32, bool)` + +GetFdsQuotaOk returns a tuple with the FdsQuota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFdsQuota + +`func (o *ProcessStats) SetFdsQuota(v int32)` + +SetFdsQuota sets FdsQuota field to given value. + +### HasFdsQuota + +`func (o *ProcessStats) HasFdsQuota() bool` + +HasFdsQuota returns a boolean if a field has been set. + +### GetHost + +`func (o *ProcessStats) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *ProcessStats) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *ProcessStats) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *ProcessStats) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetIndex + +`func (o *ProcessStats) GetIndex() int32` + +GetIndex returns the Index field if non-nil, zero value otherwise. + +### GetIndexOk + +`func (o *ProcessStats) GetIndexOk() (*int32, bool)` + +GetIndexOk returns a tuple with the Index field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndex + +`func (o *ProcessStats) SetIndex(v int32)` + +SetIndex sets Index field to given value. + +### HasIndex + +`func (o *ProcessStats) HasIndex() bool` + +HasIndex returns a boolean if a field has been set. + +### GetInstanceInternalIp + +`func (o *ProcessStats) GetInstanceInternalIp() string` + +GetInstanceInternalIp returns the InstanceInternalIp field if non-nil, zero value otherwise. + +### GetInstanceInternalIpOk + +`func (o *ProcessStats) GetInstanceInternalIpOk() (*string, bool)` + +GetInstanceInternalIpOk returns a tuple with the InstanceInternalIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceInternalIp + +`func (o *ProcessStats) SetInstanceInternalIp(v string)` + +SetInstanceInternalIp sets InstanceInternalIp field to given value. + +### HasInstanceInternalIp + +`func (o *ProcessStats) HasInstanceInternalIp() bool` + +HasInstanceInternalIp returns a boolean if a field has been set. + +### GetInstancePorts + +`func (o *ProcessStats) GetInstancePorts() []ProcessStatsInstancePortsInner` + +GetInstancePorts returns the InstancePorts field if non-nil, zero value otherwise. + +### GetInstancePortsOk + +`func (o *ProcessStats) GetInstancePortsOk() (*[]ProcessStatsInstancePortsInner, bool)` + +GetInstancePortsOk returns a tuple with the InstancePorts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstancePorts + +`func (o *ProcessStats) SetInstancePorts(v []ProcessStatsInstancePortsInner)` + +SetInstancePorts sets InstancePorts field to given value. + +### HasInstancePorts + +`func (o *ProcessStats) HasInstancePorts() bool` + +HasInstancePorts returns a boolean if a field has been set. + +### GetIsolationSegment + +`func (o *ProcessStats) GetIsolationSegment() string` + +GetIsolationSegment returns the IsolationSegment field if non-nil, zero value otherwise. + +### GetIsolationSegmentOk + +`func (o *ProcessStats) GetIsolationSegmentOk() (*string, bool)` + +GetIsolationSegmentOk returns a tuple with the IsolationSegment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsolationSegment + +`func (o *ProcessStats) SetIsolationSegment(v string)` + +SetIsolationSegment sets IsolationSegment field to given value. + +### HasIsolationSegment + +`func (o *ProcessStats) HasIsolationSegment() bool` + +HasIsolationSegment returns a boolean if a field has been set. + +### SetIsolationSegmentNil + +`func (o *ProcessStats) SetIsolationSegmentNil(b bool)` + + SetIsolationSegmentNil sets the value for IsolationSegment to be an explicit nil + +### UnsetIsolationSegment +`func (o *ProcessStats) UnsetIsolationSegment()` + +UnsetIsolationSegment ensures that no value is present for IsolationSegment, not even an explicit nil +### GetLogRateLimit + +`func (o *ProcessStats) GetLogRateLimit() int32` + +GetLogRateLimit returns the LogRateLimit field if non-nil, zero value otherwise. + +### GetLogRateLimitOk + +`func (o *ProcessStats) GetLogRateLimitOk() (*int32, bool)` + +GetLogRateLimitOk returns a tuple with the LogRateLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimit + +`func (o *ProcessStats) SetLogRateLimit(v int32)` + +SetLogRateLimit sets LogRateLimit field to given value. + +### HasLogRateLimit + +`func (o *ProcessStats) HasLogRateLimit() bool` + +HasLogRateLimit returns a boolean if a field has been set. + +### SetLogRateLimitNil + +`func (o *ProcessStats) SetLogRateLimitNil(b bool)` + + SetLogRateLimitNil sets the value for LogRateLimit to be an explicit nil + +### UnsetLogRateLimit +`func (o *ProcessStats) UnsetLogRateLimit()` + +UnsetLogRateLimit ensures that no value is present for LogRateLimit, not even an explicit nil +### GetMemQuota + +`func (o *ProcessStats) GetMemQuota() int32` + +GetMemQuota returns the MemQuota field if non-nil, zero value otherwise. + +### GetMemQuotaOk + +`func (o *ProcessStats) GetMemQuotaOk() (*int32, bool)` + +GetMemQuotaOk returns a tuple with the MemQuota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemQuota + +`func (o *ProcessStats) SetMemQuota(v int32)` + +SetMemQuota sets MemQuota field to given value. + +### HasMemQuota + +`func (o *ProcessStats) HasMemQuota() bool` + +HasMemQuota returns a boolean if a field has been set. + +### SetMemQuotaNil + +`func (o *ProcessStats) SetMemQuotaNil(b bool)` + + SetMemQuotaNil sets the value for MemQuota to be an explicit nil + +### UnsetMemQuota +`func (o *ProcessStats) UnsetMemQuota()` + +UnsetMemQuota ensures that no value is present for MemQuota, not even an explicit nil +### GetState + +`func (o *ProcessStats) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ProcessStats) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ProcessStats) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ProcessStats) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetType + +`func (o *ProcessStats) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProcessStats) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ProcessStats) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ProcessStats) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUptime + +`func (o *ProcessStats) GetUptime() int32` + +GetUptime returns the Uptime field if non-nil, zero value otherwise. + +### GetUptimeOk + +`func (o *ProcessStats) GetUptimeOk() (*int32, bool)` + +GetUptimeOk returns a tuple with the Uptime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUptime + +`func (o *ProcessStats) SetUptime(v int32)` + +SetUptime sets Uptime field to given value. + +### HasUptime + +`func (o *ProcessStats) HasUptime() bool` + +HasUptime returns a boolean if a field has been set. + +### GetUsage + +`func (o *ProcessStats) GetUsage() ProcessStatsUsage` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *ProcessStats) GetUsageOk() (*ProcessStatsUsage, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *ProcessStats) SetUsage(v ProcessStatsUsage)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *ProcessStats) HasUsage() bool` + +HasUsage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessStatsInstancePortsInner.md b/docs/ProcessStatsInstancePortsInner.md new file mode 100644 index 0000000..d13b0f7 --- /dev/null +++ b/docs/ProcessStatsInstancePortsInner.md @@ -0,0 +1,134 @@ +# ProcessStatsInstancePortsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**External** | Pointer to **int32** | | [optional] +**ExternalTlsProxyPort** | Pointer to **int32** | | [optional] +**Internal** | Pointer to **int32** | | [optional] +**InternalTlsProxyPort** | Pointer to **int32** | | [optional] + +## Methods + +### NewProcessStatsInstancePortsInner + +`func NewProcessStatsInstancePortsInner() *ProcessStatsInstancePortsInner` + +NewProcessStatsInstancePortsInner instantiates a new ProcessStatsInstancePortsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessStatsInstancePortsInnerWithDefaults + +`func NewProcessStatsInstancePortsInnerWithDefaults() *ProcessStatsInstancePortsInner` + +NewProcessStatsInstancePortsInnerWithDefaults instantiates a new ProcessStatsInstancePortsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExternal + +`func (o *ProcessStatsInstancePortsInner) GetExternal() int32` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *ProcessStatsInstancePortsInner) GetExternalOk() (*int32, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *ProcessStatsInstancePortsInner) SetExternal(v int32)` + +SetExternal sets External field to given value. + +### HasExternal + +`func (o *ProcessStatsInstancePortsInner) HasExternal() bool` + +HasExternal returns a boolean if a field has been set. + +### GetExternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) GetExternalTlsProxyPort() int32` + +GetExternalTlsProxyPort returns the ExternalTlsProxyPort field if non-nil, zero value otherwise. + +### GetExternalTlsProxyPortOk + +`func (o *ProcessStatsInstancePortsInner) GetExternalTlsProxyPortOk() (*int32, bool)` + +GetExternalTlsProxyPortOk returns a tuple with the ExternalTlsProxyPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) SetExternalTlsProxyPort(v int32)` + +SetExternalTlsProxyPort sets ExternalTlsProxyPort field to given value. + +### HasExternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) HasExternalTlsProxyPort() bool` + +HasExternalTlsProxyPort returns a boolean if a field has been set. + +### GetInternal + +`func (o *ProcessStatsInstancePortsInner) GetInternal() int32` + +GetInternal returns the Internal field if non-nil, zero value otherwise. + +### GetInternalOk + +`func (o *ProcessStatsInstancePortsInner) GetInternalOk() (*int32, bool)` + +GetInternalOk returns a tuple with the Internal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternal + +`func (o *ProcessStatsInstancePortsInner) SetInternal(v int32)` + +SetInternal sets Internal field to given value. + +### HasInternal + +`func (o *ProcessStatsInstancePortsInner) HasInternal() bool` + +HasInternal returns a boolean if a field has been set. + +### GetInternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) GetInternalTlsProxyPort() int32` + +GetInternalTlsProxyPort returns the InternalTlsProxyPort field if non-nil, zero value otherwise. + +### GetInternalTlsProxyPortOk + +`func (o *ProcessStatsInstancePortsInner) GetInternalTlsProxyPortOk() (*int32, bool)` + +GetInternalTlsProxyPortOk returns a tuple with the InternalTlsProxyPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) SetInternalTlsProxyPort(v int32)` + +SetInternalTlsProxyPort sets InternalTlsProxyPort field to given value. + +### HasInternalTlsProxyPort + +`func (o *ProcessStatsInstancePortsInner) HasInternalTlsProxyPort() bool` + +HasInternalTlsProxyPort returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessStatsUsage.md b/docs/ProcessStatsUsage.md new file mode 100644 index 0000000..af16e05 --- /dev/null +++ b/docs/ProcessStatsUsage.md @@ -0,0 +1,160 @@ +# ProcessStatsUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | Pointer to **float32** | | [optional] +**Disk** | Pointer to **int32** | | [optional] +**LogRate** | Pointer to **int32** | | [optional] +**Mem** | Pointer to **int32** | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewProcessStatsUsage + +`func NewProcessStatsUsage() *ProcessStatsUsage` + +NewProcessStatsUsage instantiates a new ProcessStatsUsage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessStatsUsageWithDefaults + +`func NewProcessStatsUsageWithDefaults() *ProcessStatsUsage` + +NewProcessStatsUsageWithDefaults instantiates a new ProcessStatsUsage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCpu + +`func (o *ProcessStatsUsage) GetCpu() float32` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ProcessStatsUsage) GetCpuOk() (*float32, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ProcessStatsUsage) SetCpu(v float32)` + +SetCpu sets Cpu field to given value. + +### HasCpu + +`func (o *ProcessStatsUsage) HasCpu() bool` + +HasCpu returns a boolean if a field has been set. + +### GetDisk + +`func (o *ProcessStatsUsage) GetDisk() int32` + +GetDisk returns the Disk field if non-nil, zero value otherwise. + +### GetDiskOk + +`func (o *ProcessStatsUsage) GetDiskOk() (*int32, bool)` + +GetDiskOk returns a tuple with the Disk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisk + +`func (o *ProcessStatsUsage) SetDisk(v int32)` + +SetDisk sets Disk field to given value. + +### HasDisk + +`func (o *ProcessStatsUsage) HasDisk() bool` + +HasDisk returns a boolean if a field has been set. + +### GetLogRate + +`func (o *ProcessStatsUsage) GetLogRate() int32` + +GetLogRate returns the LogRate field if non-nil, zero value otherwise. + +### GetLogRateOk + +`func (o *ProcessStatsUsage) GetLogRateOk() (*int32, bool)` + +GetLogRateOk returns a tuple with the LogRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRate + +`func (o *ProcessStatsUsage) SetLogRate(v int32)` + +SetLogRate sets LogRate field to given value. + +### HasLogRate + +`func (o *ProcessStatsUsage) HasLogRate() bool` + +HasLogRate returns a boolean if a field has been set. + +### GetMem + +`func (o *ProcessStatsUsage) GetMem() int32` + +GetMem returns the Mem field if non-nil, zero value otherwise. + +### GetMemOk + +`func (o *ProcessStatsUsage) GetMemOk() (*int32, bool)` + +GetMemOk returns a tuple with the Mem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMem + +`func (o *ProcessStatsUsage) SetMem(v int32)` + +SetMem sets Mem field to given value. + +### HasMem + +`func (o *ProcessStatsUsage) HasMem() bool` + +HasMem returns a boolean if a field has been set. + +### GetTime + +`func (o *ProcessStatsUsage) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *ProcessStatsUsage) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *ProcessStatsUsage) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *ProcessStatsUsage) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessUpdate.md b/docs/ProcessUpdate.md new file mode 100644 index 0000000..db20248 --- /dev/null +++ b/docs/ProcessUpdate.md @@ -0,0 +1,144 @@ +# ProcessUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **NullableString** | | [optional] +**HealthCheck** | Pointer to [**HealthCheck**](HealthCheck.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**ReadinessHealthCheck** | Pointer to [**ReadinessHealthCheck**](ReadinessHealthCheck.md) | | [optional] + +## Methods + +### NewProcessUpdate + +`func NewProcessUpdate() *ProcessUpdate` + +NewProcessUpdate instantiates a new ProcessUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProcessUpdateWithDefaults + +`func NewProcessUpdateWithDefaults() *ProcessUpdate` + +NewProcessUpdateWithDefaults instantiates a new ProcessUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *ProcessUpdate) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *ProcessUpdate) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *ProcessUpdate) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *ProcessUpdate) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### SetCommandNil + +`func (o *ProcessUpdate) SetCommandNil(b bool)` + + SetCommandNil sets the value for Command to be an explicit nil + +### UnsetCommand +`func (o *ProcessUpdate) UnsetCommand()` + +UnsetCommand ensures that no value is present for Command, not even an explicit nil +### GetHealthCheck + +`func (o *ProcessUpdate) GetHealthCheck() HealthCheck` + +GetHealthCheck returns the HealthCheck field if non-nil, zero value otherwise. + +### GetHealthCheckOk + +`func (o *ProcessUpdate) GetHealthCheckOk() (*HealthCheck, bool)` + +GetHealthCheckOk returns a tuple with the HealthCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHealthCheck + +`func (o *ProcessUpdate) SetHealthCheck(v HealthCheck)` + +SetHealthCheck sets HealthCheck field to given value. + +### HasHealthCheck + +`func (o *ProcessUpdate) HasHealthCheck() bool` + +HasHealthCheck returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ProcessUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ProcessUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ProcessUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ProcessUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetReadinessHealthCheck + +`func (o *ProcessUpdate) GetReadinessHealthCheck() ReadinessHealthCheck` + +GetReadinessHealthCheck returns the ReadinessHealthCheck field if non-nil, zero value otherwise. + +### GetReadinessHealthCheckOk + +`func (o *ProcessUpdate) GetReadinessHealthCheckOk() (*ReadinessHealthCheck, bool)` + +GetReadinessHealthCheckOk returns a tuple with the ReadinessHealthCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadinessHealthCheck + +`func (o *ProcessUpdate) SetReadinessHealthCheck(v ReadinessHealthCheck)` + +SetReadinessHealthCheck sets ReadinessHealthCheck field to given value. + +### HasReadinessHealthCheck + +`func (o *ProcessUpdate) HasReadinessHealthCheck() bool` + +HasReadinessHealthCheck returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReadinessHealthCheck.md b/docs/ReadinessHealthCheck.md new file mode 100644 index 0000000..ae9a398 --- /dev/null +++ b/docs/ReadinessHealthCheck.md @@ -0,0 +1,82 @@ +# ReadinessHealthCheck + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**ReadinessHealthCheckData**](ReadinessHealthCheckData.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewReadinessHealthCheck + +`func NewReadinessHealthCheck() *ReadinessHealthCheck` + +NewReadinessHealthCheck instantiates a new ReadinessHealthCheck object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReadinessHealthCheckWithDefaults + +`func NewReadinessHealthCheckWithDefaults() *ReadinessHealthCheck` + +NewReadinessHealthCheckWithDefaults instantiates a new ReadinessHealthCheck object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ReadinessHealthCheck) GetData() ReadinessHealthCheckData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ReadinessHealthCheck) GetDataOk() (*ReadinessHealthCheckData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ReadinessHealthCheck) SetData(v ReadinessHealthCheckData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ReadinessHealthCheck) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *ReadinessHealthCheck) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReadinessHealthCheck) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ReadinessHealthCheck) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ReadinessHealthCheck) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReadinessHealthCheckData.md b/docs/ReadinessHealthCheckData.md new file mode 100644 index 0000000..f465738 --- /dev/null +++ b/docs/ReadinessHealthCheckData.md @@ -0,0 +1,138 @@ +# ReadinessHealthCheckData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Endpoint** | Pointer to **NullableString** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] +**InvocationTimeout** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewReadinessHealthCheckData + +`func NewReadinessHealthCheckData() *ReadinessHealthCheckData` + +NewReadinessHealthCheckData instantiates a new ReadinessHealthCheckData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReadinessHealthCheckDataWithDefaults + +`func NewReadinessHealthCheckDataWithDefaults() *ReadinessHealthCheckData` + +NewReadinessHealthCheckDataWithDefaults instantiates a new ReadinessHealthCheckData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpoint + +`func (o *ReadinessHealthCheckData) GetEndpoint() string` + +GetEndpoint returns the Endpoint field if non-nil, zero value otherwise. + +### GetEndpointOk + +`func (o *ReadinessHealthCheckData) GetEndpointOk() (*string, bool)` + +GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpoint + +`func (o *ReadinessHealthCheckData) SetEndpoint(v string)` + +SetEndpoint sets Endpoint field to given value. + +### HasEndpoint + +`func (o *ReadinessHealthCheckData) HasEndpoint() bool` + +HasEndpoint returns a boolean if a field has been set. + +### SetEndpointNil + +`func (o *ReadinessHealthCheckData) SetEndpointNil(b bool)` + + SetEndpointNil sets the value for Endpoint to be an explicit nil + +### UnsetEndpoint +`func (o *ReadinessHealthCheckData) UnsetEndpoint()` + +UnsetEndpoint ensures that no value is present for Endpoint, not even an explicit nil +### GetInterval + +`func (o *ReadinessHealthCheckData) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ReadinessHealthCheckData) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ReadinessHealthCheckData) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ReadinessHealthCheckData) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *ReadinessHealthCheckData) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *ReadinessHealthCheckData) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil +### GetInvocationTimeout + +`func (o *ReadinessHealthCheckData) GetInvocationTimeout() int32` + +GetInvocationTimeout returns the InvocationTimeout field if non-nil, zero value otherwise. + +### GetInvocationTimeoutOk + +`func (o *ReadinessHealthCheckData) GetInvocationTimeoutOk() (*int32, bool)` + +GetInvocationTimeoutOk returns a tuple with the InvocationTimeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationTimeout + +`func (o *ReadinessHealthCheckData) SetInvocationTimeout(v int32)` + +SetInvocationTimeout sets InvocationTimeout field to given value. + +### HasInvocationTimeout + +`func (o *ReadinessHealthCheckData) HasInvocationTimeout() bool` + +HasInvocationTimeout returns a boolean if a field has been set. + +### SetInvocationTimeoutNil + +`func (o *ReadinessHealthCheckData) SetInvocationTimeoutNil(b bool)` + + SetInvocationTimeoutNil sets the value for InvocationTimeout to be an explicit nil + +### UnsetInvocationTimeout +`func (o *ReadinessHealthCheckData) UnsetInvocationTimeout()` + +UnsetInvocationTimeout ensures that no value is present for InvocationTimeout, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceMatchObject.md b/docs/ResourceMatchObject.md new file mode 100644 index 0000000..9e5025e --- /dev/null +++ b/docs/ResourceMatchObject.md @@ -0,0 +1,134 @@ +# ResourceMatchObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Checksum** | Pointer to [**V3PackagesGuidUploadPostRequestResourcesInnerChecksum**](V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md) | | [optional] +**Mode** | Pointer to **string** | | [optional] +**Path** | Pointer to **string** | | [optional] +**SizeInBytes** | Pointer to **int32** | | [optional] + +## Methods + +### NewResourceMatchObject + +`func NewResourceMatchObject() *ResourceMatchObject` + +NewResourceMatchObject instantiates a new ResourceMatchObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceMatchObjectWithDefaults + +`func NewResourceMatchObjectWithDefaults() *ResourceMatchObject` + +NewResourceMatchObjectWithDefaults instantiates a new ResourceMatchObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChecksum + +`func (o *ResourceMatchObject) GetChecksum() V3PackagesGuidUploadPostRequestResourcesInnerChecksum` + +GetChecksum returns the Checksum field if non-nil, zero value otherwise. + +### GetChecksumOk + +`func (o *ResourceMatchObject) GetChecksumOk() (*V3PackagesGuidUploadPostRequestResourcesInnerChecksum, bool)` + +GetChecksumOk returns a tuple with the Checksum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksum + +`func (o *ResourceMatchObject) SetChecksum(v V3PackagesGuidUploadPostRequestResourcesInnerChecksum)` + +SetChecksum sets Checksum field to given value. + +### HasChecksum + +`func (o *ResourceMatchObject) HasChecksum() bool` + +HasChecksum returns a boolean if a field has been set. + +### GetMode + +`func (o *ResourceMatchObject) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *ResourceMatchObject) GetModeOk() (*string, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *ResourceMatchObject) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *ResourceMatchObject) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetPath + +`func (o *ResourceMatchObject) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *ResourceMatchObject) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *ResourceMatchObject) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *ResourceMatchObject) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetSizeInBytes + +`func (o *ResourceMatchObject) GetSizeInBytes() int32` + +GetSizeInBytes returns the SizeInBytes field if non-nil, zero value otherwise. + +### GetSizeInBytesOk + +`func (o *ResourceMatchObject) GetSizeInBytesOk() (*int32, bool)` + +GetSizeInBytesOk returns a tuple with the SizeInBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizeInBytes + +`func (o *ResourceMatchObject) SetSizeInBytes(v int32)` + +SetSizeInBytes sets SizeInBytes field to given value. + +### HasSizeInBytes + +`func (o *ResourceMatchObject) HasSizeInBytes() bool` + +HasSizeInBytes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceMatchRequest.md b/docs/ResourceMatchRequest.md new file mode 100644 index 0000000..9634f56 --- /dev/null +++ b/docs/ResourceMatchRequest.md @@ -0,0 +1,56 @@ +# ResourceMatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resources** | Pointer to [**[]ResourceMatchObject**](ResourceMatchObject.md) | | [optional] + +## Methods + +### NewResourceMatchRequest + +`func NewResourceMatchRequest() *ResourceMatchRequest` + +NewResourceMatchRequest instantiates a new ResourceMatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceMatchRequestWithDefaults + +`func NewResourceMatchRequestWithDefaults() *ResourceMatchRequest` + +NewResourceMatchRequestWithDefaults instantiates a new ResourceMatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResources + +`func (o *ResourceMatchRequest) GetResources() []ResourceMatchObject` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ResourceMatchRequest) GetResourcesOk() (*[]ResourceMatchObject, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ResourceMatchRequest) SetResources(v []ResourceMatchObject)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ResourceMatchRequest) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceMatchResponse.md b/docs/ResourceMatchResponse.md new file mode 100644 index 0000000..0e184af --- /dev/null +++ b/docs/ResourceMatchResponse.md @@ -0,0 +1,56 @@ +# ResourceMatchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resources** | Pointer to [**[]ResourceMatchObject**](ResourceMatchObject.md) | | [optional] + +## Methods + +### NewResourceMatchResponse + +`func NewResourceMatchResponse() *ResourceMatchResponse` + +NewResourceMatchResponse instantiates a new ResourceMatchResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceMatchResponseWithDefaults + +`func NewResourceMatchResponseWithDefaults() *ResourceMatchResponse` + +NewResourceMatchResponseWithDefaults instantiates a new ResourceMatchResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResources + +`func (o *ResourceMatchResponse) GetResources() []ResourceMatchObject` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ResourceMatchResponse) GetResourcesOk() (*[]ResourceMatchObject, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ResourceMatchResponse) SetResources(v []ResourceMatchObject)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ResourceMatchResponse) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Revision.md b/docs/Revision.md new file mode 100644 index 0000000..6376a38 --- /dev/null +++ b/docs/Revision.md @@ -0,0 +1,342 @@ +# Revision + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Deployable** | Pointer to **bool** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Droplet** | Pointer to [**V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**RevisionLinks**](RevisionLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Processes** | Pointer to [**map[string]RevisionProcessesValue**](RevisionProcessesValue.md) | | [optional] +**Relationships** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseRelationships**](V3AppsGuidDropletsCurrentGet200ResponseRelationships.md) | | [optional] +**Sidecars** | Pointer to [**[]Sidecar**](Sidecar.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Version** | Pointer to **int32** | | [optional] + +## Methods + +### NewRevision + +`func NewRevision() *Revision` + +NewRevision instantiates a new Revision object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevisionWithDefaults + +`func NewRevisionWithDefaults() *Revision` + +NewRevisionWithDefaults instantiates a new Revision object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Revision) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Revision) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Revision) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Revision) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDeployable + +`func (o *Revision) GetDeployable() bool` + +GetDeployable returns the Deployable field if non-nil, zero value otherwise. + +### GetDeployableOk + +`func (o *Revision) GetDeployableOk() (*bool, bool)` + +GetDeployableOk returns a tuple with the Deployable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployable + +`func (o *Revision) SetDeployable(v bool)` + +SetDeployable sets Deployable field to given value. + +### HasDeployable + +`func (o *Revision) HasDeployable() bool` + +HasDeployable returns a boolean if a field has been set. + +### GetDescription + +`func (o *Revision) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Revision) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Revision) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Revision) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDroplet + +`func (o *Revision) GetDroplet() V3AppsPostRequestRelationshipsSpaceData` + +GetDroplet returns the Droplet field if non-nil, zero value otherwise. + +### GetDropletOk + +`func (o *Revision) GetDropletOk() (*V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDropletOk returns a tuple with the Droplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDroplet + +`func (o *Revision) SetDroplet(v V3AppsPostRequestRelationshipsSpaceData)` + +SetDroplet sets Droplet field to given value. + +### HasDroplet + +`func (o *Revision) HasDroplet() bool` + +HasDroplet returns a boolean if a field has been set. + +### GetGuid + +`func (o *Revision) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Revision) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Revision) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Revision) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Revision) GetLinks() RevisionLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Revision) GetLinksOk() (*RevisionLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Revision) SetLinks(v RevisionLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Revision) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Revision) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Revision) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Revision) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Revision) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProcesses + +`func (o *Revision) GetProcesses() map[string]RevisionProcessesValue` + +GetProcesses returns the Processes field if non-nil, zero value otherwise. + +### GetProcessesOk + +`func (o *Revision) GetProcessesOk() (*map[string]RevisionProcessesValue, bool)` + +GetProcessesOk returns a tuple with the Processes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcesses + +`func (o *Revision) SetProcesses(v map[string]RevisionProcessesValue)` + +SetProcesses sets Processes field to given value. + +### HasProcesses + +`func (o *Revision) HasProcesses() bool` + +HasProcesses returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Revision) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Revision) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Revision) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Revision) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetSidecars + +`func (o *Revision) GetSidecars() []Sidecar` + +GetSidecars returns the Sidecars field if non-nil, zero value otherwise. + +### GetSidecarsOk + +`func (o *Revision) GetSidecarsOk() (*[]Sidecar, bool)` + +GetSidecarsOk returns a tuple with the Sidecars field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSidecars + +`func (o *Revision) SetSidecars(v []Sidecar)` + +SetSidecars sets Sidecars field to given value. + +### HasSidecars + +`func (o *Revision) HasSidecars() bool` + +HasSidecars returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Revision) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Revision) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Revision) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Revision) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetVersion + +`func (o *Revision) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *Revision) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *Revision) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *Revision) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RevisionLinks.md b/docs/RevisionLinks.md new file mode 100644 index 0000000..2321da7 --- /dev/null +++ b/docs/RevisionLinks.md @@ -0,0 +1,108 @@ +# RevisionLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**EnvironmentVariables** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewRevisionLinks + +`func NewRevisionLinks() *RevisionLinks` + +NewRevisionLinks instantiates a new RevisionLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevisionLinksWithDefaults + +`func NewRevisionLinksWithDefaults() *RevisionLinks` + +NewRevisionLinksWithDefaults instantiates a new RevisionLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *RevisionLinks) GetApp() Get200ResponseLinksLogCache` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *RevisionLinks) GetAppOk() (*Get200ResponseLinksLogCache, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *RevisionLinks) SetApp(v Get200ResponseLinksLogCache)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *RevisionLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetEnvironmentVariables + +`func (o *RevisionLinks) GetEnvironmentVariables() Get200ResponseLinksLogCache` + +GetEnvironmentVariables returns the EnvironmentVariables field if non-nil, zero value otherwise. + +### GetEnvironmentVariablesOk + +`func (o *RevisionLinks) GetEnvironmentVariablesOk() (*Get200ResponseLinksLogCache, bool)` + +GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentVariables + +`func (o *RevisionLinks) SetEnvironmentVariables(v Get200ResponseLinksLogCache)` + +SetEnvironmentVariables sets EnvironmentVariables field to given value. + +### HasEnvironmentVariables + +`func (o *RevisionLinks) HasEnvironmentVariables() bool` + +HasEnvironmentVariables returns a boolean if a field has been set. + +### GetSelf + +`func (o *RevisionLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *RevisionLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *RevisionLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *RevisionLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RevisionProcessesValue.md b/docs/RevisionProcessesValue.md new file mode 100644 index 0000000..dc0dbba --- /dev/null +++ b/docs/RevisionProcessesValue.md @@ -0,0 +1,56 @@ +# RevisionProcessesValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **string** | | [optional] + +## Methods + +### NewRevisionProcessesValue + +`func NewRevisionProcessesValue() *RevisionProcessesValue` + +NewRevisionProcessesValue instantiates a new RevisionProcessesValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevisionProcessesValueWithDefaults + +`func NewRevisionProcessesValueWithDefaults() *RevisionProcessesValue` + +NewRevisionProcessesValueWithDefaults instantiates a new RevisionProcessesValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *RevisionProcessesValue) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *RevisionProcessesValue) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *RevisionProcessesValue) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *RevisionProcessesValue) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RevisionsList.md b/docs/RevisionsList.md new file mode 100644 index 0000000..98d2501 --- /dev/null +++ b/docs/RevisionsList.md @@ -0,0 +1,82 @@ +# RevisionsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]Revision**](Revision.md) | | [optional] + +## Methods + +### NewRevisionsList + +`func NewRevisionsList() *RevisionsList` + +NewRevisionsList instantiates a new RevisionsList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevisionsListWithDefaults + +`func NewRevisionsListWithDefaults() *RevisionsList` + +NewRevisionsListWithDefaults instantiates a new RevisionsList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *RevisionsList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *RevisionsList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *RevisionsList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *RevisionsList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *RevisionsList) GetResources() []Revision` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *RevisionsList) GetResourcesOk() (*[]Revision, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *RevisionsList) SetResources(v []Revision)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *RevisionsList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RevisionsListPagination.md b/docs/RevisionsListPagination.md new file mode 100644 index 0000000..d5dd035 --- /dev/null +++ b/docs/RevisionsListPagination.md @@ -0,0 +1,206 @@ +# RevisionsListPagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Last** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Next** | Pointer to [**NullableV3Get200ResponseLinksServiceInstances**](V3Get200ResponseLinksServiceInstances.md) | | [optional] +**Previous** | Pointer to [**NullableV3Get200ResponseLinksServiceInstances**](V3Get200ResponseLinksServiceInstances.md) | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewRevisionsListPagination + +`func NewRevisionsListPagination() *RevisionsListPagination` + +NewRevisionsListPagination instantiates a new RevisionsListPagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRevisionsListPaginationWithDefaults + +`func NewRevisionsListPaginationWithDefaults() *RevisionsListPagination` + +NewRevisionsListPaginationWithDefaults instantiates a new RevisionsListPagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *RevisionsListPagination) GetFirst() Get200ResponseLinksLogCache` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *RevisionsListPagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *RevisionsListPagination) SetFirst(v Get200ResponseLinksLogCache)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *RevisionsListPagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *RevisionsListPagination) GetLast() Get200ResponseLinksLogCache` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *RevisionsListPagination) GetLastOk() (*Get200ResponseLinksLogCache, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *RevisionsListPagination) SetLast(v Get200ResponseLinksLogCache)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *RevisionsListPagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *RevisionsListPagination) GetNext() V3Get200ResponseLinksServiceInstances` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *RevisionsListPagination) GetNextOk() (*V3Get200ResponseLinksServiceInstances, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *RevisionsListPagination) SetNext(v V3Get200ResponseLinksServiceInstances)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *RevisionsListPagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *RevisionsListPagination) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *RevisionsListPagination) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *RevisionsListPagination) GetPrevious() V3Get200ResponseLinksServiceInstances` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *RevisionsListPagination) GetPreviousOk() (*V3Get200ResponseLinksServiceInstances, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *RevisionsListPagination) SetPrevious(v V3Get200ResponseLinksServiceInstances)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *RevisionsListPagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *RevisionsListPagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *RevisionsListPagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *RevisionsListPagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *RevisionsListPagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *RevisionsListPagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *RevisionsListPagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *RevisionsListPagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *RevisionsListPagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *RevisionsListPagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *RevisionsListPagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Role.md b/docs/Role.md new file mode 100644 index 0000000..8161cc3 --- /dev/null +++ b/docs/Role.md @@ -0,0 +1,186 @@ +# Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**RoleLinks**](RoleLinks.md) | | [optional] +**Relationships** | Pointer to [**RoleRelationships**](RoleRelationships.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewRole + +`func NewRole() *Role` + +NewRole instantiates a new Role object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleWithDefaults + +`func NewRoleWithDefaults() *Role` + +NewRoleWithDefaults instantiates a new Role object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Role) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Role) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Role) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Role) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *Role) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Role) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Role) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Role) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Role) GetLinks() RoleLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Role) GetLinksOk() (*RoleLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Role) SetLinks(v RoleLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Role) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Role) GetRelationships() RoleRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Role) GetRelationshipsOk() (*RoleRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Role) SetRelationships(v RoleRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Role) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetType + +`func (o *Role) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Role) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Role) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Role) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Role) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Role) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Role) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Role) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleLinks.md b/docs/RoleLinks.md new file mode 100644 index 0000000..4fb24b7 --- /dev/null +++ b/docs/RoleLinks.md @@ -0,0 +1,108 @@ +# RoleLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**User** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewRoleLinks + +`func NewRoleLinks() *RoleLinks` + +NewRoleLinks instantiates a new RoleLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleLinksWithDefaults + +`func NewRoleLinksWithDefaults() *RoleLinks` + +NewRoleLinksWithDefaults instantiates a new RoleLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *RoleLinks) GetOrganization() Get200ResponseLinksLogCache` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *RoleLinks) GetOrganizationOk() (*Get200ResponseLinksLogCache, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *RoleLinks) SetOrganization(v Get200ResponseLinksLogCache)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *RoleLinks) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSelf + +`func (o *RoleLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *RoleLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *RoleLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *RoleLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetUser + +`func (o *RoleLinks) GetUser() Get200ResponseLinksLogCache` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *RoleLinks) GetUserOk() (*Get200ResponseLinksLogCache, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *RoleLinks) SetUser(v Get200ResponseLinksLogCache)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *RoleLinks) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleRelationships.md b/docs/RoleRelationships.md new file mode 100644 index 0000000..f4a78a7 --- /dev/null +++ b/docs/RoleRelationships.md @@ -0,0 +1,108 @@ +# RoleRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**Space** | Pointer to [**RoleRelationshipsSpace**](RoleRelationshipsSpace.md) | | [optional] +**User** | Pointer to [**V3RolesPostRequestRelationshipsUser**](V3RolesPostRequestRelationshipsUser.md) | | [optional] + +## Methods + +### NewRoleRelationships + +`func NewRoleRelationships() *RoleRelationships` + +NewRoleRelationships instantiates a new RoleRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleRelationshipsWithDefaults + +`func NewRoleRelationshipsWithDefaults() *RoleRelationships` + +NewRoleRelationshipsWithDefaults instantiates a new RoleRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *RoleRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *RoleRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *RoleRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *RoleRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSpace + +`func (o *RoleRelationships) GetSpace() RoleRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *RoleRelationships) GetSpaceOk() (*RoleRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *RoleRelationships) SetSpace(v RoleRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *RoleRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetUser + +`func (o *RoleRelationships) GetUser() V3RolesPostRequestRelationshipsUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *RoleRelationships) GetUserOk() (*V3RolesPostRequestRelationshipsUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *RoleRelationships) SetUser(v V3RolesPostRequestRelationshipsUser)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *RoleRelationships) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleRelationshipsSpace.md b/docs/RoleRelationshipsSpace.md new file mode 100644 index 0000000..e499f87 --- /dev/null +++ b/docs/RoleRelationshipsSpace.md @@ -0,0 +1,66 @@ +# RoleRelationshipsSpace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**NullableRoleRelationshipsSpaceData**](RoleRelationshipsSpaceData.md) | | [optional] + +## Methods + +### NewRoleRelationshipsSpace + +`func NewRoleRelationshipsSpace() *RoleRelationshipsSpace` + +NewRoleRelationshipsSpace instantiates a new RoleRelationshipsSpace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleRelationshipsSpaceWithDefaults + +`func NewRoleRelationshipsSpaceWithDefaults() *RoleRelationshipsSpace` + +NewRoleRelationshipsSpaceWithDefaults instantiates a new RoleRelationshipsSpace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *RoleRelationshipsSpace) GetData() RoleRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *RoleRelationshipsSpace) GetDataOk() (*RoleRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *RoleRelationshipsSpace) SetData(v RoleRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *RoleRelationshipsSpace) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *RoleRelationshipsSpace) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *RoleRelationshipsSpace) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoleRelationshipsSpaceData.md b/docs/RoleRelationshipsSpaceData.md new file mode 100644 index 0000000..d703cd8 --- /dev/null +++ b/docs/RoleRelationshipsSpaceData.md @@ -0,0 +1,56 @@ +# RoleRelationshipsSpaceData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] + +## Methods + +### NewRoleRelationshipsSpaceData + +`func NewRoleRelationshipsSpaceData() *RoleRelationshipsSpaceData` + +NewRoleRelationshipsSpaceData instantiates a new RoleRelationshipsSpaceData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoleRelationshipsSpaceDataWithDefaults + +`func NewRoleRelationshipsSpaceDataWithDefaults() *RoleRelationshipsSpaceData` + +NewRoleRelationshipsSpaceDataWithDefaults instantiates a new RoleRelationshipsSpaceData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *RoleRelationshipsSpaceData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *RoleRelationshipsSpaceData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *RoleRelationshipsSpaceData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *RoleRelationshipsSpaceData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RolesList.md b/docs/RolesList.md new file mode 100644 index 0000000..536d4f6 --- /dev/null +++ b/docs/RolesList.md @@ -0,0 +1,82 @@ +# RolesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]Role**](Role.md) | | [optional] + +## Methods + +### NewRolesList + +`func NewRolesList() *RolesList` + +NewRolesList instantiates a new RolesList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRolesListWithDefaults + +`func NewRolesListWithDefaults() *RolesList` + +NewRolesListWithDefaults instantiates a new RolesList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *RolesList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *RolesList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *RolesList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *RolesList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *RolesList) GetResources() []Role` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *RolesList) GetResourcesOk() (*[]Role, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *RolesList) SetResources(v []Role)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *RolesList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Route.md b/docs/Route.md new file mode 100644 index 0000000..fceca7e --- /dev/null +++ b/docs/Route.md @@ -0,0 +1,372 @@ +# Route + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Destinations** | Pointer to [**[]Destination**](Destination.md) | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Host** | Pointer to **NullableString** | | [optional] +**Links** | Pointer to [**RouteLinks**](RouteLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Path** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**V3RoutesPostRequestRelationships**](V3RoutesPostRequestRelationships.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewRoute + +`func NewRoute() *Route` + +NewRoute instantiates a new Route object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRouteWithDefaults + +`func NewRouteWithDefaults() *Route` + +NewRouteWithDefaults instantiates a new Route object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Route) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Route) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Route) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Route) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDestinations + +`func (o *Route) GetDestinations() []Destination` + +GetDestinations returns the Destinations field if non-nil, zero value otherwise. + +### GetDestinationsOk + +`func (o *Route) GetDestinationsOk() (*[]Destination, bool)` + +GetDestinationsOk returns a tuple with the Destinations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinations + +`func (o *Route) SetDestinations(v []Destination)` + +SetDestinations sets Destinations field to given value. + +### HasDestinations + +`func (o *Route) HasDestinations() bool` + +HasDestinations returns a boolean if a field has been set. + +### GetGuid + +`func (o *Route) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Route) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Route) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Route) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetHost + +`func (o *Route) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *Route) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *Route) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *Route) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### SetHostNil + +`func (o *Route) SetHostNil(b bool)` + + SetHostNil sets the value for Host to be an explicit nil + +### UnsetHost +`func (o *Route) UnsetHost()` + +UnsetHost ensures that no value is present for Host, not even an explicit nil +### GetLinks + +`func (o *Route) GetLinks() RouteLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Route) GetLinksOk() (*RouteLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Route) SetLinks(v RouteLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Route) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Route) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Route) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Route) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Route) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetPath + +`func (o *Route) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *Route) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *Route) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *Route) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### SetPathNil + +`func (o *Route) SetPathNil(b bool)` + + SetPathNil sets the value for Path to be an explicit nil + +### UnsetPath +`func (o *Route) UnsetPath()` + +UnsetPath ensures that no value is present for Path, not even an explicit nil +### GetPort + +`func (o *Route) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *Route) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *Route) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *Route) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *Route) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *Route) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil +### GetProtocol + +`func (o *Route) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *Route) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *Route) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *Route) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Route) GetRelationships() V3RoutesPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Route) GetRelationshipsOk() (*V3RoutesPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Route) SetRelationships(v V3RoutesPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Route) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Route) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Route) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Route) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Route) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUrl + +`func (o *Route) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Route) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Route) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *Route) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RouteLinks.md b/docs/RouteLinks.md new file mode 100644 index 0000000..c5ea152 --- /dev/null +++ b/docs/RouteLinks.md @@ -0,0 +1,134 @@ +# RouteLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Destinations** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Domain** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Space** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewRouteLinks + +`func NewRouteLinks() *RouteLinks` + +NewRouteLinks instantiates a new RouteLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRouteLinksWithDefaults + +`func NewRouteLinksWithDefaults() *RouteLinks` + +NewRouteLinksWithDefaults instantiates a new RouteLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDestinations + +`func (o *RouteLinks) GetDestinations() Get200ResponseLinksLogCache` + +GetDestinations returns the Destinations field if non-nil, zero value otherwise. + +### GetDestinationsOk + +`func (o *RouteLinks) GetDestinationsOk() (*Get200ResponseLinksLogCache, bool)` + +GetDestinationsOk returns a tuple with the Destinations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinations + +`func (o *RouteLinks) SetDestinations(v Get200ResponseLinksLogCache)` + +SetDestinations sets Destinations field to given value. + +### HasDestinations + +`func (o *RouteLinks) HasDestinations() bool` + +HasDestinations returns a boolean if a field has been set. + +### GetDomain + +`func (o *RouteLinks) GetDomain() Get200ResponseLinksLogCache` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *RouteLinks) GetDomainOk() (*Get200ResponseLinksLogCache, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *RouteLinks) SetDomain(v Get200ResponseLinksLogCache)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *RouteLinks) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### GetSelf + +`func (o *RouteLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *RouteLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *RouteLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *RouteLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSpace + +`func (o *RouteLinks) GetSpace() Get200ResponseLinksLogCache` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *RouteLinks) GetSpaceOk() (*Get200ResponseLinksLogCache, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *RouteLinks) SetSpace(v Get200ResponseLinksLogCache)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *RouteLinks) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RouteList.md b/docs/RouteList.md new file mode 100644 index 0000000..ab1c0ca --- /dev/null +++ b/docs/RouteList.md @@ -0,0 +1,82 @@ +# RouteList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**V3RoutesGet200ResponsePagination**](V3RoutesGet200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]Route**](Route.md) | | [optional] + +## Methods + +### NewRouteList + +`func NewRouteList() *RouteList` + +NewRouteList instantiates a new RouteList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRouteListWithDefaults + +`func NewRouteListWithDefaults() *RouteList` + +NewRouteListWithDefaults instantiates a new RouteList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *RouteList) GetPagination() V3RoutesGet200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *RouteList) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *RouteList) SetPagination(v V3RoutesGet200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *RouteList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *RouteList) GetResources() []Route` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *RouteList) GetResourcesOk() (*[]Route, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *RouteList) SetResources(v []Route)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *RouteList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RoutesQuota.md b/docs/RoutesQuota.md new file mode 100644 index 0000000..889fd22 --- /dev/null +++ b/docs/RoutesQuota.md @@ -0,0 +1,102 @@ +# RoutesQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalReservedPorts** | Pointer to **NullableInt32** | Total number of ports that are reservable by routes in an organization | [optional] +**TotalRoutes** | Pointer to **NullableInt32** | Total number of routes allowed in an organization | [optional] + +## Methods + +### NewRoutesQuota + +`func NewRoutesQuota() *RoutesQuota` + +NewRoutesQuota instantiates a new RoutesQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRoutesQuotaWithDefaults + +`func NewRoutesQuotaWithDefaults() *RoutesQuota` + +NewRoutesQuotaWithDefaults instantiates a new RoutesQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalReservedPorts + +`func (o *RoutesQuota) GetTotalReservedPorts() int32` + +GetTotalReservedPorts returns the TotalReservedPorts field if non-nil, zero value otherwise. + +### GetTotalReservedPortsOk + +`func (o *RoutesQuota) GetTotalReservedPortsOk() (*int32, bool)` + +GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalReservedPorts + +`func (o *RoutesQuota) SetTotalReservedPorts(v int32)` + +SetTotalReservedPorts sets TotalReservedPorts field to given value. + +### HasTotalReservedPorts + +`func (o *RoutesQuota) HasTotalReservedPorts() bool` + +HasTotalReservedPorts returns a boolean if a field has been set. + +### SetTotalReservedPortsNil + +`func (o *RoutesQuota) SetTotalReservedPortsNil(b bool)` + + SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil + +### UnsetTotalReservedPorts +`func (o *RoutesQuota) UnsetTotalReservedPorts()` + +UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +### GetTotalRoutes + +`func (o *RoutesQuota) GetTotalRoutes() int32` + +GetTotalRoutes returns the TotalRoutes field if non-nil, zero value otherwise. + +### GetTotalRoutesOk + +`func (o *RoutesQuota) GetTotalRoutesOk() (*int32, bool)` + +GetTotalRoutesOk returns a tuple with the TotalRoutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalRoutes + +`func (o *RoutesQuota) SetTotalRoutes(v int32)` + +SetTotalRoutes sets TotalRoutes field to given value. + +### HasTotalRoutes + +`func (o *RoutesQuota) HasTotalRoutes() bool` + +HasTotalRoutes returns a boolean if a field has been set. + +### SetTotalRoutesNil + +`func (o *RoutesQuota) SetTotalRoutesNil(b bool)` + + SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil + +### UnsetTotalRoutes +`func (o *RoutesQuota) UnsetTotalRoutes()` + +UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Rule.md b/docs/Rule.md new file mode 100644 index 0000000..68f5fb9 --- /dev/null +++ b/docs/Rule.md @@ -0,0 +1,262 @@ +# Rule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **NullableInt32** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Destination** | Pointer to **string** | | [optional] +**Log** | Pointer to **NullableBool** | | [optional] +**Ports** | Pointer to **NullableString** | | [optional] +**Protocol** | Pointer to **string** | | [optional] +**Type** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewRule + +`func NewRule() *Rule` + +NewRule instantiates a new Rule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRuleWithDefaults + +`func NewRuleWithDefaults() *Rule` + +NewRuleWithDefaults instantiates a new Rule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *Rule) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Rule) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Rule) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *Rule) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *Rule) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *Rule) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil +### GetDescription + +`func (o *Rule) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Rule) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Rule) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Rule) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *Rule) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Rule) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDestination + +`func (o *Rule) GetDestination() string` + +GetDestination returns the Destination field if non-nil, zero value otherwise. + +### GetDestinationOk + +`func (o *Rule) GetDestinationOk() (*string, bool)` + +GetDestinationOk returns a tuple with the Destination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestination + +`func (o *Rule) SetDestination(v string)` + +SetDestination sets Destination field to given value. + +### HasDestination + +`func (o *Rule) HasDestination() bool` + +HasDestination returns a boolean if a field has been set. + +### GetLog + +`func (o *Rule) GetLog() bool` + +GetLog returns the Log field if non-nil, zero value otherwise. + +### GetLogOk + +`func (o *Rule) GetLogOk() (*bool, bool)` + +GetLogOk returns a tuple with the Log field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLog + +`func (o *Rule) SetLog(v bool)` + +SetLog sets Log field to given value. + +### HasLog + +`func (o *Rule) HasLog() bool` + +HasLog returns a boolean if a field has been set. + +### SetLogNil + +`func (o *Rule) SetLogNil(b bool)` + + SetLogNil sets the value for Log to be an explicit nil + +### UnsetLog +`func (o *Rule) UnsetLog()` + +UnsetLog ensures that no value is present for Log, not even an explicit nil +### GetPorts + +`func (o *Rule) GetPorts() string` + +GetPorts returns the Ports field if non-nil, zero value otherwise. + +### GetPortsOk + +`func (o *Rule) GetPortsOk() (*string, bool)` + +GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPorts + +`func (o *Rule) SetPorts(v string)` + +SetPorts sets Ports field to given value. + +### HasPorts + +`func (o *Rule) HasPorts() bool` + +HasPorts returns a boolean if a field has been set. + +### SetPortsNil + +`func (o *Rule) SetPortsNil(b bool)` + + SetPortsNil sets the value for Ports to be an explicit nil + +### UnsetPorts +`func (o *Rule) UnsetPorts()` + +UnsetPorts ensures that no value is present for Ports, not even an explicit nil +### GetProtocol + +`func (o *Rule) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *Rule) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *Rule) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *Rule) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetType + +`func (o *Rule) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Rule) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Rule) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Rule) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *Rule) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *Rule) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroup.md b/docs/SecurityGroup.md new file mode 100644 index 0000000..4d23d42 --- /dev/null +++ b/docs/SecurityGroup.md @@ -0,0 +1,238 @@ +# SecurityGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**GloballyEnabled** | Pointer to [**SecurityGroupGloballyEnabled**](SecurityGroupGloballyEnabled.md) | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**SecurityGroupLinks**](SecurityGroupLinks.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**SecurityGroupRelationships**](SecurityGroupRelationships.md) | | [optional] +**Rules** | Pointer to [**[]Rule**](Rule.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSecurityGroup + +`func NewSecurityGroup() *SecurityGroup` + +NewSecurityGroup instantiates a new SecurityGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupWithDefaults + +`func NewSecurityGroupWithDefaults() *SecurityGroup` + +NewSecurityGroupWithDefaults instantiates a new SecurityGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *SecurityGroup) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SecurityGroup) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SecurityGroup) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SecurityGroup) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGloballyEnabled + +`func (o *SecurityGroup) GetGloballyEnabled() SecurityGroupGloballyEnabled` + +GetGloballyEnabled returns the GloballyEnabled field if non-nil, zero value otherwise. + +### GetGloballyEnabledOk + +`func (o *SecurityGroup) GetGloballyEnabledOk() (*SecurityGroupGloballyEnabled, bool)` + +GetGloballyEnabledOk returns a tuple with the GloballyEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGloballyEnabled + +`func (o *SecurityGroup) SetGloballyEnabled(v SecurityGroupGloballyEnabled)` + +SetGloballyEnabled sets GloballyEnabled field to given value. + +### HasGloballyEnabled + +`func (o *SecurityGroup) HasGloballyEnabled() bool` + +HasGloballyEnabled returns a boolean if a field has been set. + +### GetGuid + +`func (o *SecurityGroup) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *SecurityGroup) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *SecurityGroup) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *SecurityGroup) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *SecurityGroup) GetLinks() SecurityGroupLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *SecurityGroup) GetLinksOk() (*SecurityGroupLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *SecurityGroup) SetLinks(v SecurityGroupLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *SecurityGroup) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *SecurityGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *SecurityGroup) GetRelationships() SecurityGroupRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *SecurityGroup) GetRelationshipsOk() (*SecurityGroupRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *SecurityGroup) SetRelationships(v SecurityGroupRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *SecurityGroup) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRules + +`func (o *SecurityGroup) GetRules() []Rule` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *SecurityGroup) GetRulesOk() (*[]Rule, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *SecurityGroup) SetRules(v []Rule)` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *SecurityGroup) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SecurityGroup) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SecurityGroup) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SecurityGroup) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SecurityGroup) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupCreate.md b/docs/SecurityGroupCreate.md new file mode 100644 index 0000000..81bedca --- /dev/null +++ b/docs/SecurityGroupCreate.md @@ -0,0 +1,108 @@ +# SecurityGroupCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GloballyEnabled** | Pointer to [**SecurityGroupGloballyEnabled**](SecurityGroupGloballyEnabled.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Rules** | Pointer to [**[]Rule**](Rule.md) | | [optional] + +## Methods + +### NewSecurityGroupCreate + +`func NewSecurityGroupCreate() *SecurityGroupCreate` + +NewSecurityGroupCreate instantiates a new SecurityGroupCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupCreateWithDefaults + +`func NewSecurityGroupCreateWithDefaults() *SecurityGroupCreate` + +NewSecurityGroupCreateWithDefaults instantiates a new SecurityGroupCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGloballyEnabled + +`func (o *SecurityGroupCreate) GetGloballyEnabled() SecurityGroupGloballyEnabled` + +GetGloballyEnabled returns the GloballyEnabled field if non-nil, zero value otherwise. + +### GetGloballyEnabledOk + +`func (o *SecurityGroupCreate) GetGloballyEnabledOk() (*SecurityGroupGloballyEnabled, bool)` + +GetGloballyEnabledOk returns a tuple with the GloballyEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGloballyEnabled + +`func (o *SecurityGroupCreate) SetGloballyEnabled(v SecurityGroupGloballyEnabled)` + +SetGloballyEnabled sets GloballyEnabled field to given value. + +### HasGloballyEnabled + +`func (o *SecurityGroupCreate) HasGloballyEnabled() bool` + +HasGloballyEnabled returns a boolean if a field has been set. + +### GetName + +`func (o *SecurityGroupCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityGroupCreate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityGroupCreate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityGroupCreate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRules + +`func (o *SecurityGroupCreate) GetRules() []Rule` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *SecurityGroupCreate) GetRulesOk() (*[]Rule, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *SecurityGroupCreate) SetRules(v []Rule)` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *SecurityGroupCreate) HasRules() bool` + +HasRules returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupGloballyEnabled.md b/docs/SecurityGroupGloballyEnabled.md new file mode 100644 index 0000000..45b5a2c --- /dev/null +++ b/docs/SecurityGroupGloballyEnabled.md @@ -0,0 +1,82 @@ +# SecurityGroupGloballyEnabled + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Running** | Pointer to **bool** | | [optional] +**Staging** | Pointer to **bool** | | [optional] + +## Methods + +### NewSecurityGroupGloballyEnabled + +`func NewSecurityGroupGloballyEnabled() *SecurityGroupGloballyEnabled` + +NewSecurityGroupGloballyEnabled instantiates a new SecurityGroupGloballyEnabled object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupGloballyEnabledWithDefaults + +`func NewSecurityGroupGloballyEnabledWithDefaults() *SecurityGroupGloballyEnabled` + +NewSecurityGroupGloballyEnabledWithDefaults instantiates a new SecurityGroupGloballyEnabled object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRunning + +`func (o *SecurityGroupGloballyEnabled) GetRunning() bool` + +GetRunning returns the Running field if non-nil, zero value otherwise. + +### GetRunningOk + +`func (o *SecurityGroupGloballyEnabled) GetRunningOk() (*bool, bool)` + +GetRunningOk returns a tuple with the Running field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunning + +`func (o *SecurityGroupGloballyEnabled) SetRunning(v bool)` + +SetRunning sets Running field to given value. + +### HasRunning + +`func (o *SecurityGroupGloballyEnabled) HasRunning() bool` + +HasRunning returns a boolean if a field has been set. + +### GetStaging + +`func (o *SecurityGroupGloballyEnabled) GetStaging() bool` + +GetStaging returns the Staging field if non-nil, zero value otherwise. + +### GetStagingOk + +`func (o *SecurityGroupGloballyEnabled) GetStagingOk() (*bool, bool)` + +GetStagingOk returns a tuple with the Staging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaging + +`func (o *SecurityGroupGloballyEnabled) SetStaging(v bool)` + +SetStaging sets Staging field to given value. + +### HasStaging + +`func (o *SecurityGroupGloballyEnabled) HasStaging() bool` + +HasStaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupLinks.md b/docs/SecurityGroupLinks.md new file mode 100644 index 0000000..504652e --- /dev/null +++ b/docs/SecurityGroupLinks.md @@ -0,0 +1,56 @@ +# SecurityGroupLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewSecurityGroupLinks + +`func NewSecurityGroupLinks() *SecurityGroupLinks` + +NewSecurityGroupLinks instantiates a new SecurityGroupLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupLinksWithDefaults + +`func NewSecurityGroupLinksWithDefaults() *SecurityGroupLinks` + +NewSecurityGroupLinksWithDefaults instantiates a new SecurityGroupLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *SecurityGroupLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *SecurityGroupLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *SecurityGroupLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *SecurityGroupLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupList.md b/docs/SecurityGroupList.md new file mode 100644 index 0000000..9146f05 --- /dev/null +++ b/docs/SecurityGroupList.md @@ -0,0 +1,82 @@ +# SecurityGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]SecurityGroup**](SecurityGroup.md) | | [optional] + +## Methods + +### NewSecurityGroupList + +`func NewSecurityGroupList() *SecurityGroupList` + +NewSecurityGroupList instantiates a new SecurityGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupListWithDefaults + +`func NewSecurityGroupListWithDefaults() *SecurityGroupList` + +NewSecurityGroupListWithDefaults instantiates a new SecurityGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *SecurityGroupList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *SecurityGroupList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *SecurityGroupList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *SecurityGroupList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *SecurityGroupList) GetResources() []SecurityGroup` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *SecurityGroupList) GetResourcesOk() (*[]SecurityGroup, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *SecurityGroupList) SetResources(v []SecurityGroup)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *SecurityGroupList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupRelationships.md b/docs/SecurityGroupRelationships.md new file mode 100644 index 0000000..9fbd473 --- /dev/null +++ b/docs/SecurityGroupRelationships.md @@ -0,0 +1,82 @@ +# SecurityGroupRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RunningSpaces** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest**](V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) | | [optional] +**StagingSpaces** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest**](V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) | | [optional] + +## Methods + +### NewSecurityGroupRelationships + +`func NewSecurityGroupRelationships() *SecurityGroupRelationships` + +NewSecurityGroupRelationships instantiates a new SecurityGroupRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupRelationshipsWithDefaults + +`func NewSecurityGroupRelationshipsWithDefaults() *SecurityGroupRelationships` + +NewSecurityGroupRelationshipsWithDefaults instantiates a new SecurityGroupRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRunningSpaces + +`func (o *SecurityGroupRelationships) GetRunningSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest` + +GetRunningSpaces returns the RunningSpaces field if non-nil, zero value otherwise. + +### GetRunningSpacesOk + +`func (o *SecurityGroupRelationships) GetRunningSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool)` + +GetRunningSpacesOk returns a tuple with the RunningSpaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunningSpaces + +`func (o *SecurityGroupRelationships) SetRunningSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest)` + +SetRunningSpaces sets RunningSpaces field to given value. + +### HasRunningSpaces + +`func (o *SecurityGroupRelationships) HasRunningSpaces() bool` + +HasRunningSpaces returns a boolean if a field has been set. + +### GetStagingSpaces + +`func (o *SecurityGroupRelationships) GetStagingSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest` + +GetStagingSpaces returns the StagingSpaces field if non-nil, zero value otherwise. + +### GetStagingSpacesOk + +`func (o *SecurityGroupRelationships) GetStagingSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool)` + +GetStagingSpacesOk returns a tuple with the StagingSpaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStagingSpaces + +`func (o *SecurityGroupRelationships) SetStagingSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest)` + +SetStagingSpaces sets StagingSpaces field to given value. + +### HasStagingSpaces + +`func (o *SecurityGroupRelationships) HasStagingSpaces() bool` + +HasStagingSpaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupUpdate.md b/docs/SecurityGroupUpdate.md new file mode 100644 index 0000000..41ef129 --- /dev/null +++ b/docs/SecurityGroupUpdate.md @@ -0,0 +1,128 @@ +# SecurityGroupUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GloballyEnabled** | Pointer to [**SecurityGroupUpdateGloballyEnabled**](SecurityGroupUpdateGloballyEnabled.md) | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Rules** | Pointer to [**[]Rule**](Rule.md) | | [optional] + +## Methods + +### NewSecurityGroupUpdate + +`func NewSecurityGroupUpdate() *SecurityGroupUpdate` + +NewSecurityGroupUpdate instantiates a new SecurityGroupUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupUpdateWithDefaults + +`func NewSecurityGroupUpdateWithDefaults() *SecurityGroupUpdate` + +NewSecurityGroupUpdateWithDefaults instantiates a new SecurityGroupUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGloballyEnabled + +`func (o *SecurityGroupUpdate) GetGloballyEnabled() SecurityGroupUpdateGloballyEnabled` + +GetGloballyEnabled returns the GloballyEnabled field if non-nil, zero value otherwise. + +### GetGloballyEnabledOk + +`func (o *SecurityGroupUpdate) GetGloballyEnabledOk() (*SecurityGroupUpdateGloballyEnabled, bool)` + +GetGloballyEnabledOk returns a tuple with the GloballyEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGloballyEnabled + +`func (o *SecurityGroupUpdate) SetGloballyEnabled(v SecurityGroupUpdateGloballyEnabled)` + +SetGloballyEnabled sets GloballyEnabled field to given value. + +### HasGloballyEnabled + +`func (o *SecurityGroupUpdate) HasGloballyEnabled() bool` + +HasGloballyEnabled returns a boolean if a field has been set. + +### GetName + +`func (o *SecurityGroupUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityGroupUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityGroupUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityGroupUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecurityGroupUpdate) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecurityGroupUpdate) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetRules + +`func (o *SecurityGroupUpdate) GetRules() []Rule` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *SecurityGroupUpdate) GetRulesOk() (*[]Rule, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *SecurityGroupUpdate) SetRules(v []Rule)` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *SecurityGroupUpdate) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *SecurityGroupUpdate) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *SecurityGroupUpdate) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroupUpdateGloballyEnabled.md b/docs/SecurityGroupUpdateGloballyEnabled.md new file mode 100644 index 0000000..e6e2d82 --- /dev/null +++ b/docs/SecurityGroupUpdateGloballyEnabled.md @@ -0,0 +1,102 @@ +# SecurityGroupUpdateGloballyEnabled + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Running** | Pointer to **NullableBool** | | [optional] +**Staging** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewSecurityGroupUpdateGloballyEnabled + +`func NewSecurityGroupUpdateGloballyEnabled() *SecurityGroupUpdateGloballyEnabled` + +NewSecurityGroupUpdateGloballyEnabled instantiates a new SecurityGroupUpdateGloballyEnabled object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityGroupUpdateGloballyEnabledWithDefaults + +`func NewSecurityGroupUpdateGloballyEnabledWithDefaults() *SecurityGroupUpdateGloballyEnabled` + +NewSecurityGroupUpdateGloballyEnabledWithDefaults instantiates a new SecurityGroupUpdateGloballyEnabled object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRunning + +`func (o *SecurityGroupUpdateGloballyEnabled) GetRunning() bool` + +GetRunning returns the Running field if non-nil, zero value otherwise. + +### GetRunningOk + +`func (o *SecurityGroupUpdateGloballyEnabled) GetRunningOk() (*bool, bool)` + +GetRunningOk returns a tuple with the Running field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunning + +`func (o *SecurityGroupUpdateGloballyEnabled) SetRunning(v bool)` + +SetRunning sets Running field to given value. + +### HasRunning + +`func (o *SecurityGroupUpdateGloballyEnabled) HasRunning() bool` + +HasRunning returns a boolean if a field has been set. + +### SetRunningNil + +`func (o *SecurityGroupUpdateGloballyEnabled) SetRunningNil(b bool)` + + SetRunningNil sets the value for Running to be an explicit nil + +### UnsetRunning +`func (o *SecurityGroupUpdateGloballyEnabled) UnsetRunning()` + +UnsetRunning ensures that no value is present for Running, not even an explicit nil +### GetStaging + +`func (o *SecurityGroupUpdateGloballyEnabled) GetStaging() bool` + +GetStaging returns the Staging field if non-nil, zero value otherwise. + +### GetStagingOk + +`func (o *SecurityGroupUpdateGloballyEnabled) GetStagingOk() (*bool, bool)` + +GetStagingOk returns a tuple with the Staging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaging + +`func (o *SecurityGroupUpdateGloballyEnabled) SetStaging(v bool)` + +SetStaging sets Staging field to given value. + +### HasStaging + +`func (o *SecurityGroupUpdateGloballyEnabled) HasStaging() bool` + +HasStaging returns a boolean if a field has been set. + +### SetStagingNil + +`func (o *SecurityGroupUpdateGloballyEnabled) SetStagingNil(b bool)` + + SetStagingNil sets the value for Staging to be an explicit nil + +### UnsetStaging +`func (o *SecurityGroupUpdateGloballyEnabled) UnsetStaging()` + +UnsetStaging ensures that no value is present for Staging, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBroker.md b/docs/ServiceBroker.md new file mode 100644 index 0000000..2030cb3 --- /dev/null +++ b/docs/ServiceBroker.md @@ -0,0 +1,238 @@ +# ServiceBroker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**ServiceBrokerLinks**](ServiceBrokerLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceBrokerRelationships**](ServiceBrokerRelationships.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceBroker + +`func NewServiceBroker() *ServiceBroker` + +NewServiceBroker instantiates a new ServiceBroker object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerWithDefaults + +`func NewServiceBrokerWithDefaults() *ServiceBroker` + +NewServiceBrokerWithDefaults instantiates a new ServiceBroker object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceBroker) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceBroker) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceBroker) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceBroker) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceBroker) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceBroker) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceBroker) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceBroker) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceBroker) GetLinks() ServiceBrokerLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceBroker) GetLinksOk() (*ServiceBrokerLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceBroker) SetLinks(v ServiceBrokerLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceBroker) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceBroker) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceBroker) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceBroker) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceBroker) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceBroker) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceBroker) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceBroker) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceBroker) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceBroker) GetRelationships() ServiceBrokerRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceBroker) GetRelationshipsOk() (*ServiceBrokerRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceBroker) SetRelationships(v ServiceBrokerRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceBroker) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceBroker) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceBroker) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceBroker) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceBroker) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUrl + +`func (o *ServiceBroker) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ServiceBroker) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ServiceBroker) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ServiceBroker) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBrokerCreate.md b/docs/ServiceBrokerCreate.md new file mode 100644 index 0000000..90b10cd --- /dev/null +++ b/docs/ServiceBrokerCreate.md @@ -0,0 +1,134 @@ +# ServiceBrokerCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authentication** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceBrokerRelationships**](ServiceBrokerRelationships.md) | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceBrokerCreate + +`func NewServiceBrokerCreate() *ServiceBrokerCreate` + +NewServiceBrokerCreate instantiates a new ServiceBrokerCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerCreateWithDefaults + +`func NewServiceBrokerCreateWithDefaults() *ServiceBrokerCreate` + +NewServiceBrokerCreateWithDefaults instantiates a new ServiceBrokerCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthentication + +`func (o *ServiceBrokerCreate) GetAuthentication() Authentication` + +GetAuthentication returns the Authentication field if non-nil, zero value otherwise. + +### GetAuthenticationOk + +`func (o *ServiceBrokerCreate) GetAuthenticationOk() (*Authentication, bool)` + +GetAuthenticationOk returns a tuple with the Authentication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthentication + +`func (o *ServiceBrokerCreate) SetAuthentication(v Authentication)` + +SetAuthentication sets Authentication field to given value. + +### HasAuthentication + +`func (o *ServiceBrokerCreate) HasAuthentication() bool` + +HasAuthentication returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceBrokerCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceBrokerCreate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceBrokerCreate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceBrokerCreate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceBrokerCreate) GetRelationships() ServiceBrokerRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceBrokerCreate) GetRelationshipsOk() (*ServiceBrokerRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceBrokerCreate) SetRelationships(v ServiceBrokerRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceBrokerCreate) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetUrl + +`func (o *ServiceBrokerCreate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ServiceBrokerCreate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ServiceBrokerCreate) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ServiceBrokerCreate) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBrokerLinks.md b/docs/ServiceBrokerLinks.md new file mode 100644 index 0000000..de3d3e6 --- /dev/null +++ b/docs/ServiceBrokerLinks.md @@ -0,0 +1,108 @@ +# ServiceBrokerLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceOfferings** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Space** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewServiceBrokerLinks + +`func NewServiceBrokerLinks() *ServiceBrokerLinks` + +NewServiceBrokerLinks instantiates a new ServiceBrokerLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerLinksWithDefaults + +`func NewServiceBrokerLinksWithDefaults() *ServiceBrokerLinks` + +NewServiceBrokerLinksWithDefaults instantiates a new ServiceBrokerLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ServiceBrokerLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServiceBrokerLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServiceBrokerLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServiceBrokerLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceOfferings + +`func (o *ServiceBrokerLinks) GetServiceOfferings() Get200ResponseLinksLogCache` + +GetServiceOfferings returns the ServiceOfferings field if non-nil, zero value otherwise. + +### GetServiceOfferingsOk + +`func (o *ServiceBrokerLinks) GetServiceOfferingsOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceOfferingsOk returns a tuple with the ServiceOfferings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceOfferings + +`func (o *ServiceBrokerLinks) SetServiceOfferings(v Get200ResponseLinksLogCache)` + +SetServiceOfferings sets ServiceOfferings field to given value. + +### HasServiceOfferings + +`func (o *ServiceBrokerLinks) HasServiceOfferings() bool` + +HasServiceOfferings returns a boolean if a field has been set. + +### GetSpace + +`func (o *ServiceBrokerLinks) GetSpace() Get200ResponseLinksLogCache` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ServiceBrokerLinks) GetSpaceOk() (*Get200ResponseLinksLogCache, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ServiceBrokerLinks) SetSpace(v Get200ResponseLinksLogCache)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ServiceBrokerLinks) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBrokerList.md b/docs/ServiceBrokerList.md new file mode 100644 index 0000000..8d35add --- /dev/null +++ b/docs/ServiceBrokerList.md @@ -0,0 +1,82 @@ +# ServiceBrokerList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]ServiceBroker**](ServiceBroker.md) | | [optional] + +## Methods + +### NewServiceBrokerList + +`func NewServiceBrokerList() *ServiceBrokerList` + +NewServiceBrokerList instantiates a new ServiceBrokerList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerListWithDefaults + +`func NewServiceBrokerListWithDefaults() *ServiceBrokerList` + +NewServiceBrokerListWithDefaults instantiates a new ServiceBrokerList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *ServiceBrokerList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ServiceBrokerList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ServiceBrokerList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ServiceBrokerList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *ServiceBrokerList) GetResources() []ServiceBroker` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ServiceBrokerList) GetResourcesOk() (*[]ServiceBroker, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ServiceBrokerList) SetResources(v []ServiceBroker)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ServiceBrokerList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBrokerRelationships.md b/docs/ServiceBrokerRelationships.md new file mode 100644 index 0000000..74d6a2d --- /dev/null +++ b/docs/ServiceBrokerRelationships.md @@ -0,0 +1,56 @@ +# ServiceBrokerRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Space** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewServiceBrokerRelationships + +`func NewServiceBrokerRelationships() *ServiceBrokerRelationships` + +NewServiceBrokerRelationships instantiates a new ServiceBrokerRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerRelationshipsWithDefaults + +`func NewServiceBrokerRelationshipsWithDefaults() *ServiceBrokerRelationships` + +NewServiceBrokerRelationshipsWithDefaults instantiates a new ServiceBrokerRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSpace + +`func (o *ServiceBrokerRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ServiceBrokerRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ServiceBrokerRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ServiceBrokerRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceBrokerUpdate.md b/docs/ServiceBrokerUpdate.md new file mode 100644 index 0000000..d34dce0 --- /dev/null +++ b/docs/ServiceBrokerUpdate.md @@ -0,0 +1,134 @@ +# ServiceBrokerUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authentication** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceBrokerUpdate + +`func NewServiceBrokerUpdate() *ServiceBrokerUpdate` + +NewServiceBrokerUpdate instantiates a new ServiceBrokerUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceBrokerUpdateWithDefaults + +`func NewServiceBrokerUpdateWithDefaults() *ServiceBrokerUpdate` + +NewServiceBrokerUpdateWithDefaults instantiates a new ServiceBrokerUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthentication + +`func (o *ServiceBrokerUpdate) GetAuthentication() Authentication` + +GetAuthentication returns the Authentication field if non-nil, zero value otherwise. + +### GetAuthenticationOk + +`func (o *ServiceBrokerUpdate) GetAuthenticationOk() (*Authentication, bool)` + +GetAuthenticationOk returns a tuple with the Authentication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthentication + +`func (o *ServiceBrokerUpdate) SetAuthentication(v Authentication)` + +SetAuthentication sets Authentication field to given value. + +### HasAuthentication + +`func (o *ServiceBrokerUpdate) HasAuthentication() bool` + +HasAuthentication returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceBrokerUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceBrokerUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceBrokerUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceBrokerUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceBrokerUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceBrokerUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceBrokerUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceBrokerUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUrl + +`func (o *ServiceBrokerUpdate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ServiceBrokerUpdate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ServiceBrokerUpdate) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ServiceBrokerUpdate) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceCredentialBinding.md b/docs/ServiceCredentialBinding.md new file mode 100644 index 0000000..addde7c --- /dev/null +++ b/docs/ServiceCredentialBinding.md @@ -0,0 +1,264 @@ +# ServiceCredentialBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**LastOperation** | Pointer to [**ServiceCredentialBindingLastOperation**](ServiceCredentialBindingLastOperation.md) | | [optional] +**Links** | Pointer to [**ServiceCredentialBindingLinks**](ServiceCredentialBindingLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceCredentialBindingRelationships**](ServiceCredentialBindingRelationships.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceCredentialBinding + +`func NewServiceCredentialBinding() *ServiceCredentialBinding` + +NewServiceCredentialBinding instantiates a new ServiceCredentialBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceCredentialBindingWithDefaults + +`func NewServiceCredentialBindingWithDefaults() *ServiceCredentialBinding` + +NewServiceCredentialBindingWithDefaults instantiates a new ServiceCredentialBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceCredentialBinding) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceCredentialBinding) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceCredentialBinding) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceCredentialBinding) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceCredentialBinding) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceCredentialBinding) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceCredentialBinding) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceCredentialBinding) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLastOperation + +`func (o *ServiceCredentialBinding) GetLastOperation() ServiceCredentialBindingLastOperation` + +GetLastOperation returns the LastOperation field if non-nil, zero value otherwise. + +### GetLastOperationOk + +`func (o *ServiceCredentialBinding) GetLastOperationOk() (*ServiceCredentialBindingLastOperation, bool)` + +GetLastOperationOk returns a tuple with the LastOperation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastOperation + +`func (o *ServiceCredentialBinding) SetLastOperation(v ServiceCredentialBindingLastOperation)` + +SetLastOperation sets LastOperation field to given value. + +### HasLastOperation + +`func (o *ServiceCredentialBinding) HasLastOperation() bool` + +HasLastOperation returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceCredentialBinding) GetLinks() ServiceCredentialBindingLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceCredentialBinding) GetLinksOk() (*ServiceCredentialBindingLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceCredentialBinding) SetLinks(v ServiceCredentialBindingLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceCredentialBinding) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceCredentialBinding) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceCredentialBinding) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceCredentialBinding) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceCredentialBinding) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceCredentialBinding) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceCredentialBinding) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceCredentialBinding) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceCredentialBinding) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceCredentialBinding) GetRelationships() ServiceCredentialBindingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceCredentialBinding) GetRelationshipsOk() (*ServiceCredentialBindingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceCredentialBinding) SetRelationships(v ServiceCredentialBindingRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceCredentialBinding) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetType + +`func (o *ServiceCredentialBinding) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServiceCredentialBinding) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServiceCredentialBinding) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServiceCredentialBinding) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceCredentialBinding) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceCredentialBinding) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceCredentialBinding) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceCredentialBinding) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceCredentialBindingLastOperation.md b/docs/ServiceCredentialBindingLastOperation.md new file mode 100644 index 0000000..b7dcc62 --- /dev/null +++ b/docs/ServiceCredentialBindingLastOperation.md @@ -0,0 +1,160 @@ +# ServiceCredentialBindingLastOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceCredentialBindingLastOperation + +`func NewServiceCredentialBindingLastOperation() *ServiceCredentialBindingLastOperation` + +NewServiceCredentialBindingLastOperation instantiates a new ServiceCredentialBindingLastOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceCredentialBindingLastOperationWithDefaults + +`func NewServiceCredentialBindingLastOperationWithDefaults() *ServiceCredentialBindingLastOperation` + +NewServiceCredentialBindingLastOperationWithDefaults instantiates a new ServiceCredentialBindingLastOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceCredentialBindingLastOperation) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceCredentialBindingLastOperation) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceCredentialBindingLastOperation) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceCredentialBindingLastOperation) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceCredentialBindingLastOperation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceCredentialBindingLastOperation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceCredentialBindingLastOperation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceCredentialBindingLastOperation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetState + +`func (o *ServiceCredentialBindingLastOperation) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ServiceCredentialBindingLastOperation) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ServiceCredentialBindingLastOperation) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ServiceCredentialBindingLastOperation) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetType + +`func (o *ServiceCredentialBindingLastOperation) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServiceCredentialBindingLastOperation) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServiceCredentialBindingLastOperation) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServiceCredentialBindingLastOperation) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceCredentialBindingLastOperation) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceCredentialBindingLastOperation) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceCredentialBindingLastOperation) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceCredentialBindingLastOperation) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceCredentialBindingLinks.md b/docs/ServiceCredentialBindingLinks.md new file mode 100644 index 0000000..9395c2d --- /dev/null +++ b/docs/ServiceCredentialBindingLinks.md @@ -0,0 +1,160 @@ +# ServiceCredentialBindingLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Details** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Parameters** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**ServiceInstance** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewServiceCredentialBindingLinks + +`func NewServiceCredentialBindingLinks() *ServiceCredentialBindingLinks` + +NewServiceCredentialBindingLinks instantiates a new ServiceCredentialBindingLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceCredentialBindingLinksWithDefaults + +`func NewServiceCredentialBindingLinksWithDefaults() *ServiceCredentialBindingLinks` + +NewServiceCredentialBindingLinksWithDefaults instantiates a new ServiceCredentialBindingLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *ServiceCredentialBindingLinks) GetApp() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *ServiceCredentialBindingLinks) GetAppOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *ServiceCredentialBindingLinks) SetApp(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *ServiceCredentialBindingLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetDetails + +`func (o *ServiceCredentialBindingLinks) GetDetails() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *ServiceCredentialBindingLinks) GetDetailsOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *ServiceCredentialBindingLinks) SetDetails(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *ServiceCredentialBindingLinks) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### GetParameters + +`func (o *ServiceCredentialBindingLinks) GetParameters() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *ServiceCredentialBindingLinks) GetParametersOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *ServiceCredentialBindingLinks) SetParameters(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *ServiceCredentialBindingLinks) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetSelf + +`func (o *ServiceCredentialBindingLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServiceCredentialBindingLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServiceCredentialBindingLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServiceCredentialBindingLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *ServiceCredentialBindingLinks) GetServiceInstance() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *ServiceCredentialBindingLinks) GetServiceInstanceOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *ServiceCredentialBindingLinks) SetServiceInstance(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *ServiceCredentialBindingLinks) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceCredentialBindingRelationships.md b/docs/ServiceCredentialBindingRelationships.md new file mode 100644 index 0000000..002b7b8 --- /dev/null +++ b/docs/ServiceCredentialBindingRelationships.md @@ -0,0 +1,82 @@ +# ServiceCredentialBindingRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**ServiceInstance** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewServiceCredentialBindingRelationships + +`func NewServiceCredentialBindingRelationships() *ServiceCredentialBindingRelationships` + +NewServiceCredentialBindingRelationships instantiates a new ServiceCredentialBindingRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceCredentialBindingRelationshipsWithDefaults + +`func NewServiceCredentialBindingRelationshipsWithDefaults() *ServiceCredentialBindingRelationships` + +NewServiceCredentialBindingRelationshipsWithDefaults instantiates a new ServiceCredentialBindingRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *ServiceCredentialBindingRelationships) GetApp() V3AppsPostRequestRelationshipsSpace` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *ServiceCredentialBindingRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *ServiceCredentialBindingRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *ServiceCredentialBindingRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *ServiceCredentialBindingRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *ServiceCredentialBindingRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *ServiceCredentialBindingRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *ServiceCredentialBindingRelationships) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceInstance.md b/docs/ServiceInstance.md new file mode 100644 index 0000000..a8304d1 --- /dev/null +++ b/docs/ServiceInstance.md @@ -0,0 +1,368 @@ +# ServiceInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**DashboardUrl** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**LastOperation** | Pointer to [**LastOperation**](LastOperation.md) | | [optional] +**Links** | Pointer to [**Links**](Links.md) | | [optional] +**MaintenanceInfo** | Pointer to [**Get200ResponseLinksCloudControllerV2Meta**](Get200ResponseLinksCloudControllerV2Meta.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceInstanceRelationships**](ServiceInstanceRelationships.md) | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**UpgradeAvailable** | Pointer to **bool** | | [optional] + +## Methods + +### NewServiceInstance + +`func NewServiceInstance() *ServiceInstance` + +NewServiceInstance instantiates a new ServiceInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceInstanceWithDefaults + +`func NewServiceInstanceWithDefaults() *ServiceInstance` + +NewServiceInstanceWithDefaults instantiates a new ServiceInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceInstance) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceInstance) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceInstance) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceInstance) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDashboardUrl + +`func (o *ServiceInstance) GetDashboardUrl() string` + +GetDashboardUrl returns the DashboardUrl field if non-nil, zero value otherwise. + +### GetDashboardUrlOk + +`func (o *ServiceInstance) GetDashboardUrlOk() (*string, bool)` + +GetDashboardUrlOk returns a tuple with the DashboardUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardUrl + +`func (o *ServiceInstance) SetDashboardUrl(v string)` + +SetDashboardUrl sets DashboardUrl field to given value. + +### HasDashboardUrl + +`func (o *ServiceInstance) HasDashboardUrl() bool` + +HasDashboardUrl returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceInstance) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceInstance) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceInstance) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceInstance) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLastOperation + +`func (o *ServiceInstance) GetLastOperation() LastOperation` + +GetLastOperation returns the LastOperation field if non-nil, zero value otherwise. + +### GetLastOperationOk + +`func (o *ServiceInstance) GetLastOperationOk() (*LastOperation, bool)` + +GetLastOperationOk returns a tuple with the LastOperation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastOperation + +`func (o *ServiceInstance) SetLastOperation(v LastOperation)` + +SetLastOperation sets LastOperation field to given value. + +### HasLastOperation + +`func (o *ServiceInstance) HasLastOperation() bool` + +HasLastOperation returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceInstance) GetLinks() Links` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceInstance) GetLinksOk() (*Links, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceInstance) SetLinks(v Links)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceInstance) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMaintenanceInfo + +`func (o *ServiceInstance) GetMaintenanceInfo() Get200ResponseLinksCloudControllerV2Meta` + +GetMaintenanceInfo returns the MaintenanceInfo field if non-nil, zero value otherwise. + +### GetMaintenanceInfoOk + +`func (o *ServiceInstance) GetMaintenanceInfoOk() (*Get200ResponseLinksCloudControllerV2Meta, bool)` + +GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenanceInfo + +`func (o *ServiceInstance) SetMaintenanceInfo(v Get200ResponseLinksCloudControllerV2Meta)` + +SetMaintenanceInfo sets MaintenanceInfo field to given value. + +### HasMaintenanceInfo + +`func (o *ServiceInstance) HasMaintenanceInfo() bool` + +HasMaintenanceInfo returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceInstance) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceInstance) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceInstance) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceInstance) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceInstance) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceInstance) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceInstance) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceInstance) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceInstance) GetRelationships() ServiceInstanceRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceInstance) GetRelationshipsOk() (*ServiceInstanceRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceInstance) SetRelationships(v ServiceInstanceRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceInstance) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetTags + +`func (o *ServiceInstance) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ServiceInstance) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ServiceInstance) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ServiceInstance) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetType + +`func (o *ServiceInstance) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServiceInstance) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServiceInstance) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServiceInstance) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceInstance) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceInstance) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceInstance) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceInstance) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUpgradeAvailable + +`func (o *ServiceInstance) GetUpgradeAvailable() bool` + +GetUpgradeAvailable returns the UpgradeAvailable field if non-nil, zero value otherwise. + +### GetUpgradeAvailableOk + +`func (o *ServiceInstance) GetUpgradeAvailableOk() (*bool, bool)` + +GetUpgradeAvailableOk returns a tuple with the UpgradeAvailable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpgradeAvailable + +`func (o *ServiceInstance) SetUpgradeAvailable(v bool)` + +SetUpgradeAvailable sets UpgradeAvailable field to given value. + +### HasUpgradeAvailable + +`func (o *ServiceInstance) HasUpgradeAvailable() bool` + +HasUpgradeAvailable returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceInstanceRelationships.md b/docs/ServiceInstanceRelationships.md new file mode 100644 index 0000000..4c82ade --- /dev/null +++ b/docs/ServiceInstanceRelationships.md @@ -0,0 +1,82 @@ +# ServiceInstanceRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServicePlan** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] +**Space** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] + +## Methods + +### NewServiceInstanceRelationships + +`func NewServiceInstanceRelationships() *ServiceInstanceRelationships` + +NewServiceInstanceRelationships instantiates a new ServiceInstanceRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceInstanceRelationshipsWithDefaults + +`func NewServiceInstanceRelationshipsWithDefaults() *ServiceInstanceRelationships` + +NewServiceInstanceRelationshipsWithDefaults instantiates a new ServiceInstanceRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServicePlan + +`func (o *ServiceInstanceRelationships) GetServicePlan() ToOneRelationship` + +GetServicePlan returns the ServicePlan field if non-nil, zero value otherwise. + +### GetServicePlanOk + +`func (o *ServiceInstanceRelationships) GetServicePlanOk() (*ToOneRelationship, bool)` + +GetServicePlanOk returns a tuple with the ServicePlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlan + +`func (o *ServiceInstanceRelationships) SetServicePlan(v ToOneRelationship)` + +SetServicePlan sets ServicePlan field to given value. + +### HasServicePlan + +`func (o *ServiceInstanceRelationships) HasServicePlan() bool` + +HasServicePlan returns a boolean if a field has been set. + +### GetSpace + +`func (o *ServiceInstanceRelationships) GetSpace() ToOneRelationship` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ServiceInstanceRelationships) GetSpaceOk() (*ToOneRelationship, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ServiceInstanceRelationships) SetSpace(v ToOneRelationship)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ServiceInstanceRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOffering.md b/docs/ServiceOffering.md new file mode 100644 index 0000000..fa56f72 --- /dev/null +++ b/docs/ServiceOffering.md @@ -0,0 +1,394 @@ +# ServiceOffering + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**BrokerCatalog** | Pointer to [**BrokerCatalog**](BrokerCatalog.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**ServiceOfferingLinks**](ServiceOfferingLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceOfferingRelationships**](ServiceOfferingRelationships.md) | | [optional] +**Requires** | Pointer to **[]string** | | [optional] +**Shareable** | Pointer to **bool** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceOffering + +`func NewServiceOffering() *ServiceOffering` + +NewServiceOffering instantiates a new ServiceOffering object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingWithDefaults + +`func NewServiceOfferingWithDefaults() *ServiceOffering` + +NewServiceOfferingWithDefaults instantiates a new ServiceOffering object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *ServiceOffering) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ServiceOffering) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ServiceOffering) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ServiceOffering) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetBrokerCatalog + +`func (o *ServiceOffering) GetBrokerCatalog() BrokerCatalog` + +GetBrokerCatalog returns the BrokerCatalog field if non-nil, zero value otherwise. + +### GetBrokerCatalogOk + +`func (o *ServiceOffering) GetBrokerCatalogOk() (*BrokerCatalog, bool)` + +GetBrokerCatalogOk returns a tuple with the BrokerCatalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrokerCatalog + +`func (o *ServiceOffering) SetBrokerCatalog(v BrokerCatalog)` + +SetBrokerCatalog sets BrokerCatalog field to given value. + +### HasBrokerCatalog + +`func (o *ServiceOffering) HasBrokerCatalog() bool` + +HasBrokerCatalog returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceOffering) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceOffering) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceOffering) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceOffering) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceOffering) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceOffering) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceOffering) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceOffering) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *ServiceOffering) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *ServiceOffering) GetDocumentationUrlOk() (*string, bool)` + +GetDocumentationUrlOk returns a tuple with the DocumentationUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentationUrl + +`func (o *ServiceOffering) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *ServiceOffering) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceOffering) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceOffering) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceOffering) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceOffering) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceOffering) GetLinks() ServiceOfferingLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceOffering) GetLinksOk() (*ServiceOfferingLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceOffering) SetLinks(v ServiceOfferingLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceOffering) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceOffering) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceOffering) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceOffering) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceOffering) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceOffering) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceOffering) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceOffering) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceOffering) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceOffering) GetRelationships() ServiceOfferingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceOffering) GetRelationshipsOk() (*ServiceOfferingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceOffering) SetRelationships(v ServiceOfferingRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceOffering) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRequires + +`func (o *ServiceOffering) GetRequires() []string` + +GetRequires returns the Requires field if non-nil, zero value otherwise. + +### GetRequiresOk + +`func (o *ServiceOffering) GetRequiresOk() (*[]string, bool)` + +GetRequiresOk returns a tuple with the Requires field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequires + +`func (o *ServiceOffering) SetRequires(v []string)` + +SetRequires sets Requires field to given value. + +### HasRequires + +`func (o *ServiceOffering) HasRequires() bool` + +HasRequires returns a boolean if a field has been set. + +### GetShareable + +`func (o *ServiceOffering) GetShareable() bool` + +GetShareable returns the Shareable field if non-nil, zero value otherwise. + +### GetShareableOk + +`func (o *ServiceOffering) GetShareableOk() (*bool, bool)` + +GetShareableOk returns a tuple with the Shareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareable + +`func (o *ServiceOffering) SetShareable(v bool)` + +SetShareable sets Shareable field to given value. + +### HasShareable + +`func (o *ServiceOffering) HasShareable() bool` + +HasShareable returns a boolean if a field has been set. + +### GetTags + +`func (o *ServiceOffering) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ServiceOffering) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ServiceOffering) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ServiceOffering) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceOffering) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceOffering) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceOffering) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceOffering) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOfferingCreate.md b/docs/ServiceOfferingCreate.md new file mode 100644 index 0000000..9555fd3 --- /dev/null +++ b/docs/ServiceOfferingCreate.md @@ -0,0 +1,264 @@ +# ServiceOfferingCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**BrokerCatalog** | Pointer to [**BrokerCatalog**](BrokerCatalog.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceOfferingRelationships**](ServiceOfferingRelationships.md) | | [optional] +**Requires** | Pointer to **[]string** | | [optional] +**Shareable** | Pointer to **bool** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewServiceOfferingCreate + +`func NewServiceOfferingCreate() *ServiceOfferingCreate` + +NewServiceOfferingCreate instantiates a new ServiceOfferingCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingCreateWithDefaults + +`func NewServiceOfferingCreateWithDefaults() *ServiceOfferingCreate` + +NewServiceOfferingCreateWithDefaults instantiates a new ServiceOfferingCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *ServiceOfferingCreate) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ServiceOfferingCreate) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ServiceOfferingCreate) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ServiceOfferingCreate) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetBrokerCatalog + +`func (o *ServiceOfferingCreate) GetBrokerCatalog() BrokerCatalog` + +GetBrokerCatalog returns the BrokerCatalog field if non-nil, zero value otherwise. + +### GetBrokerCatalogOk + +`func (o *ServiceOfferingCreate) GetBrokerCatalogOk() (*BrokerCatalog, bool)` + +GetBrokerCatalogOk returns a tuple with the BrokerCatalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrokerCatalog + +`func (o *ServiceOfferingCreate) SetBrokerCatalog(v BrokerCatalog)` + +SetBrokerCatalog sets BrokerCatalog field to given value. + +### HasBrokerCatalog + +`func (o *ServiceOfferingCreate) HasBrokerCatalog() bool` + +HasBrokerCatalog returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceOfferingCreate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceOfferingCreate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceOfferingCreate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceOfferingCreate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *ServiceOfferingCreate) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *ServiceOfferingCreate) GetDocumentationUrlOk() (*string, bool)` + +GetDocumentationUrlOk returns a tuple with the DocumentationUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentationUrl + +`func (o *ServiceOfferingCreate) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *ServiceOfferingCreate) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceOfferingCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceOfferingCreate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceOfferingCreate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceOfferingCreate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceOfferingCreate) GetRelationships() ServiceOfferingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceOfferingCreate) GetRelationshipsOk() (*ServiceOfferingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceOfferingCreate) SetRelationships(v ServiceOfferingRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceOfferingCreate) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRequires + +`func (o *ServiceOfferingCreate) GetRequires() []string` + +GetRequires returns the Requires field if non-nil, zero value otherwise. + +### GetRequiresOk + +`func (o *ServiceOfferingCreate) GetRequiresOk() (*[]string, bool)` + +GetRequiresOk returns a tuple with the Requires field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequires + +`func (o *ServiceOfferingCreate) SetRequires(v []string)` + +SetRequires sets Requires field to given value. + +### HasRequires + +`func (o *ServiceOfferingCreate) HasRequires() bool` + +HasRequires returns a boolean if a field has been set. + +### GetShareable + +`func (o *ServiceOfferingCreate) GetShareable() bool` + +GetShareable returns the Shareable field if non-nil, zero value otherwise. + +### GetShareableOk + +`func (o *ServiceOfferingCreate) GetShareableOk() (*bool, bool)` + +GetShareableOk returns a tuple with the Shareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareable + +`func (o *ServiceOfferingCreate) SetShareable(v bool)` + +SetShareable sets Shareable field to given value. + +### HasShareable + +`func (o *ServiceOfferingCreate) HasShareable() bool` + +HasShareable returns a boolean if a field has been set. + +### GetTags + +`func (o *ServiceOfferingCreate) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ServiceOfferingCreate) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ServiceOfferingCreate) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ServiceOfferingCreate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOfferingLinks.md b/docs/ServiceOfferingLinks.md new file mode 100644 index 0000000..73870bd --- /dev/null +++ b/docs/ServiceOfferingLinks.md @@ -0,0 +1,108 @@ +# ServiceOfferingLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceBroker** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServicePlans** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewServiceOfferingLinks + +`func NewServiceOfferingLinks() *ServiceOfferingLinks` + +NewServiceOfferingLinks instantiates a new ServiceOfferingLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingLinksWithDefaults + +`func NewServiceOfferingLinksWithDefaults() *ServiceOfferingLinks` + +NewServiceOfferingLinksWithDefaults instantiates a new ServiceOfferingLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ServiceOfferingLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServiceOfferingLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServiceOfferingLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServiceOfferingLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceBroker + +`func (o *ServiceOfferingLinks) GetServiceBroker() Get200ResponseLinksLogCache` + +GetServiceBroker returns the ServiceBroker field if non-nil, zero value otherwise. + +### GetServiceBrokerOk + +`func (o *ServiceOfferingLinks) GetServiceBrokerOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceBrokerOk returns a tuple with the ServiceBroker field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceBroker + +`func (o *ServiceOfferingLinks) SetServiceBroker(v Get200ResponseLinksLogCache)` + +SetServiceBroker sets ServiceBroker field to given value. + +### HasServiceBroker + +`func (o *ServiceOfferingLinks) HasServiceBroker() bool` + +HasServiceBroker returns a boolean if a field has been set. + +### GetServicePlans + +`func (o *ServiceOfferingLinks) GetServicePlans() Get200ResponseLinksLogCache` + +GetServicePlans returns the ServicePlans field if non-nil, zero value otherwise. + +### GetServicePlansOk + +`func (o *ServiceOfferingLinks) GetServicePlansOk() (*Get200ResponseLinksLogCache, bool)` + +GetServicePlansOk returns a tuple with the ServicePlans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlans + +`func (o *ServiceOfferingLinks) SetServicePlans(v Get200ResponseLinksLogCache)` + +SetServicePlans sets ServicePlans field to given value. + +### HasServicePlans + +`func (o *ServiceOfferingLinks) HasServicePlans() bool` + +HasServicePlans returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOfferingList.md b/docs/ServiceOfferingList.md new file mode 100644 index 0000000..fcb69c8 --- /dev/null +++ b/docs/ServiceOfferingList.md @@ -0,0 +1,82 @@ +# ServiceOfferingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]ServiceOffering**](ServiceOffering.md) | | [optional] + +## Methods + +### NewServiceOfferingList + +`func NewServiceOfferingList() *ServiceOfferingList` + +NewServiceOfferingList instantiates a new ServiceOfferingList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingListWithDefaults + +`func NewServiceOfferingListWithDefaults() *ServiceOfferingList` + +NewServiceOfferingListWithDefaults instantiates a new ServiceOfferingList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *ServiceOfferingList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ServiceOfferingList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ServiceOfferingList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ServiceOfferingList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *ServiceOfferingList) GetResources() []ServiceOffering` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ServiceOfferingList) GetResourcesOk() (*[]ServiceOffering, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ServiceOfferingList) SetResources(v []ServiceOffering)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ServiceOfferingList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOfferingRelationships.md b/docs/ServiceOfferingRelationships.md new file mode 100644 index 0000000..ea69643 --- /dev/null +++ b/docs/ServiceOfferingRelationships.md @@ -0,0 +1,56 @@ +# ServiceOfferingRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceBroker** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewServiceOfferingRelationships + +`func NewServiceOfferingRelationships() *ServiceOfferingRelationships` + +NewServiceOfferingRelationships instantiates a new ServiceOfferingRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingRelationshipsWithDefaults + +`func NewServiceOfferingRelationshipsWithDefaults() *ServiceOfferingRelationships` + +NewServiceOfferingRelationshipsWithDefaults instantiates a new ServiceOfferingRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceBroker + +`func (o *ServiceOfferingRelationships) GetServiceBroker() V3AppsPostRequestRelationshipsSpace` + +GetServiceBroker returns the ServiceBroker field if non-nil, zero value otherwise. + +### GetServiceBrokerOk + +`func (o *ServiceOfferingRelationships) GetServiceBrokerOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetServiceBrokerOk returns a tuple with the ServiceBroker field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceBroker + +`func (o *ServiceOfferingRelationships) SetServiceBroker(v V3AppsPostRequestRelationshipsSpace)` + +SetServiceBroker sets ServiceBroker field to given value. + +### HasServiceBroker + +`func (o *ServiceOfferingRelationships) HasServiceBroker() bool` + +HasServiceBroker returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceOfferingUpdate.md b/docs/ServiceOfferingUpdate.md new file mode 100644 index 0000000..0c770f0 --- /dev/null +++ b/docs/ServiceOfferingUpdate.md @@ -0,0 +1,290 @@ +# ServiceOfferingUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**BrokerCatalog** | Pointer to [**BrokerCatalog**](BrokerCatalog.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServiceOfferingRelationships**](ServiceOfferingRelationships.md) | | [optional] +**Requires** | Pointer to **[]string** | | [optional] +**Shareable** | Pointer to **bool** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewServiceOfferingUpdate + +`func NewServiceOfferingUpdate() *ServiceOfferingUpdate` + +NewServiceOfferingUpdate instantiates a new ServiceOfferingUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceOfferingUpdateWithDefaults + +`func NewServiceOfferingUpdateWithDefaults() *ServiceOfferingUpdate` + +NewServiceOfferingUpdateWithDefaults instantiates a new ServiceOfferingUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *ServiceOfferingUpdate) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ServiceOfferingUpdate) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ServiceOfferingUpdate) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ServiceOfferingUpdate) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetBrokerCatalog + +`func (o *ServiceOfferingUpdate) GetBrokerCatalog() BrokerCatalog` + +GetBrokerCatalog returns the BrokerCatalog field if non-nil, zero value otherwise. + +### GetBrokerCatalogOk + +`func (o *ServiceOfferingUpdate) GetBrokerCatalogOk() (*BrokerCatalog, bool)` + +GetBrokerCatalogOk returns a tuple with the BrokerCatalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrokerCatalog + +`func (o *ServiceOfferingUpdate) SetBrokerCatalog(v BrokerCatalog)` + +SetBrokerCatalog sets BrokerCatalog field to given value. + +### HasBrokerCatalog + +`func (o *ServiceOfferingUpdate) HasBrokerCatalog() bool` + +HasBrokerCatalog returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceOfferingUpdate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceOfferingUpdate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServiceOfferingUpdate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceOfferingUpdate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *ServiceOfferingUpdate) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *ServiceOfferingUpdate) GetDocumentationUrlOk() (*string, bool)` + +GetDocumentationUrlOk returns a tuple with the DocumentationUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentationUrl + +`func (o *ServiceOfferingUpdate) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *ServiceOfferingUpdate) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceOfferingUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceOfferingUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceOfferingUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceOfferingUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceOfferingUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceOfferingUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceOfferingUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceOfferingUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceOfferingUpdate) GetRelationships() ServiceOfferingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceOfferingUpdate) GetRelationshipsOk() (*ServiceOfferingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceOfferingUpdate) SetRelationships(v ServiceOfferingRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceOfferingUpdate) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRequires + +`func (o *ServiceOfferingUpdate) GetRequires() []string` + +GetRequires returns the Requires field if non-nil, zero value otherwise. + +### GetRequiresOk + +`func (o *ServiceOfferingUpdate) GetRequiresOk() (*[]string, bool)` + +GetRequiresOk returns a tuple with the Requires field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequires + +`func (o *ServiceOfferingUpdate) SetRequires(v []string)` + +SetRequires sets Requires field to given value. + +### HasRequires + +`func (o *ServiceOfferingUpdate) HasRequires() bool` + +HasRequires returns a boolean if a field has been set. + +### GetShareable + +`func (o *ServiceOfferingUpdate) GetShareable() bool` + +GetShareable returns the Shareable field if non-nil, zero value otherwise. + +### GetShareableOk + +`func (o *ServiceOfferingUpdate) GetShareableOk() (*bool, bool)` + +GetShareableOk returns a tuple with the Shareable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareable + +`func (o *ServiceOfferingUpdate) SetShareable(v bool)` + +SetShareable sets Shareable field to given value. + +### HasShareable + +`func (o *ServiceOfferingUpdate) HasShareable() bool` + +HasShareable returns a boolean if a field has been set. + +### GetTags + +`func (o *ServiceOfferingUpdate) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ServiceOfferingUpdate) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ServiceOfferingUpdate) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ServiceOfferingUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlan.md b/docs/ServicePlan.md new file mode 100644 index 0000000..e8c9f0b --- /dev/null +++ b/docs/ServicePlan.md @@ -0,0 +1,420 @@ +# ServicePlan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**BrokerCatalog** | Pointer to [**BrokerCatalog**](BrokerCatalog.md) | | [optional] +**Costs** | Pointer to [**[]Cost**](Cost.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Free** | Pointer to **bool** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**ServicePlanLinks**](ServicePlanLinks.md) | | [optional] +**MaintenanceInfo** | Pointer to [**MaintenanceInfo**](MaintenanceInfo.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServicePlanRelationships**](ServicePlanRelationships.md) | | [optional] +**Schemas** | Pointer to [**PlanSchemas**](PlanSchemas.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**VisibilityType** | Pointer to **string** | Denotes the visibility of the plan; can be public, admin, organization, space | [optional] + +## Methods + +### NewServicePlan + +`func NewServicePlan() *ServicePlan` + +NewServicePlan instantiates a new ServicePlan object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanWithDefaults + +`func NewServicePlanWithDefaults() *ServicePlan` + +NewServicePlanWithDefaults instantiates a new ServicePlan object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *ServicePlan) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ServicePlan) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ServicePlan) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ServicePlan) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetBrokerCatalog + +`func (o *ServicePlan) GetBrokerCatalog() BrokerCatalog` + +GetBrokerCatalog returns the BrokerCatalog field if non-nil, zero value otherwise. + +### GetBrokerCatalogOk + +`func (o *ServicePlan) GetBrokerCatalogOk() (*BrokerCatalog, bool)` + +GetBrokerCatalogOk returns a tuple with the BrokerCatalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrokerCatalog + +`func (o *ServicePlan) SetBrokerCatalog(v BrokerCatalog)` + +SetBrokerCatalog sets BrokerCatalog field to given value. + +### HasBrokerCatalog + +`func (o *ServicePlan) HasBrokerCatalog() bool` + +HasBrokerCatalog returns a boolean if a field has been set. + +### GetCosts + +`func (o *ServicePlan) GetCosts() []Cost` + +GetCosts returns the Costs field if non-nil, zero value otherwise. + +### GetCostsOk + +`func (o *ServicePlan) GetCostsOk() (*[]Cost, bool)` + +GetCostsOk returns a tuple with the Costs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCosts + +`func (o *ServicePlan) SetCosts(v []Cost)` + +SetCosts sets Costs field to given value. + +### HasCosts + +`func (o *ServicePlan) HasCosts() bool` + +HasCosts returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServicePlan) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServicePlan) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServicePlan) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServicePlan) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServicePlan) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServicePlan) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServicePlan) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServicePlan) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFree + +`func (o *ServicePlan) GetFree() bool` + +GetFree returns the Free field if non-nil, zero value otherwise. + +### GetFreeOk + +`func (o *ServicePlan) GetFreeOk() (*bool, bool)` + +GetFreeOk returns a tuple with the Free field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFree + +`func (o *ServicePlan) SetFree(v bool)` + +SetFree sets Free field to given value. + +### HasFree + +`func (o *ServicePlan) HasFree() bool` + +HasFree returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServicePlan) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServicePlan) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServicePlan) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServicePlan) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServicePlan) GetLinks() ServicePlanLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServicePlan) GetLinksOk() (*ServicePlanLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServicePlan) SetLinks(v ServicePlanLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServicePlan) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMaintenanceInfo + +`func (o *ServicePlan) GetMaintenanceInfo() MaintenanceInfo` + +GetMaintenanceInfo returns the MaintenanceInfo field if non-nil, zero value otherwise. + +### GetMaintenanceInfoOk + +`func (o *ServicePlan) GetMaintenanceInfoOk() (*MaintenanceInfo, bool)` + +GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenanceInfo + +`func (o *ServicePlan) SetMaintenanceInfo(v MaintenanceInfo)` + +SetMaintenanceInfo sets MaintenanceInfo field to given value. + +### HasMaintenanceInfo + +`func (o *ServicePlan) HasMaintenanceInfo() bool` + +HasMaintenanceInfo returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServicePlan) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServicePlan) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServicePlan) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServicePlan) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *ServicePlan) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServicePlan) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServicePlan) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServicePlan) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServicePlan) GetRelationships() ServicePlanRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServicePlan) GetRelationshipsOk() (*ServicePlanRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServicePlan) SetRelationships(v ServicePlanRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServicePlan) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetSchemas + +`func (o *ServicePlan) GetSchemas() PlanSchemas` + +GetSchemas returns the Schemas field if non-nil, zero value otherwise. + +### GetSchemasOk + +`func (o *ServicePlan) GetSchemasOk() (*PlanSchemas, bool)` + +GetSchemasOk returns a tuple with the Schemas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemas + +`func (o *ServicePlan) SetSchemas(v PlanSchemas)` + +SetSchemas sets Schemas field to given value. + +### HasSchemas + +`func (o *ServicePlan) HasSchemas() bool` + +HasSchemas returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServicePlan) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServicePlan) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServicePlan) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServicePlan) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetVisibilityType + +`func (o *ServicePlan) GetVisibilityType() string` + +GetVisibilityType returns the VisibilityType field if non-nil, zero value otherwise. + +### GetVisibilityTypeOk + +`func (o *ServicePlan) GetVisibilityTypeOk() (*string, bool)` + +GetVisibilityTypeOk returns a tuple with the VisibilityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVisibilityType + +`func (o *ServicePlan) SetVisibilityType(v string)` + +SetVisibilityType sets VisibilityType field to given value. + +### HasVisibilityType + +`func (o *ServicePlan) HasVisibilityType() bool` + +HasVisibilityType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanCreate.md b/docs/ServicePlanCreate.md new file mode 100644 index 0000000..7c9d9bd --- /dev/null +++ b/docs/ServicePlanCreate.md @@ -0,0 +1,264 @@ +# ServicePlanCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**BrokerCatalog** | Pointer to [**BrokerCatalog**](BrokerCatalog.md) | | [optional] +**Costs** | Pointer to [**[]Cost**](Cost.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Free** | Pointer to **bool** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**ServicePlanRelationships**](ServicePlanRelationships.md) | | [optional] +**Schemas** | Pointer to [**PlanSchemas**](PlanSchemas.md) | | [optional] +**VisibilityType** | Pointer to **string** | | [optional] + +## Methods + +### NewServicePlanCreate + +`func NewServicePlanCreate() *ServicePlanCreate` + +NewServicePlanCreate instantiates a new ServicePlanCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanCreateWithDefaults + +`func NewServicePlanCreateWithDefaults() *ServicePlanCreate` + +NewServicePlanCreateWithDefaults instantiates a new ServicePlanCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *ServicePlanCreate) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ServicePlanCreate) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ServicePlanCreate) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ServicePlanCreate) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetBrokerCatalog + +`func (o *ServicePlanCreate) GetBrokerCatalog() BrokerCatalog` + +GetBrokerCatalog returns the BrokerCatalog field if non-nil, zero value otherwise. + +### GetBrokerCatalogOk + +`func (o *ServicePlanCreate) GetBrokerCatalogOk() (*BrokerCatalog, bool)` + +GetBrokerCatalogOk returns a tuple with the BrokerCatalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrokerCatalog + +`func (o *ServicePlanCreate) SetBrokerCatalog(v BrokerCatalog)` + +SetBrokerCatalog sets BrokerCatalog field to given value. + +### HasBrokerCatalog + +`func (o *ServicePlanCreate) HasBrokerCatalog() bool` + +HasBrokerCatalog returns a boolean if a field has been set. + +### GetCosts + +`func (o *ServicePlanCreate) GetCosts() []Cost` + +GetCosts returns the Costs field if non-nil, zero value otherwise. + +### GetCostsOk + +`func (o *ServicePlanCreate) GetCostsOk() (*[]Cost, bool)` + +GetCostsOk returns a tuple with the Costs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCosts + +`func (o *ServicePlanCreate) SetCosts(v []Cost)` + +SetCosts sets Costs field to given value. + +### HasCosts + +`func (o *ServicePlanCreate) HasCosts() bool` + +HasCosts returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServicePlanCreate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServicePlanCreate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ServicePlanCreate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServicePlanCreate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFree + +`func (o *ServicePlanCreate) GetFree() bool` + +GetFree returns the Free field if non-nil, zero value otherwise. + +### GetFreeOk + +`func (o *ServicePlanCreate) GetFreeOk() (*bool, bool)` + +GetFreeOk returns a tuple with the Free field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFree + +`func (o *ServicePlanCreate) SetFree(v bool)` + +SetFree sets Free field to given value. + +### HasFree + +`func (o *ServicePlanCreate) HasFree() bool` + +HasFree returns a boolean if a field has been set. + +### GetName + +`func (o *ServicePlanCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServicePlanCreate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServicePlanCreate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServicePlanCreate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServicePlanCreate) GetRelationships() ServicePlanRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServicePlanCreate) GetRelationshipsOk() (*ServicePlanRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServicePlanCreate) SetRelationships(v ServicePlanRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServicePlanCreate) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetSchemas + +`func (o *ServicePlanCreate) GetSchemas() PlanSchemas` + +GetSchemas returns the Schemas field if non-nil, zero value otherwise. + +### GetSchemasOk + +`func (o *ServicePlanCreate) GetSchemasOk() (*PlanSchemas, bool)` + +GetSchemasOk returns a tuple with the Schemas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemas + +`func (o *ServicePlanCreate) SetSchemas(v PlanSchemas)` + +SetSchemas sets Schemas field to given value. + +### HasSchemas + +`func (o *ServicePlanCreate) HasSchemas() bool` + +HasSchemas returns a boolean if a field has been set. + +### GetVisibilityType + +`func (o *ServicePlanCreate) GetVisibilityType() string` + +GetVisibilityType returns the VisibilityType field if non-nil, zero value otherwise. + +### GetVisibilityTypeOk + +`func (o *ServicePlanCreate) GetVisibilityTypeOk() (*string, bool)` + +GetVisibilityTypeOk returns a tuple with the VisibilityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVisibilityType + +`func (o *ServicePlanCreate) SetVisibilityType(v string)` + +SetVisibilityType sets VisibilityType field to given value. + +### HasVisibilityType + +`func (o *ServicePlanCreate) HasVisibilityType() bool` + +HasVisibilityType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanLinks.md b/docs/ServicePlanLinks.md new file mode 100644 index 0000000..539e608 --- /dev/null +++ b/docs/ServicePlanLinks.md @@ -0,0 +1,108 @@ +# ServicePlanLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceOffering** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Visibility** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewServicePlanLinks + +`func NewServicePlanLinks() *ServicePlanLinks` + +NewServicePlanLinks instantiates a new ServicePlanLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanLinksWithDefaults + +`func NewServicePlanLinksWithDefaults() *ServicePlanLinks` + +NewServicePlanLinksWithDefaults instantiates a new ServicePlanLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ServicePlanLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServicePlanLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServicePlanLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServicePlanLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceOffering + +`func (o *ServicePlanLinks) GetServiceOffering() Get200ResponseLinksLogCache` + +GetServiceOffering returns the ServiceOffering field if non-nil, zero value otherwise. + +### GetServiceOfferingOk + +`func (o *ServicePlanLinks) GetServiceOfferingOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceOfferingOk returns a tuple with the ServiceOffering field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceOffering + +`func (o *ServicePlanLinks) SetServiceOffering(v Get200ResponseLinksLogCache)` + +SetServiceOffering sets ServiceOffering field to given value. + +### HasServiceOffering + +`func (o *ServicePlanLinks) HasServiceOffering() bool` + +HasServiceOffering returns a boolean if a field has been set. + +### GetVisibility + +`func (o *ServicePlanLinks) GetVisibility() Get200ResponseLinksLogCache` + +GetVisibility returns the Visibility field if non-nil, zero value otherwise. + +### GetVisibilityOk + +`func (o *ServicePlanLinks) GetVisibilityOk() (*Get200ResponseLinksLogCache, bool)` + +GetVisibilityOk returns a tuple with the Visibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVisibility + +`func (o *ServicePlanLinks) SetVisibility(v Get200ResponseLinksLogCache)` + +SetVisibility sets Visibility field to given value. + +### HasVisibility + +`func (o *ServicePlanLinks) HasVisibility() bool` + +HasVisibility returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanList.md b/docs/ServicePlanList.md new file mode 100644 index 0000000..0a1fea3 --- /dev/null +++ b/docs/ServicePlanList.md @@ -0,0 +1,82 @@ +# ServicePlanList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**RevisionsListPagination**](RevisionsListPagination.md) | | [optional] +**Resources** | Pointer to [**[]ServicePlan**](ServicePlan.md) | | [optional] + +## Methods + +### NewServicePlanList + +`func NewServicePlanList() *ServicePlanList` + +NewServicePlanList instantiates a new ServicePlanList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanListWithDefaults + +`func NewServicePlanListWithDefaults() *ServicePlanList` + +NewServicePlanListWithDefaults instantiates a new ServicePlanList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *ServicePlanList) GetPagination() RevisionsListPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ServicePlanList) GetPaginationOk() (*RevisionsListPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ServicePlanList) SetPagination(v RevisionsListPagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *ServicePlanList) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *ServicePlanList) GetResources() []ServicePlan` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ServicePlanList) GetResourcesOk() (*[]ServicePlan, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ServicePlanList) SetResources(v []ServicePlan)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ServicePlanList) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanRelationships.md b/docs/ServicePlanRelationships.md new file mode 100644 index 0000000..39a2c15 --- /dev/null +++ b/docs/ServicePlanRelationships.md @@ -0,0 +1,56 @@ +# ServicePlanRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceOffering** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewServicePlanRelationships + +`func NewServicePlanRelationships() *ServicePlanRelationships` + +NewServicePlanRelationships instantiates a new ServicePlanRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanRelationshipsWithDefaults + +`func NewServicePlanRelationshipsWithDefaults() *ServicePlanRelationships` + +NewServicePlanRelationshipsWithDefaults instantiates a new ServicePlanRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceOffering + +`func (o *ServicePlanRelationships) GetServiceOffering() V3AppsPostRequestRelationshipsSpace` + +GetServiceOffering returns the ServiceOffering field if non-nil, zero value otherwise. + +### GetServiceOfferingOk + +`func (o *ServicePlanRelationships) GetServiceOfferingOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetServiceOfferingOk returns a tuple with the ServiceOffering field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceOffering + +`func (o *ServicePlanRelationships) SetServiceOffering(v V3AppsPostRequestRelationshipsSpace)` + +SetServiceOffering sets ServiceOffering field to given value. + +### HasServiceOffering + +`func (o *ServicePlanRelationships) HasServiceOffering() bool` + +HasServiceOffering returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanUpdate.md b/docs/ServicePlanUpdate.md new file mode 100644 index 0000000..abbadca --- /dev/null +++ b/docs/ServicePlanUpdate.md @@ -0,0 +1,56 @@ +# ServicePlanUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] + +## Methods + +### NewServicePlanUpdate + +`func NewServicePlanUpdate() *ServicePlanUpdate` + +NewServicePlanUpdate instantiates a new ServicePlanUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanUpdateWithDefaults + +`func NewServicePlanUpdateWithDefaults() *ServicePlanUpdate` + +NewServicePlanUpdateWithDefaults instantiates a new ServicePlanUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *ServicePlanUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServicePlanUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServicePlanUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServicePlanUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanVisibility.md b/docs/ServicePlanVisibility.md new file mode 100644 index 0000000..9212e74 --- /dev/null +++ b/docs/ServicePlanVisibility.md @@ -0,0 +1,108 @@ +# ServicePlanVisibility + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**[]OrganizationVisibility**](OrganizationVisibility.md) | | [optional] +**Space** | Pointer to [**ServicePlanVisibilitySpace**](ServicePlanVisibilitySpace.md) | | [optional] +**Type** | Pointer to **string** | Denotes the visibility of the plan; can be public, admin, organization, space | [optional] + +## Methods + +### NewServicePlanVisibility + +`func NewServicePlanVisibility() *ServicePlanVisibility` + +NewServicePlanVisibility instantiates a new ServicePlanVisibility object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanVisibilityWithDefaults + +`func NewServicePlanVisibilityWithDefaults() *ServicePlanVisibility` + +NewServicePlanVisibilityWithDefaults instantiates a new ServicePlanVisibility object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *ServicePlanVisibility) GetOrganizations() []OrganizationVisibility` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *ServicePlanVisibility) GetOrganizationsOk() (*[]OrganizationVisibility, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *ServicePlanVisibility) SetOrganizations(v []OrganizationVisibility)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *ServicePlanVisibility) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetSpace + +`func (o *ServicePlanVisibility) GetSpace() ServicePlanVisibilitySpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ServicePlanVisibility) GetSpaceOk() (*ServicePlanVisibilitySpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ServicePlanVisibility) SetSpace(v ServicePlanVisibilitySpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ServicePlanVisibility) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetType + +`func (o *ServicePlanVisibility) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServicePlanVisibility) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServicePlanVisibility) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServicePlanVisibility) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanVisibilityApply.md b/docs/ServicePlanVisibilityApply.md new file mode 100644 index 0000000..6fe268a --- /dev/null +++ b/docs/ServicePlanVisibilityApply.md @@ -0,0 +1,82 @@ +# ServicePlanVisibilityApply + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Type** | Pointer to **string** | Denotes the visibility of the plan; can be public, admin, organization | [optional] + +## Methods + +### NewServicePlanVisibilityApply + +`func NewServicePlanVisibilityApply() *ServicePlanVisibilityApply` + +NewServicePlanVisibilityApply instantiates a new ServicePlanVisibilityApply object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanVisibilityApplyWithDefaults + +`func NewServicePlanVisibilityApplyWithDefaults() *ServicePlanVisibilityApply` + +NewServicePlanVisibilityApplyWithDefaults instantiates a new ServicePlanVisibilityApply object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *ServicePlanVisibilityApply) GetOrganizations() []V3AppsPostRequestRelationshipsSpaceData` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *ServicePlanVisibilityApply) GetOrganizationsOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *ServicePlanVisibilityApply) SetOrganizations(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *ServicePlanVisibilityApply) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetType + +`func (o *ServicePlanVisibilityApply) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServicePlanVisibilityApply) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServicePlanVisibilityApply) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServicePlanVisibilityApply) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanVisibilitySpace.md b/docs/ServicePlanVisibilitySpace.md new file mode 100644 index 0000000..86e1797 --- /dev/null +++ b/docs/ServicePlanVisibilitySpace.md @@ -0,0 +1,82 @@ +# ServicePlanVisibilitySpace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewServicePlanVisibilitySpace + +`func NewServicePlanVisibilitySpace() *ServicePlanVisibilitySpace` + +NewServicePlanVisibilitySpace instantiates a new ServicePlanVisibilitySpace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanVisibilitySpaceWithDefaults + +`func NewServicePlanVisibilitySpaceWithDefaults() *ServicePlanVisibilitySpace` + +NewServicePlanVisibilitySpaceWithDefaults instantiates a new ServicePlanVisibilitySpace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *ServicePlanVisibilitySpace) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServicePlanVisibilitySpace) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServicePlanVisibilitySpace) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServicePlanVisibilitySpace) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *ServicePlanVisibilitySpace) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServicePlanVisibilitySpace) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServicePlanVisibilitySpace) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServicePlanVisibilitySpace) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicePlanVisibilityUpdate.md b/docs/ServicePlanVisibilityUpdate.md new file mode 100644 index 0000000..78fee3b --- /dev/null +++ b/docs/ServicePlanVisibilityUpdate.md @@ -0,0 +1,82 @@ +# ServicePlanVisibilityUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organizations** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Type** | Pointer to **string** | Denotes the visibility of the plan; can be public, admin, organization | [optional] + +## Methods + +### NewServicePlanVisibilityUpdate + +`func NewServicePlanVisibilityUpdate() *ServicePlanVisibilityUpdate` + +NewServicePlanVisibilityUpdate instantiates a new ServicePlanVisibilityUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicePlanVisibilityUpdateWithDefaults + +`func NewServicePlanVisibilityUpdateWithDefaults() *ServicePlanVisibilityUpdate` + +NewServicePlanVisibilityUpdateWithDefaults instantiates a new ServicePlanVisibilityUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganizations + +`func (o *ServicePlanVisibilityUpdate) GetOrganizations() []V3AppsPostRequestRelationshipsSpaceData` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *ServicePlanVisibilityUpdate) GetOrganizationsOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *ServicePlanVisibilityUpdate) SetOrganizations(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *ServicePlanVisibilityUpdate) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetType + +`func (o *ServicePlanVisibilityUpdate) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServicePlanVisibilityUpdate) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServicePlanVisibilityUpdate) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServicePlanVisibilityUpdate) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceRouteBinding.md b/docs/ServiceRouteBinding.md new file mode 100644 index 0000000..d7eb3bb --- /dev/null +++ b/docs/ServiceRouteBinding.md @@ -0,0 +1,238 @@ +# ServiceRouteBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**LastOperation** | Pointer to [**ServiceCredentialBindingLastOperation**](ServiceCredentialBindingLastOperation.md) | | [optional] +**Links** | Pointer to [**ServiceRouteBindingLinks**](ServiceRouteBindingLinks.md) | | [optional] +**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional] +**Relationships** | Pointer to [**ServiceRouteBindingRelationships**](ServiceRouteBindingRelationships.md) | | [optional] +**RouteServiceUrl** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceRouteBinding + +`func NewServiceRouteBinding() *ServiceRouteBinding` + +NewServiceRouteBinding instantiates a new ServiceRouteBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceRouteBindingWithDefaults + +`func NewServiceRouteBindingWithDefaults() *ServiceRouteBinding` + +NewServiceRouteBindingWithDefaults instantiates a new ServiceRouteBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceRouteBinding) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceRouteBinding) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceRouteBinding) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceRouteBinding) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceRouteBinding) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceRouteBinding) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceRouteBinding) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceRouteBinding) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLastOperation + +`func (o *ServiceRouteBinding) GetLastOperation() ServiceCredentialBindingLastOperation` + +GetLastOperation returns the LastOperation field if non-nil, zero value otherwise. + +### GetLastOperationOk + +`func (o *ServiceRouteBinding) GetLastOperationOk() (*ServiceCredentialBindingLastOperation, bool)` + +GetLastOperationOk returns a tuple with the LastOperation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastOperation + +`func (o *ServiceRouteBinding) SetLastOperation(v ServiceCredentialBindingLastOperation)` + +SetLastOperation sets LastOperation field to given value. + +### HasLastOperation + +`func (o *ServiceRouteBinding) HasLastOperation() bool` + +HasLastOperation returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceRouteBinding) GetLinks() ServiceRouteBindingLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceRouteBinding) GetLinksOk() (*ServiceRouteBindingLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceRouteBinding) SetLinks(v ServiceRouteBindingLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceRouteBinding) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ServiceRouteBinding) GetMetadata() Metadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ServiceRouteBinding) GetMetadataOk() (*Metadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ServiceRouteBinding) SetMetadata(v Metadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ServiceRouteBinding) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetRelationships + +`func (o *ServiceRouteBinding) GetRelationships() ServiceRouteBindingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ServiceRouteBinding) GetRelationshipsOk() (*ServiceRouteBindingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ServiceRouteBinding) SetRelationships(v ServiceRouteBindingRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ServiceRouteBinding) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRouteServiceUrl + +`func (o *ServiceRouteBinding) GetRouteServiceUrl() string` + +GetRouteServiceUrl returns the RouteServiceUrl field if non-nil, zero value otherwise. + +### GetRouteServiceUrlOk + +`func (o *ServiceRouteBinding) GetRouteServiceUrlOk() (*string, bool)` + +GetRouteServiceUrlOk returns a tuple with the RouteServiceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouteServiceUrl + +`func (o *ServiceRouteBinding) SetRouteServiceUrl(v string)` + +SetRouteServiceUrl sets RouteServiceUrl field to given value. + +### HasRouteServiceUrl + +`func (o *ServiceRouteBinding) HasRouteServiceUrl() bool` + +HasRouteServiceUrl returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ServiceRouteBinding) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceRouteBinding) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceRouteBinding) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceRouteBinding) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceRouteBindingLinks.md b/docs/ServiceRouteBindingLinks.md new file mode 100644 index 0000000..c3cff42 --- /dev/null +++ b/docs/ServiceRouteBindingLinks.md @@ -0,0 +1,134 @@ +# ServiceRouteBindingLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Parameters** | Pointer to **string** | | [optional] +**Route** | Pointer to **string** | | [optional] +**Self** | Pointer to **string** | | [optional] +**ServiceInstance** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceRouteBindingLinks + +`func NewServiceRouteBindingLinks() *ServiceRouteBindingLinks` + +NewServiceRouteBindingLinks instantiates a new ServiceRouteBindingLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceRouteBindingLinksWithDefaults + +`func NewServiceRouteBindingLinksWithDefaults() *ServiceRouteBindingLinks` + +NewServiceRouteBindingLinksWithDefaults instantiates a new ServiceRouteBindingLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetParameters + +`func (o *ServiceRouteBindingLinks) GetParameters() string` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *ServiceRouteBindingLinks) GetParametersOk() (*string, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *ServiceRouteBindingLinks) SetParameters(v string)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *ServiceRouteBindingLinks) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetRoute + +`func (o *ServiceRouteBindingLinks) GetRoute() string` + +GetRoute returns the Route field if non-nil, zero value otherwise. + +### GetRouteOk + +`func (o *ServiceRouteBindingLinks) GetRouteOk() (*string, bool)` + +GetRouteOk returns a tuple with the Route field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoute + +`func (o *ServiceRouteBindingLinks) SetRoute(v string)` + +SetRoute sets Route field to given value. + +### HasRoute + +`func (o *ServiceRouteBindingLinks) HasRoute() bool` + +HasRoute returns a boolean if a field has been set. + +### GetSelf + +`func (o *ServiceRouteBindingLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServiceRouteBindingLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServiceRouteBindingLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServiceRouteBindingLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *ServiceRouteBindingLinks) GetServiceInstance() string` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *ServiceRouteBindingLinks) GetServiceInstanceOk() (*string, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *ServiceRouteBindingLinks) SetServiceInstance(v string)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *ServiceRouteBindingLinks) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceRouteBindingRelationships.md b/docs/ServiceRouteBindingRelationships.md new file mode 100644 index 0000000..2ff778c --- /dev/null +++ b/docs/ServiceRouteBindingRelationships.md @@ -0,0 +1,82 @@ +# ServiceRouteBindingRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Route** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**ServiceInstance** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewServiceRouteBindingRelationships + +`func NewServiceRouteBindingRelationships() *ServiceRouteBindingRelationships` + +NewServiceRouteBindingRelationships instantiates a new ServiceRouteBindingRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceRouteBindingRelationshipsWithDefaults + +`func NewServiceRouteBindingRelationshipsWithDefaults() *ServiceRouteBindingRelationships` + +NewServiceRouteBindingRelationshipsWithDefaults instantiates a new ServiceRouteBindingRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoute + +`func (o *ServiceRouteBindingRelationships) GetRoute() V3AppsPostRequestRelationshipsSpace` + +GetRoute returns the Route field if non-nil, zero value otherwise. + +### GetRouteOk + +`func (o *ServiceRouteBindingRelationships) GetRouteOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetRouteOk returns a tuple with the Route field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoute + +`func (o *ServiceRouteBindingRelationships) SetRoute(v V3AppsPostRequestRelationshipsSpace)` + +SetRoute sets Route field to given value. + +### HasRoute + +`func (o *ServiceRouteBindingRelationships) HasRoute() bool` + +HasRoute returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *ServiceRouteBindingRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *ServiceRouteBindingRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *ServiceRouteBindingRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *ServiceRouteBindingRelationships) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceUsageEvent.md b/docs/ServiceUsageEvent.md new file mode 100644 index 0000000..197c9c3 --- /dev/null +++ b/docs/ServiceUsageEvent.md @@ -0,0 +1,386 @@ +# ServiceUsageEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**ServiceUsageEventLinks**](ServiceUsageEventLinks.md) | | [optional] +**Organization** | Pointer to [**NullableRoleRelationshipsSpaceData**](RoleRelationshipsSpaceData.md) | | [optional] +**ServiceBroker** | Pointer to [**NullableServiceUsageEventServiceBroker**](ServiceUsageEventServiceBroker.md) | | [optional] +**ServiceInstance** | Pointer to [**NullableServiceUsageEventServiceInstance**](ServiceUsageEventServiceInstance.md) | | [optional] +**ServiceOffering** | Pointer to [**NullableServiceUsageEventServiceBroker**](ServiceUsageEventServiceBroker.md) | | [optional] +**ServicePlan** | Pointer to [**NullableServiceUsageEventServiceBroker**](ServiceUsageEventServiceBroker.md) | | [optional] +**Space** | Pointer to [**NullableServiceUsageEventServiceBroker**](ServiceUsageEventServiceBroker.md) | | [optional] +**State** | Pointer to **NullableString** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceUsageEvent + +`func NewServiceUsageEvent() *ServiceUsageEvent` + +NewServiceUsageEvent instantiates a new ServiceUsageEvent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceUsageEventWithDefaults + +`func NewServiceUsageEventWithDefaults() *ServiceUsageEvent` + +NewServiceUsageEventWithDefaults instantiates a new ServiceUsageEvent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *ServiceUsageEvent) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceUsageEvent) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceUsageEvent) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceUsageEvent) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *ServiceUsageEvent) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceUsageEvent) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceUsageEvent) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceUsageEvent) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *ServiceUsageEvent) GetLinks() ServiceUsageEventLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *ServiceUsageEvent) GetLinksOk() (*ServiceUsageEventLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *ServiceUsageEvent) SetLinks(v ServiceUsageEventLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *ServiceUsageEvent) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetOrganization + +`func (o *ServiceUsageEvent) GetOrganization() RoleRelationshipsSpaceData` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *ServiceUsageEvent) GetOrganizationOk() (*RoleRelationshipsSpaceData, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *ServiceUsageEvent) SetOrganization(v RoleRelationshipsSpaceData)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *ServiceUsageEvent) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### SetOrganizationNil + +`func (o *ServiceUsageEvent) SetOrganizationNil(b bool)` + + SetOrganizationNil sets the value for Organization to be an explicit nil + +### UnsetOrganization +`func (o *ServiceUsageEvent) UnsetOrganization()` + +UnsetOrganization ensures that no value is present for Organization, not even an explicit nil +### GetServiceBroker + +`func (o *ServiceUsageEvent) GetServiceBroker() ServiceUsageEventServiceBroker` + +GetServiceBroker returns the ServiceBroker field if non-nil, zero value otherwise. + +### GetServiceBrokerOk + +`func (o *ServiceUsageEvent) GetServiceBrokerOk() (*ServiceUsageEventServiceBroker, bool)` + +GetServiceBrokerOk returns a tuple with the ServiceBroker field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceBroker + +`func (o *ServiceUsageEvent) SetServiceBroker(v ServiceUsageEventServiceBroker)` + +SetServiceBroker sets ServiceBroker field to given value. + +### HasServiceBroker + +`func (o *ServiceUsageEvent) HasServiceBroker() bool` + +HasServiceBroker returns a boolean if a field has been set. + +### SetServiceBrokerNil + +`func (o *ServiceUsageEvent) SetServiceBrokerNil(b bool)` + + SetServiceBrokerNil sets the value for ServiceBroker to be an explicit nil + +### UnsetServiceBroker +`func (o *ServiceUsageEvent) UnsetServiceBroker()` + +UnsetServiceBroker ensures that no value is present for ServiceBroker, not even an explicit nil +### GetServiceInstance + +`func (o *ServiceUsageEvent) GetServiceInstance() ServiceUsageEventServiceInstance` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *ServiceUsageEvent) GetServiceInstanceOk() (*ServiceUsageEventServiceInstance, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *ServiceUsageEvent) SetServiceInstance(v ServiceUsageEventServiceInstance)` + +SetServiceInstance sets ServiceInstance field to given value. + +### HasServiceInstance + +`func (o *ServiceUsageEvent) HasServiceInstance() bool` + +HasServiceInstance returns a boolean if a field has been set. + +### SetServiceInstanceNil + +`func (o *ServiceUsageEvent) SetServiceInstanceNil(b bool)` + + SetServiceInstanceNil sets the value for ServiceInstance to be an explicit nil + +### UnsetServiceInstance +`func (o *ServiceUsageEvent) UnsetServiceInstance()` + +UnsetServiceInstance ensures that no value is present for ServiceInstance, not even an explicit nil +### GetServiceOffering + +`func (o *ServiceUsageEvent) GetServiceOffering() ServiceUsageEventServiceBroker` + +GetServiceOffering returns the ServiceOffering field if non-nil, zero value otherwise. + +### GetServiceOfferingOk + +`func (o *ServiceUsageEvent) GetServiceOfferingOk() (*ServiceUsageEventServiceBroker, bool)` + +GetServiceOfferingOk returns a tuple with the ServiceOffering field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceOffering + +`func (o *ServiceUsageEvent) SetServiceOffering(v ServiceUsageEventServiceBroker)` + +SetServiceOffering sets ServiceOffering field to given value. + +### HasServiceOffering + +`func (o *ServiceUsageEvent) HasServiceOffering() bool` + +HasServiceOffering returns a boolean if a field has been set. + +### SetServiceOfferingNil + +`func (o *ServiceUsageEvent) SetServiceOfferingNil(b bool)` + + SetServiceOfferingNil sets the value for ServiceOffering to be an explicit nil + +### UnsetServiceOffering +`func (o *ServiceUsageEvent) UnsetServiceOffering()` + +UnsetServiceOffering ensures that no value is present for ServiceOffering, not even an explicit nil +### GetServicePlan + +`func (o *ServiceUsageEvent) GetServicePlan() ServiceUsageEventServiceBroker` + +GetServicePlan returns the ServicePlan field if non-nil, zero value otherwise. + +### GetServicePlanOk + +`func (o *ServiceUsageEvent) GetServicePlanOk() (*ServiceUsageEventServiceBroker, bool)` + +GetServicePlanOk returns a tuple with the ServicePlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlan + +`func (o *ServiceUsageEvent) SetServicePlan(v ServiceUsageEventServiceBroker)` + +SetServicePlan sets ServicePlan field to given value. + +### HasServicePlan + +`func (o *ServiceUsageEvent) HasServicePlan() bool` + +HasServicePlan returns a boolean if a field has been set. + +### SetServicePlanNil + +`func (o *ServiceUsageEvent) SetServicePlanNil(b bool)` + + SetServicePlanNil sets the value for ServicePlan to be an explicit nil + +### UnsetServicePlan +`func (o *ServiceUsageEvent) UnsetServicePlan()` + +UnsetServicePlan ensures that no value is present for ServicePlan, not even an explicit nil +### GetSpace + +`func (o *ServiceUsageEvent) GetSpace() ServiceUsageEventServiceBroker` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *ServiceUsageEvent) GetSpaceOk() (*ServiceUsageEventServiceBroker, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *ServiceUsageEvent) SetSpace(v ServiceUsageEventServiceBroker)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *ServiceUsageEvent) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### SetSpaceNil + +`func (o *ServiceUsageEvent) SetSpaceNil(b bool)` + + SetSpaceNil sets the value for Space to be an explicit nil + +### UnsetSpace +`func (o *ServiceUsageEvent) UnsetSpace()` + +UnsetSpace ensures that no value is present for Space, not even an explicit nil +### GetState + +`func (o *ServiceUsageEvent) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ServiceUsageEvent) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ServiceUsageEvent) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ServiceUsageEvent) HasState() bool` + +HasState returns a boolean if a field has been set. + +### SetStateNil + +`func (o *ServiceUsageEvent) SetStateNil(b bool)` + + SetStateNil sets the value for State to be an explicit nil + +### UnsetState +`func (o *ServiceUsageEvent) UnsetState()` + +UnsetState ensures that no value is present for State, not even an explicit nil +### GetUpdatedAt + +`func (o *ServiceUsageEvent) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ServiceUsageEvent) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ServiceUsageEvent) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ServiceUsageEvent) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceUsageEventLinks.md b/docs/ServiceUsageEventLinks.md new file mode 100644 index 0000000..8bfddab --- /dev/null +++ b/docs/ServiceUsageEventLinks.md @@ -0,0 +1,56 @@ +# ServiceUsageEventLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceUsageEventLinks + +`func NewServiceUsageEventLinks() *ServiceUsageEventLinks` + +NewServiceUsageEventLinks instantiates a new ServiceUsageEventLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceUsageEventLinksWithDefaults + +`func NewServiceUsageEventLinksWithDefaults() *ServiceUsageEventLinks` + +NewServiceUsageEventLinksWithDefaults instantiates a new ServiceUsageEventLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *ServiceUsageEventLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *ServiceUsageEventLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *ServiceUsageEventLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *ServiceUsageEventLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceUsageEventServiceBroker.md b/docs/ServiceUsageEventServiceBroker.md new file mode 100644 index 0000000..6c2cbd6 --- /dev/null +++ b/docs/ServiceUsageEventServiceBroker.md @@ -0,0 +1,82 @@ +# ServiceUsageEventServiceBroker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceUsageEventServiceBroker + +`func NewServiceUsageEventServiceBroker() *ServiceUsageEventServiceBroker` + +NewServiceUsageEventServiceBroker instantiates a new ServiceUsageEventServiceBroker object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceUsageEventServiceBrokerWithDefaults + +`func NewServiceUsageEventServiceBrokerWithDefaults() *ServiceUsageEventServiceBroker` + +NewServiceUsageEventServiceBrokerWithDefaults instantiates a new ServiceUsageEventServiceBroker object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *ServiceUsageEventServiceBroker) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceUsageEventServiceBroker) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceUsageEventServiceBroker) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceUsageEventServiceBroker) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceUsageEventServiceBroker) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceUsageEventServiceBroker) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceUsageEventServiceBroker) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceUsageEventServiceBroker) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServiceUsageEventServiceInstance.md b/docs/ServiceUsageEventServiceInstance.md new file mode 100644 index 0000000..934a999 --- /dev/null +++ b/docs/ServiceUsageEventServiceInstance.md @@ -0,0 +1,108 @@ +# ServiceUsageEventServiceInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceUsageEventServiceInstance + +`func NewServiceUsageEventServiceInstance() *ServiceUsageEventServiceInstance` + +NewServiceUsageEventServiceInstance instantiates a new ServiceUsageEventServiceInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceUsageEventServiceInstanceWithDefaults + +`func NewServiceUsageEventServiceInstanceWithDefaults() *ServiceUsageEventServiceInstance` + +NewServiceUsageEventServiceInstanceWithDefaults instantiates a new ServiceUsageEventServiceInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *ServiceUsageEventServiceInstance) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *ServiceUsageEventServiceInstance) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *ServiceUsageEventServiceInstance) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *ServiceUsageEventServiceInstance) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceUsageEventServiceInstance) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceUsageEventServiceInstance) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceUsageEventServiceInstance) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceUsageEventServiceInstance) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *ServiceUsageEventServiceInstance) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServiceUsageEventServiceInstance) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServiceUsageEventServiceInstance) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServiceUsageEventServiceInstance) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServicesQuota.md b/docs/ServicesQuota.md new file mode 100644 index 0000000..b5a4ec6 --- /dev/null +++ b/docs/ServicesQuota.md @@ -0,0 +1,128 @@ +# ServicesQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PaidServicesAllowed** | Pointer to **bool** | Specifies whether instances of paid service plans can be created | [optional] +**TotalServiceInstances** | Pointer to **NullableInt32** | Total number of service instances allowed in an organization | [optional] +**TotalServiceKeys** | Pointer to **NullableInt32** | Total number of service keys allowed in an organization | [optional] + +## Methods + +### NewServicesQuota + +`func NewServicesQuota() *ServicesQuota` + +NewServicesQuota instantiates a new ServicesQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServicesQuotaWithDefaults + +`func NewServicesQuotaWithDefaults() *ServicesQuota` + +NewServicesQuotaWithDefaults instantiates a new ServicesQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPaidServicesAllowed + +`func (o *ServicesQuota) GetPaidServicesAllowed() bool` + +GetPaidServicesAllowed returns the PaidServicesAllowed field if non-nil, zero value otherwise. + +### GetPaidServicesAllowedOk + +`func (o *ServicesQuota) GetPaidServicesAllowedOk() (*bool, bool)` + +GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaidServicesAllowed + +`func (o *ServicesQuota) SetPaidServicesAllowed(v bool)` + +SetPaidServicesAllowed sets PaidServicesAllowed field to given value. + +### HasPaidServicesAllowed + +`func (o *ServicesQuota) HasPaidServicesAllowed() bool` + +HasPaidServicesAllowed returns a boolean if a field has been set. + +### GetTotalServiceInstances + +`func (o *ServicesQuota) GetTotalServiceInstances() int32` + +GetTotalServiceInstances returns the TotalServiceInstances field if non-nil, zero value otherwise. + +### GetTotalServiceInstancesOk + +`func (o *ServicesQuota) GetTotalServiceInstancesOk() (*int32, bool)` + +GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceInstances + +`func (o *ServicesQuota) SetTotalServiceInstances(v int32)` + +SetTotalServiceInstances sets TotalServiceInstances field to given value. + +### HasTotalServiceInstances + +`func (o *ServicesQuota) HasTotalServiceInstances() bool` + +HasTotalServiceInstances returns a boolean if a field has been set. + +### SetTotalServiceInstancesNil + +`func (o *ServicesQuota) SetTotalServiceInstancesNil(b bool)` + + SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil + +### UnsetTotalServiceInstances +`func (o *ServicesQuota) UnsetTotalServiceInstances()` + +UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +### GetTotalServiceKeys + +`func (o *ServicesQuota) GetTotalServiceKeys() int32` + +GetTotalServiceKeys returns the TotalServiceKeys field if non-nil, zero value otherwise. + +### GetTotalServiceKeysOk + +`func (o *ServicesQuota) GetTotalServiceKeysOk() (*int32, bool)` + +GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceKeys + +`func (o *ServicesQuota) SetTotalServiceKeys(v int32)` + +SetTotalServiceKeys sets TotalServiceKeys field to given value. + +### HasTotalServiceKeys + +`func (o *ServicesQuota) HasTotalServiceKeys() bool` + +HasTotalServiceKeys returns a boolean if a field has been set. + +### SetTotalServiceKeysNil + +`func (o *ServicesQuota) SetTotalServiceKeysNil(b bool)` + + SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil + +### UnsetTotalServiceKeys +`func (o *ServicesQuota) UnsetTotalServiceKeys()` + +UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Sidecar.md b/docs/Sidecar.md new file mode 100644 index 0000000..bccdb26 --- /dev/null +++ b/docs/Sidecar.md @@ -0,0 +1,264 @@ +# Sidecar + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**MemoryInMb** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**ProcessTypes** | Pointer to **[]string** | | [optional] +**Relationships** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseRelationships**](V3AppsGuidDropletsCurrentGet200ResponseRelationships.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSidecar + +`func NewSidecar() *Sidecar` + +NewSidecar instantiates a new Sidecar object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSidecarWithDefaults + +`func NewSidecarWithDefaults() *Sidecar` + +NewSidecarWithDefaults instantiates a new Sidecar object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *Sidecar) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *Sidecar) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *Sidecar) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *Sidecar) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Sidecar) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Sidecar) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Sidecar) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Sidecar) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *Sidecar) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Sidecar) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Sidecar) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Sidecar) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *Sidecar) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *Sidecar) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *Sidecar) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *Sidecar) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetName + +`func (o *Sidecar) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Sidecar) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Sidecar) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Sidecar) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOrigin + +`func (o *Sidecar) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *Sidecar) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *Sidecar) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *Sidecar) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetProcessTypes + +`func (o *Sidecar) GetProcessTypes() []string` + +GetProcessTypes returns the ProcessTypes field if non-nil, zero value otherwise. + +### GetProcessTypesOk + +`func (o *Sidecar) GetProcessTypesOk() (*[]string, bool)` + +GetProcessTypesOk returns a tuple with the ProcessTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessTypes + +`func (o *Sidecar) SetProcessTypes(v []string)` + +SetProcessTypes sets ProcessTypes field to given value. + +### HasProcessTypes + +`func (o *Sidecar) HasProcessTypes() bool` + +HasProcessTypes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Sidecar) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Sidecar) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Sidecar) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Sidecar) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Sidecar) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Sidecar) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Sidecar) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Sidecar) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Space.md b/docs/Space.md new file mode 100644 index 0000000..b132236 --- /dev/null +++ b/docs/Space.md @@ -0,0 +1,212 @@ +# Space + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**SpaceLinks**](SpaceLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**SpaceRelationships**](SpaceRelationships.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSpace + +`func NewSpace() *Space` + +NewSpace instantiates a new Space object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceWithDefaults + +`func NewSpaceWithDefaults() *Space` + +NewSpaceWithDefaults instantiates a new Space object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Space) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Space) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Space) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Space) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *Space) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Space) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Space) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Space) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Space) GetLinks() SpaceLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Space) GetLinksOk() (*SpaceLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Space) SetLinks(v SpaceLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Space) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Space) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Space) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Space) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Space) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *Space) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Space) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Space) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Space) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Space) GetRelationships() SpaceRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Space) GetRelationshipsOk() (*SpaceRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Space) SetRelationships(v SpaceRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Space) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Space) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Space) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Space) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Space) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceFeature.md b/docs/SpaceFeature.md new file mode 100644 index 0000000..691eab8 --- /dev/null +++ b/docs/SpaceFeature.md @@ -0,0 +1,108 @@ +# SpaceFeature + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSpaceFeature + +`func NewSpaceFeature() *SpaceFeature` + +NewSpaceFeature instantiates a new SpaceFeature object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceFeatureWithDefaults + +`func NewSpaceFeatureWithDefaults() *SpaceFeature` + +NewSpaceFeatureWithDefaults instantiates a new SpaceFeature object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *SpaceFeature) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SpaceFeature) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SpaceFeature) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SpaceFeature) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *SpaceFeature) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SpaceFeature) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SpaceFeature) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SpaceFeature) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetName + +`func (o *SpaceFeature) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SpaceFeature) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SpaceFeature) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SpaceFeature) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceLinks.md b/docs/SpaceLinks.md new file mode 100644 index 0000000..4e7fed9 --- /dev/null +++ b/docs/SpaceLinks.md @@ -0,0 +1,134 @@ +# SpaceLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApplyManifest** | Pointer to [**DropletLinksAssignCurrentDroplet**](DropletLinksAssignCurrentDroplet.md) | | [optional] +**Features** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Organization** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewSpaceLinks + +`func NewSpaceLinks() *SpaceLinks` + +NewSpaceLinks instantiates a new SpaceLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceLinksWithDefaults + +`func NewSpaceLinksWithDefaults() *SpaceLinks` + +NewSpaceLinksWithDefaults instantiates a new SpaceLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApplyManifest + +`func (o *SpaceLinks) GetApplyManifest() DropletLinksAssignCurrentDroplet` + +GetApplyManifest returns the ApplyManifest field if non-nil, zero value otherwise. + +### GetApplyManifestOk + +`func (o *SpaceLinks) GetApplyManifestOk() (*DropletLinksAssignCurrentDroplet, bool)` + +GetApplyManifestOk returns a tuple with the ApplyManifest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyManifest + +`func (o *SpaceLinks) SetApplyManifest(v DropletLinksAssignCurrentDroplet)` + +SetApplyManifest sets ApplyManifest field to given value. + +### HasApplyManifest + +`func (o *SpaceLinks) HasApplyManifest() bool` + +HasApplyManifest returns a boolean if a field has been set. + +### GetFeatures + +`func (o *SpaceLinks) GetFeatures() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *SpaceLinks) GetFeaturesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatures + +`func (o *SpaceLinks) SetFeatures(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *SpaceLinks) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + +### GetOrganization + +`func (o *SpaceLinks) GetOrganization() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *SpaceLinks) GetOrganizationOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *SpaceLinks) SetOrganization(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *SpaceLinks) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSelf + +`func (o *SpaceLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *SpaceLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *SpaceLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *SpaceLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceQuota.md b/docs/SpaceQuota.md new file mode 100644 index 0000000..ff8e59b --- /dev/null +++ b/docs/SpaceQuota.md @@ -0,0 +1,264 @@ +# SpaceQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**V3SpaceQuotasPostRequestApps**](V3SpaceQuotasPostRequestApps.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**SpaceQuotaLinks**](SpaceQuotaLinks.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**SpaceQuotaRelationships**](SpaceQuotaRelationships.md) | | [optional] +**Routes** | Pointer to [**V3SpaceQuotasPostRequestRoutes**](V3SpaceQuotasPostRequestRoutes.md) | | [optional] +**Services** | Pointer to [**V3SpaceQuotasPostRequestServices**](V3SpaceQuotasPostRequestServices.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSpaceQuota + +`func NewSpaceQuota() *SpaceQuota` + +NewSpaceQuota instantiates a new SpaceQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceQuotaWithDefaults + +`func NewSpaceQuotaWithDefaults() *SpaceQuota` + +NewSpaceQuotaWithDefaults instantiates a new SpaceQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *SpaceQuota) GetApps() V3SpaceQuotasPostRequestApps` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *SpaceQuota) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *SpaceQuota) SetApps(v V3SpaceQuotasPostRequestApps)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *SpaceQuota) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SpaceQuota) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SpaceQuota) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SpaceQuota) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SpaceQuota) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *SpaceQuota) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *SpaceQuota) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *SpaceQuota) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *SpaceQuota) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *SpaceQuota) GetLinks() SpaceQuotaLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *SpaceQuota) GetLinksOk() (*SpaceQuotaLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *SpaceQuota) SetLinks(v SpaceQuotaLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *SpaceQuota) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *SpaceQuota) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SpaceQuota) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SpaceQuota) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SpaceQuota) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *SpaceQuota) GetRelationships() SpaceQuotaRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *SpaceQuota) GetRelationshipsOk() (*SpaceQuotaRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *SpaceQuota) SetRelationships(v SpaceQuotaRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *SpaceQuota) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetRoutes + +`func (o *SpaceQuota) GetRoutes() V3SpaceQuotasPostRequestRoutes` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *SpaceQuota) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *SpaceQuota) SetRoutes(v V3SpaceQuotasPostRequestRoutes)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *SpaceQuota) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *SpaceQuota) GetServices() V3SpaceQuotasPostRequestServices` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *SpaceQuota) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *SpaceQuota) SetServices(v V3SpaceQuotasPostRequestServices)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *SpaceQuota) HasServices() bool` + +HasServices returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SpaceQuota) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SpaceQuota) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SpaceQuota) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SpaceQuota) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceQuotaLinks.md b/docs/SpaceQuotaLinks.md new file mode 100644 index 0000000..dc7b0b4 --- /dev/null +++ b/docs/SpaceQuotaLinks.md @@ -0,0 +1,82 @@ +# SpaceQuotaLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to **string** | | [optional] +**Self** | Pointer to **string** | | [optional] + +## Methods + +### NewSpaceQuotaLinks + +`func NewSpaceQuotaLinks() *SpaceQuotaLinks` + +NewSpaceQuotaLinks instantiates a new SpaceQuotaLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceQuotaLinksWithDefaults + +`func NewSpaceQuotaLinksWithDefaults() *SpaceQuotaLinks` + +NewSpaceQuotaLinksWithDefaults instantiates a new SpaceQuotaLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *SpaceQuotaLinks) GetOrganization() string` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *SpaceQuotaLinks) GetOrganizationOk() (*string, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *SpaceQuotaLinks) SetOrganization(v string)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *SpaceQuotaLinks) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSelf + +`func (o *SpaceQuotaLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *SpaceQuotaLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *SpaceQuotaLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *SpaceQuotaLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceQuotaRelationships.md b/docs/SpaceQuotaRelationships.md new file mode 100644 index 0000000..6cc1a4b --- /dev/null +++ b/docs/SpaceQuotaRelationships.md @@ -0,0 +1,82 @@ +# SpaceQuotaRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**Spaces** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest**](V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md) | | [optional] + +## Methods + +### NewSpaceQuotaRelationships + +`func NewSpaceQuotaRelationships() *SpaceQuotaRelationships` + +NewSpaceQuotaRelationships instantiates a new SpaceQuotaRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceQuotaRelationshipsWithDefaults + +`func NewSpaceQuotaRelationshipsWithDefaults() *SpaceQuotaRelationships` + +NewSpaceQuotaRelationshipsWithDefaults instantiates a new SpaceQuotaRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *SpaceQuotaRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *SpaceQuotaRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *SpaceQuotaRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *SpaceQuotaRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSpaces + +`func (o *SpaceQuotaRelationships) GetSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest` + +GetSpaces returns the Spaces field if non-nil, zero value otherwise. + +### GetSpacesOk + +`func (o *SpaceQuotaRelationships) GetSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool)` + +GetSpacesOk returns a tuple with the Spaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaces + +`func (o *SpaceQuotaRelationships) SetSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest)` + +SetSpaces sets Spaces field to given value. + +### HasSpaces + +`func (o *SpaceQuotaRelationships) HasSpaces() bool` + +HasSpaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceRelationships.md b/docs/SpaceRelationships.md new file mode 100644 index 0000000..258343a --- /dev/null +++ b/docs/SpaceRelationships.md @@ -0,0 +1,92 @@ +# SpaceRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**ToOneRelationship**](ToOneRelationship.md) | | [optional] +**Quota** | Pointer to [**NullableSpaceRelationshipsQuota**](SpaceRelationshipsQuota.md) | | [optional] + +## Methods + +### NewSpaceRelationships + +`func NewSpaceRelationships() *SpaceRelationships` + +NewSpaceRelationships instantiates a new SpaceRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceRelationshipsWithDefaults + +`func NewSpaceRelationshipsWithDefaults() *SpaceRelationships` + +NewSpaceRelationshipsWithDefaults instantiates a new SpaceRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *SpaceRelationships) GetOrganization() ToOneRelationship` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *SpaceRelationships) GetOrganizationOk() (*ToOneRelationship, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *SpaceRelationships) SetOrganization(v ToOneRelationship)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *SpaceRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetQuota + +`func (o *SpaceRelationships) GetQuota() SpaceRelationshipsQuota` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *SpaceRelationships) GetQuotaOk() (*SpaceRelationshipsQuota, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *SpaceRelationships) SetQuota(v SpaceRelationshipsQuota)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *SpaceRelationships) HasQuota() bool` + +HasQuota returns a boolean if a field has been set. + +### SetQuotaNil + +`func (o *SpaceRelationships) SetQuotaNil(b bool)` + + SetQuotaNil sets the value for Quota to be an explicit nil + +### UnsetQuota +`func (o *SpaceRelationships) UnsetQuota()` + +UnsetQuota ensures that no value is present for Quota, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SpaceRelationshipsQuota.md b/docs/SpaceRelationshipsQuota.md new file mode 100644 index 0000000..5672de5 --- /dev/null +++ b/docs/SpaceRelationshipsQuota.md @@ -0,0 +1,66 @@ +# SpaceRelationshipsQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSpaceRelationshipsQuota + +`func NewSpaceRelationshipsQuota() *SpaceRelationshipsQuota` + +NewSpaceRelationshipsQuota instantiates a new SpaceRelationshipsQuota object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSpaceRelationshipsQuotaWithDefaults + +`func NewSpaceRelationshipsQuotaWithDefaults() *SpaceRelationshipsQuota` + +NewSpaceRelationshipsQuotaWithDefaults instantiates a new SpaceRelationshipsQuota object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *SpaceRelationshipsQuota) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SpaceRelationshipsQuota) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *SpaceRelationshipsQuota) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *SpaceRelationshipsQuota) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *SpaceRelationshipsQuota) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *SpaceRelationshipsQuota) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Stack.md b/docs/Stack.md new file mode 100644 index 0000000..8345781 --- /dev/null +++ b/docs/Stack.md @@ -0,0 +1,290 @@ +# Stack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildRootfsImage** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Default** | Pointer to **bool** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**ServiceUsageEventLinks**](ServiceUsageEventLinks.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**RunRootfsImage** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewStack + +`func NewStack() *Stack` + +NewStack instantiates a new Stack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStackWithDefaults + +`func NewStackWithDefaults() *Stack` + +NewStackWithDefaults instantiates a new Stack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildRootfsImage + +`func (o *Stack) GetBuildRootfsImage() string` + +GetBuildRootfsImage returns the BuildRootfsImage field if non-nil, zero value otherwise. + +### GetBuildRootfsImageOk + +`func (o *Stack) GetBuildRootfsImageOk() (*string, bool)` + +GetBuildRootfsImageOk returns a tuple with the BuildRootfsImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildRootfsImage + +`func (o *Stack) SetBuildRootfsImage(v string)` + +SetBuildRootfsImage sets BuildRootfsImage field to given value. + +### HasBuildRootfsImage + +`func (o *Stack) HasBuildRootfsImage() bool` + +HasBuildRootfsImage returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Stack) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Stack) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Stack) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Stack) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDefault + +`func (o *Stack) GetDefault() bool` + +GetDefault returns the Default field if non-nil, zero value otherwise. + +### GetDefaultOk + +`func (o *Stack) GetDefaultOk() (*bool, bool)` + +GetDefaultOk returns a tuple with the Default field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefault + +`func (o *Stack) SetDefault(v bool)` + +SetDefault sets Default field to given value. + +### HasDefault + +`func (o *Stack) HasDefault() bool` + +HasDefault returns a boolean if a field has been set. + +### GetDescription + +`func (o *Stack) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Stack) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Stack) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Stack) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGuid + +`func (o *Stack) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Stack) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Stack) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Stack) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Stack) GetLinks() ServiceUsageEventLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Stack) GetLinksOk() (*ServiceUsageEventLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Stack) SetLinks(v ServiceUsageEventLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Stack) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Stack) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Stack) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Stack) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Stack) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *Stack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Stack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Stack) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Stack) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRunRootfsImage + +`func (o *Stack) GetRunRootfsImage() string` + +GetRunRootfsImage returns the RunRootfsImage field if non-nil, zero value otherwise. + +### GetRunRootfsImageOk + +`func (o *Stack) GetRunRootfsImageOk() (*string, bool)` + +GetRunRootfsImageOk returns a tuple with the RunRootfsImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunRootfsImage + +`func (o *Stack) SetRunRootfsImage(v string)` + +SetRunRootfsImage sets RunRootfsImage field to given value. + +### HasRunRootfsImage + +`func (o *Stack) HasRunRootfsImage() bool` + +HasRunRootfsImage returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Stack) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Stack) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Stack) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Stack) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Task.md b/docs/Task.md new file mode 100644 index 0000000..e0b6759 --- /dev/null +++ b/docs/Task.md @@ -0,0 +1,420 @@ +# Task + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**DiskInMb** | Pointer to **int32** | | [optional] +**DropletGuid** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Links** | Pointer to [**TaskLinks**](TaskLinks.md) | | [optional] +**LogRateLimitInBytesPerSecond** | Pointer to **int32** | | [optional] +**MemoryInMb** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseRelationships**](V3AppsGuidDropletsCurrentGet200ResponseRelationships.md) | | [optional] +**Result** | Pointer to [**TaskResult**](TaskResult.md) | | [optional] +**SequenceId** | Pointer to **int32** | | [optional] +**State** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewTask + +`func NewTask() *Task` + +NewTask instantiates a new Task object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTaskWithDefaults + +`func NewTaskWithDefaults() *Task` + +NewTaskWithDefaults instantiates a new Task object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *Task) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *Task) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *Task) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *Task) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Task) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Task) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Task) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Task) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDiskInMb + +`func (o *Task) GetDiskInMb() int32` + +GetDiskInMb returns the DiskInMb field if non-nil, zero value otherwise. + +### GetDiskInMbOk + +`func (o *Task) GetDiskInMbOk() (*int32, bool)` + +GetDiskInMbOk returns a tuple with the DiskInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskInMb + +`func (o *Task) SetDiskInMb(v int32)` + +SetDiskInMb sets DiskInMb field to given value. + +### HasDiskInMb + +`func (o *Task) HasDiskInMb() bool` + +HasDiskInMb returns a boolean if a field has been set. + +### GetDropletGuid + +`func (o *Task) GetDropletGuid() string` + +GetDropletGuid returns the DropletGuid field if non-nil, zero value otherwise. + +### GetDropletGuidOk + +`func (o *Task) GetDropletGuidOk() (*string, bool)` + +GetDropletGuidOk returns a tuple with the DropletGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDropletGuid + +`func (o *Task) SetDropletGuid(v string)` + +SetDropletGuid sets DropletGuid field to given value. + +### HasDropletGuid + +`func (o *Task) HasDropletGuid() bool` + +HasDropletGuid returns a boolean if a field has been set. + +### GetGuid + +`func (o *Task) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *Task) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *Task) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *Task) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *Task) GetLinks() TaskLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *Task) GetLinksOk() (*TaskLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *Task) SetLinks(v TaskLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *Task) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetLogRateLimitInBytesPerSecond + +`func (o *Task) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *Task) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *Task) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *Task) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *Task) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *Task) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *Task) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *Task) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Task) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Task) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Task) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Task) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *Task) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Task) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Task) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Task) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *Task) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *Task) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *Task) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *Task) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetResult + +`func (o *Task) GetResult() TaskResult` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *Task) GetResultOk() (*TaskResult, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *Task) SetResult(v TaskResult)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *Task) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetSequenceId + +`func (o *Task) GetSequenceId() int32` + +GetSequenceId returns the SequenceId field if non-nil, zero value otherwise. + +### GetSequenceIdOk + +`func (o *Task) GetSequenceIdOk() (*int32, bool)` + +GetSequenceIdOk returns a tuple with the SequenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSequenceId + +`func (o *Task) SetSequenceId(v int32)` + +SetSequenceId sets SequenceId field to given value. + +### HasSequenceId + +`func (o *Task) HasSequenceId() bool` + +HasSequenceId returns a boolean if a field has been set. + +### GetState + +`func (o *Task) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *Task) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *Task) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *Task) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Task) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Task) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Task) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Task) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TaskLinks.md b/docs/TaskLinks.md new file mode 100644 index 0000000..c951dbb --- /dev/null +++ b/docs/TaskLinks.md @@ -0,0 +1,134 @@ +# TaskLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to **string** | | [optional] +**Cancel** | Pointer to **string** | | [optional] +**Droplet** | Pointer to **string** | | [optional] +**Self** | Pointer to **string** | | [optional] + +## Methods + +### NewTaskLinks + +`func NewTaskLinks() *TaskLinks` + +NewTaskLinks instantiates a new TaskLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTaskLinksWithDefaults + +`func NewTaskLinksWithDefaults() *TaskLinks` + +NewTaskLinksWithDefaults instantiates a new TaskLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *TaskLinks) GetApp() string` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *TaskLinks) GetAppOk() (*string, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *TaskLinks) SetApp(v string)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *TaskLinks) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetCancel + +`func (o *TaskLinks) GetCancel() string` + +GetCancel returns the Cancel field if non-nil, zero value otherwise. + +### GetCancelOk + +`func (o *TaskLinks) GetCancelOk() (*string, bool)` + +GetCancelOk returns a tuple with the Cancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancel + +`func (o *TaskLinks) SetCancel(v string)` + +SetCancel sets Cancel field to given value. + +### HasCancel + +`func (o *TaskLinks) HasCancel() bool` + +HasCancel returns a boolean if a field has been set. + +### GetDroplet + +`func (o *TaskLinks) GetDroplet() string` + +GetDroplet returns the Droplet field if non-nil, zero value otherwise. + +### GetDropletOk + +`func (o *TaskLinks) GetDropletOk() (*string, bool)` + +GetDropletOk returns a tuple with the Droplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDroplet + +`func (o *TaskLinks) SetDroplet(v string)` + +SetDroplet sets Droplet field to given value. + +### HasDroplet + +`func (o *TaskLinks) HasDroplet() bool` + +HasDroplet returns a boolean if a field has been set. + +### GetSelf + +`func (o *TaskLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *TaskLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *TaskLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *TaskLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TaskResult.md b/docs/TaskResult.md new file mode 100644 index 0000000..923c699 --- /dev/null +++ b/docs/TaskResult.md @@ -0,0 +1,56 @@ +# TaskResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailureReason** | Pointer to **string** | | [optional] + +## Methods + +### NewTaskResult + +`func NewTaskResult() *TaskResult` + +NewTaskResult instantiates a new TaskResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTaskResultWithDefaults + +`func NewTaskResultWithDefaults() *TaskResult` + +NewTaskResultWithDefaults instantiates a new TaskResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailureReason + +`func (o *TaskResult) GetFailureReason() string` + +GetFailureReason returns the FailureReason field if non-nil, zero value otherwise. + +### GetFailureReasonOk + +`func (o *TaskResult) GetFailureReasonOk() (*string, bool)` + +GetFailureReasonOk returns a tuple with the FailureReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureReason + +`func (o *TaskResult) SetFailureReason(v string)` + +SetFailureReason sets FailureReason field to given value. + +### HasFailureReason + +`func (o *TaskResult) HasFailureReason() bool` + +HasFailureReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ToOneRelationship.md b/docs/ToOneRelationship.md new file mode 100644 index 0000000..44e3151 --- /dev/null +++ b/docs/ToOneRelationship.md @@ -0,0 +1,56 @@ +# ToOneRelationship + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] + +## Methods + +### NewToOneRelationship + +`func NewToOneRelationship() *ToOneRelationship` + +NewToOneRelationship instantiates a new ToOneRelationship object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewToOneRelationshipWithDefaults + +`func NewToOneRelationshipWithDefaults() *ToOneRelationship` + +NewToOneRelationshipWithDefaults instantiates a new ToOneRelationship object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ToOneRelationship) GetData() V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ToOneRelationship) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ToOneRelationship) SetData(v V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ToOneRelationship) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateOrganizationQuotaRequest.md b/docs/UpdateOrganizationQuotaRequest.md new file mode 100644 index 0000000..695441b --- /dev/null +++ b/docs/UpdateOrganizationQuotaRequest.md @@ -0,0 +1,160 @@ +# UpdateOrganizationQuotaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**AppsQuota**](AppsQuota.md) | | [optional] +**Domains** | Pointer to [**DomainsQuota**](DomainsQuota.md) | | [optional] +**Name** | Pointer to **string** | Name of the quota | [optional] +**Routes** | Pointer to [**RoutesQuota**](RoutesQuota.md) | | [optional] +**Services** | Pointer to [**ServicesQuota**](ServicesQuota.md) | | [optional] + +## Methods + +### NewUpdateOrganizationQuotaRequest + +`func NewUpdateOrganizationQuotaRequest() *UpdateOrganizationQuotaRequest` + +NewUpdateOrganizationQuotaRequest instantiates a new UpdateOrganizationQuotaRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateOrganizationQuotaRequestWithDefaults + +`func NewUpdateOrganizationQuotaRequestWithDefaults() *UpdateOrganizationQuotaRequest` + +NewUpdateOrganizationQuotaRequestWithDefaults instantiates a new UpdateOrganizationQuotaRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *UpdateOrganizationQuotaRequest) GetApps() AppsQuota` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *UpdateOrganizationQuotaRequest) GetAppsOk() (*AppsQuota, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *UpdateOrganizationQuotaRequest) SetApps(v AppsQuota)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *UpdateOrganizationQuotaRequest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetDomains + +`func (o *UpdateOrganizationQuotaRequest) GetDomains() DomainsQuota` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *UpdateOrganizationQuotaRequest) GetDomainsOk() (*DomainsQuota, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *UpdateOrganizationQuotaRequest) SetDomains(v DomainsQuota)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *UpdateOrganizationQuotaRequest) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetName + +`func (o *UpdateOrganizationQuotaRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateOrganizationQuotaRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateOrganizationQuotaRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateOrganizationQuotaRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRoutes + +`func (o *UpdateOrganizationQuotaRequest) GetRoutes() RoutesQuota` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *UpdateOrganizationQuotaRequest) GetRoutesOk() (*RoutesQuota, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *UpdateOrganizationQuotaRequest) SetRoutes(v RoutesQuota)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *UpdateOrganizationQuotaRequest) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *UpdateOrganizationQuotaRequest) GetServices() ServicesQuota` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *UpdateOrganizationQuotaRequest) GetServicesOk() (*ServicesQuota, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *UpdateOrganizationQuotaRequest) SetServices(v ServicesQuota)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *UpdateOrganizationQuotaRequest) HasServices() bool` + +HasServices returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateOrganizationRequest.md b/docs/UpdateOrganizationRequest.md new file mode 100644 index 0000000..8293bf0 --- /dev/null +++ b/docs/UpdateOrganizationRequest.md @@ -0,0 +1,108 @@ +# UpdateOrganizationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Suspended** | Pointer to **bool** | | [optional] + +## Methods + +### NewUpdateOrganizationRequest + +`func NewUpdateOrganizationRequest() *UpdateOrganizationRequest` + +NewUpdateOrganizationRequest instantiates a new UpdateOrganizationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateOrganizationRequestWithDefaults + +`func NewUpdateOrganizationRequestWithDefaults() *UpdateOrganizationRequest` + +NewUpdateOrganizationRequestWithDefaults instantiates a new UpdateOrganizationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *UpdateOrganizationRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *UpdateOrganizationRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *UpdateOrganizationRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *UpdateOrganizationRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *UpdateOrganizationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateOrganizationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateOrganizationRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateOrganizationRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSuspended + +`func (o *UpdateOrganizationRequest) GetSuspended() bool` + +GetSuspended returns the Suspended field if non-nil, zero value otherwise. + +### GetSuspendedOk + +`func (o *UpdateOrganizationRequest) GetSuspendedOk() (*bool, bool)` + +GetSuspendedOk returns a tuple with the Suspended field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspended + +`func (o *UpdateOrganizationRequest) SetSuspended(v bool)` + +SetSuspended sets Suspended field to given value. + +### HasSuspended + +`func (o *UpdateOrganizationRequest) HasSuspended() bool` + +HasSuspended returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsageSummary.md b/docs/UsageSummary.md new file mode 100644 index 0000000..4e92dca --- /dev/null +++ b/docs/UsageSummary.md @@ -0,0 +1,82 @@ +# UsageSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks**](V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md) | | [optional] +**UsageSummary** | Pointer to | | [optional] + +## Methods + +### NewUsageSummary + +`func NewUsageSummary() *UsageSummary` + +NewUsageSummary instantiates a new UsageSummary object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUsageSummaryWithDefaults + +`func NewUsageSummaryWithDefaults() *UsageSummary` + +NewUsageSummaryWithDefaults instantiates a new UsageSummary object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *UsageSummary) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *UsageSummary) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *UsageSummary) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *UsageSummary) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetUsageSummary + +`func (o *UsageSummary) GetUsageSummary() []map[string]interface{}` + +GetUsageSummary returns the UsageSummary field if non-nil, zero value otherwise. + +### GetUsageSummaryOk + +`func (o *UsageSummary) GetUsageSummaryOk() (*[]map[string]interface{}, bool)` + +GetUsageSummaryOk returns a tuple with the UsageSummary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageSummary + +`func (o *UsageSummary) SetUsageSummary(v []map[string]interface{})` + +SetUsageSummary sets UsageSummary field to given value. + +### HasUsageSummary + +`func (o *UsageSummary) HasUsageSummary() bool` + +HasUsageSummary returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/User.md b/docs/User.md new file mode 100644 index 0000000..9a5a0e4 --- /dev/null +++ b/docs/User.md @@ -0,0 +1,258 @@ +# User + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | The time with zone when the object was created | [optional] +**Guid** | Pointer to **string** | Unique identifier for the user | [optional] +**Links** | Pointer to [**UserLinks**](UserLinks.md) | | [optional] +**Metadata** | Pointer to [**V3UsersPostRequestMetadata**](V3UsersPostRequestMetadata.md) | | [optional] +**Origin** | Pointer to **NullableString** | The identity provider for the UAA user; will be null for UAA clients | [optional] +**PresentationName** | Pointer to **string** | The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID | [optional] +**UpdatedAt** | Pointer to **time.Time** | The time with zone when the object was last updated | [optional] +**Username** | Pointer to **NullableString** | The name registered in UAA; will be null for UAA clients and non-UAA users | [optional] + +## Methods + +### NewUser + +`func NewUser() *User` + +NewUser instantiates a new User object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserWithDefaults + +`func NewUserWithDefaults() *User` + +NewUserWithDefaults instantiates a new User object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *User) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *User) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *User) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *User) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *User) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *User) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *User) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *User) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLinks + +`func (o *User) GetLinks() UserLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *User) GetLinksOk() (*UserLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *User) SetLinks(v UserLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *User) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *User) GetMetadata() V3UsersPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *User) GetMetadataOk() (*V3UsersPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *User) SetMetadata(v V3UsersPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *User) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetOrigin + +`func (o *User) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *User) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *User) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *User) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### SetOriginNil + +`func (o *User) SetOriginNil(b bool)` + + SetOriginNil sets the value for Origin to be an explicit nil + +### UnsetOrigin +`func (o *User) UnsetOrigin()` + +UnsetOrigin ensures that no value is present for Origin, not even an explicit nil +### GetPresentationName + +`func (o *User) GetPresentationName() string` + +GetPresentationName returns the PresentationName field if non-nil, zero value otherwise. + +### GetPresentationNameOk + +`func (o *User) GetPresentationNameOk() (*string, bool)` + +GetPresentationNameOk returns a tuple with the PresentationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPresentationName + +`func (o *User) SetPresentationName(v string)` + +SetPresentationName sets PresentationName field to given value. + +### HasPresentationName + +`func (o *User) HasPresentationName() bool` + +HasPresentationName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *User) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *User) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *User) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *User) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUsername + +`func (o *User) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *User) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *User) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *User) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *User) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *User) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserLinks.md b/docs/UserLinks.md new file mode 100644 index 0000000..691c544 --- /dev/null +++ b/docs/UserLinks.md @@ -0,0 +1,56 @@ +# UserLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**UserLinksSelf**](UserLinksSelf.md) | | [optional] + +## Methods + +### NewUserLinks + +`func NewUserLinks() *UserLinks` + +NewUserLinks instantiates a new UserLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserLinksWithDefaults + +`func NewUserLinksWithDefaults() *UserLinks` + +NewUserLinksWithDefaults instantiates a new UserLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *UserLinks) GetSelf() UserLinksSelf` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *UserLinks) GetSelfOk() (*UserLinksSelf, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *UserLinks) SetSelf(v UserLinksSelf)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *UserLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserLinksSelf.md b/docs/UserLinksSelf.md new file mode 100644 index 0000000..e0e98b2 --- /dev/null +++ b/docs/UserLinksSelf.md @@ -0,0 +1,56 @@ +# UserLinksSelf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewUserLinksSelf + +`func NewUserLinksSelf() *UserLinksSelf` + +NewUserLinksSelf instantiates a new UserLinksSelf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserLinksSelfWithDefaults + +`func NewUserLinksSelfWithDefaults() *UserLinksSelf` + +NewUserLinksSelfWithDefaults instantiates a new UserLinksSelf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *UserLinksSelf) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *UserLinksSelf) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *UserLinksSelf) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *UserLinksSelf) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserProvidedServiceInstanceUpdate.md b/docs/UserProvidedServiceInstanceUpdate.md new file mode 100644 index 0000000..05be969 --- /dev/null +++ b/docs/UserProvidedServiceInstanceUpdate.md @@ -0,0 +1,186 @@ +# UserProvidedServiceInstanceUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | Pointer to **map[string]interface{}** | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**RouteServiceUrl** | Pointer to **string** | | [optional] +**SyslogDrainUrl** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUserProvidedServiceInstanceUpdate + +`func NewUserProvidedServiceInstanceUpdate() *UserProvidedServiceInstanceUpdate` + +NewUserProvidedServiceInstanceUpdate instantiates a new UserProvidedServiceInstanceUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserProvidedServiceInstanceUpdateWithDefaults + +`func NewUserProvidedServiceInstanceUpdateWithDefaults() *UserProvidedServiceInstanceUpdate` + +NewUserProvidedServiceInstanceUpdateWithDefaults instantiates a new UserProvidedServiceInstanceUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *UserProvidedServiceInstanceUpdate) GetCredentials() map[string]interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *UserProvidedServiceInstanceUpdate) GetCredentialsOk() (*map[string]interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *UserProvidedServiceInstanceUpdate) SetCredentials(v map[string]interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *UserProvidedServiceInstanceUpdate) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetMetadata + +`func (o *UserProvidedServiceInstanceUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *UserProvidedServiceInstanceUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *UserProvidedServiceInstanceUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *UserProvidedServiceInstanceUpdate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *UserProvidedServiceInstanceUpdate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UserProvidedServiceInstanceUpdate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UserProvidedServiceInstanceUpdate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UserProvidedServiceInstanceUpdate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRouteServiceUrl + +`func (o *UserProvidedServiceInstanceUpdate) GetRouteServiceUrl() string` + +GetRouteServiceUrl returns the RouteServiceUrl field if non-nil, zero value otherwise. + +### GetRouteServiceUrlOk + +`func (o *UserProvidedServiceInstanceUpdate) GetRouteServiceUrlOk() (*string, bool)` + +GetRouteServiceUrlOk returns a tuple with the RouteServiceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouteServiceUrl + +`func (o *UserProvidedServiceInstanceUpdate) SetRouteServiceUrl(v string)` + +SetRouteServiceUrl sets RouteServiceUrl field to given value. + +### HasRouteServiceUrl + +`func (o *UserProvidedServiceInstanceUpdate) HasRouteServiceUrl() bool` + +HasRouteServiceUrl returns a boolean if a field has been set. + +### GetSyslogDrainUrl + +`func (o *UserProvidedServiceInstanceUpdate) GetSyslogDrainUrl() string` + +GetSyslogDrainUrl returns the SyslogDrainUrl field if non-nil, zero value otherwise. + +### GetSyslogDrainUrlOk + +`func (o *UserProvidedServiceInstanceUpdate) GetSyslogDrainUrlOk() (*string, bool)` + +GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyslogDrainUrl + +`func (o *UserProvidedServiceInstanceUpdate) SetSyslogDrainUrl(v string)` + +SetSyslogDrainUrl sets SyslogDrainUrl field to given value. + +### HasSyslogDrainUrl + +`func (o *UserProvidedServiceInstanceUpdate) HasSyslogDrainUrl() bool` + +HasSyslogDrainUrl returns a boolean if a field has been set. + +### GetTags + +`func (o *UserProvidedServiceInstanceUpdate) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *UserProvidedServiceInstanceUpdate) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *UserProvidedServiceInstanceUpdate) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *UserProvidedServiceInstanceUpdate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidActionsRestartPost200Response.md b/docs/V3AppsGuidActionsRestartPost200Response.md new file mode 100644 index 0000000..41c344f --- /dev/null +++ b/docs/V3AppsGuidActionsRestartPost200Response.md @@ -0,0 +1,238 @@ +# V3AppsGuidActionsRestartPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Lifecycle** | Pointer to [**V3AppsGuidActionsRestartPost200ResponseLifecycle**](V3AppsGuidActionsRestartPost200ResponseLifecycle.md) | | [optional] +**Links** | Pointer to [**map[string]Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Relationships** | Pointer to [**V3AppsGuidActionsRestartPost200ResponseRelationships**](V3AppsGuidActionsRestartPost200ResponseRelationships.md) | | [optional] +**State** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewV3AppsGuidActionsRestartPost200Response + +`func NewV3AppsGuidActionsRestartPost200Response() *V3AppsGuidActionsRestartPost200Response` + +NewV3AppsGuidActionsRestartPost200Response instantiates a new V3AppsGuidActionsRestartPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidActionsRestartPost200ResponseWithDefaults + +`func NewV3AppsGuidActionsRestartPost200ResponseWithDefaults() *V3AppsGuidActionsRestartPost200Response` + +NewV3AppsGuidActionsRestartPost200ResponseWithDefaults instantiates a new V3AppsGuidActionsRestartPost200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGuid + +`func (o *V3AppsGuidActionsRestartPost200Response) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3AppsGuidActionsRestartPost200Response) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3AppsGuidActionsRestartPost200Response) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetLifecycle + +`func (o *V3AppsGuidActionsRestartPost200Response) GetLifecycle() V3AppsGuidActionsRestartPost200ResponseLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetLifecycleOk() (*V3AppsGuidActionsRestartPost200ResponseLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *V3AppsGuidActionsRestartPost200Response) SetLifecycle(v V3AppsGuidActionsRestartPost200ResponseLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + +### HasLifecycle + +`func (o *V3AppsGuidActionsRestartPost200Response) HasLifecycle() bool` + +HasLifecycle returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3AppsGuidActionsRestartPost200Response) GetLinks() map[string]Get200ResponseLinksLogCache` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3AppsGuidActionsRestartPost200Response) SetLinks(v map[string]Get200ResponseLinksLogCache)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3AppsGuidActionsRestartPost200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidActionsRestartPost200Response) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidActionsRestartPost200Response) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidActionsRestartPost200Response) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3AppsGuidActionsRestartPost200Response) GetRelationships() V3AppsGuidActionsRestartPost200ResponseRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetRelationshipsOk() (*V3AppsGuidActionsRestartPost200ResponseRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3AppsGuidActionsRestartPost200Response) SetRelationships(v V3AppsGuidActionsRestartPost200ResponseRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3AppsGuidActionsRestartPost200Response) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetState + +`func (o *V3AppsGuidActionsRestartPost200Response) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *V3AppsGuidActionsRestartPost200Response) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *V3AppsGuidActionsRestartPost200Response) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *V3AppsGuidActionsRestartPost200Response) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *V3AppsGuidActionsRestartPost200Response) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidActionsRestartPost200ResponseLifecycle.md b/docs/V3AppsGuidActionsRestartPost200ResponseLifecycle.md new file mode 100644 index 0000000..f1e1c48 --- /dev/null +++ b/docs/V3AppsGuidActionsRestartPost200ResponseLifecycle.md @@ -0,0 +1,82 @@ +# V3AppsGuidActionsRestartPost200ResponseLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsGuidPatchRequestLifecycleData**](V3AppsGuidPatchRequestLifecycleData.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidActionsRestartPost200ResponseLifecycle + +`func NewV3AppsGuidActionsRestartPost200ResponseLifecycle() *V3AppsGuidActionsRestartPost200ResponseLifecycle` + +NewV3AppsGuidActionsRestartPost200ResponseLifecycle instantiates a new V3AppsGuidActionsRestartPost200ResponseLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidActionsRestartPost200ResponseLifecycleWithDefaults + +`func NewV3AppsGuidActionsRestartPost200ResponseLifecycleWithDefaults() *V3AppsGuidActionsRestartPost200ResponseLifecycle` + +NewV3AppsGuidActionsRestartPost200ResponseLifecycleWithDefaults instantiates a new V3AppsGuidActionsRestartPost200ResponseLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidActionsRestartPost200ResponseRelationships.md b/docs/V3AppsGuidActionsRestartPost200ResponseRelationships.md new file mode 100644 index 0000000..676699a --- /dev/null +++ b/docs/V3AppsGuidActionsRestartPost200ResponseRelationships.md @@ -0,0 +1,82 @@ +# V3AppsGuidActionsRestartPost200ResponseRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CurrentDroplet** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**Space** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewV3AppsGuidActionsRestartPost200ResponseRelationships + +`func NewV3AppsGuidActionsRestartPost200ResponseRelationships() *V3AppsGuidActionsRestartPost200ResponseRelationships` + +NewV3AppsGuidActionsRestartPost200ResponseRelationships instantiates a new V3AppsGuidActionsRestartPost200ResponseRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidActionsRestartPost200ResponseRelationshipsWithDefaults + +`func NewV3AppsGuidActionsRestartPost200ResponseRelationshipsWithDefaults() *V3AppsGuidActionsRestartPost200ResponseRelationships` + +NewV3AppsGuidActionsRestartPost200ResponseRelationshipsWithDefaults instantiates a new V3AppsGuidActionsRestartPost200ResponseRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrentDroplet + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetCurrentDroplet() V3AppsPostRequestRelationshipsSpace` + +GetCurrentDroplet returns the CurrentDroplet field if non-nil, zero value otherwise. + +### GetCurrentDropletOk + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetCurrentDropletOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetCurrentDropletOk returns a tuple with the CurrentDroplet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentDroplet + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) SetCurrentDroplet(v V3AppsPostRequestRelationshipsSpace)` + +SetCurrentDroplet sets CurrentDroplet field to given value. + +### HasCurrentDroplet + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) HasCurrentDroplet() bool` + +HasCurrentDroplet returns a boolean if a field has been set. + +### GetSpace + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200Response.md b/docs/V3AppsGuidDropletsCurrentGet200Response.md new file mode 100644 index 0000000..f301421 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200Response.md @@ -0,0 +1,440 @@ +# V3AppsGuidDropletsCurrentGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buildpacks** | Pointer to [**[]V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner**](V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md) | | [optional] +**Checksum** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseChecksum**](V3AppsGuidDropletsCurrentGet200ResponseChecksum.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Error** | Pointer to **NullableString** | | [optional] +**ExecutionMetadata** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**Image** | Pointer to **NullableString** | | [optional] +**Lifecycle** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseLifecycle**](V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md) | | [optional] +**Links** | Pointer to [**map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue**](V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**ProcessTypes** | Pointer to **map[string]string** | | [optional] +**Relationships** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseRelationships**](V3AppsGuidDropletsCurrentGet200ResponseRelationships.md) | | [optional] +**Stack** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200Response + +`func NewV3AppsGuidDropletsCurrentGet200Response() *V3AppsGuidDropletsCurrentGet200Response` + +NewV3AppsGuidDropletsCurrentGet200Response instantiates a new V3AppsGuidDropletsCurrentGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseWithDefaults() *V3AppsGuidDropletsCurrentGet200Response` + +NewV3AppsGuidDropletsCurrentGet200ResponseWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpacks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetBuildpacks() []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner` + +GetBuildpacks returns the Buildpacks field if non-nil, zero value otherwise. + +### GetBuildpacksOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetBuildpacksOk() (*[]V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner, bool)` + +GetBuildpacksOk returns a tuple with the Buildpacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpacks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetBuildpacks(v []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner)` + +SetBuildpacks sets Buildpacks field to given value. + +### HasBuildpacks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasBuildpacks() bool` + +HasBuildpacks returns a boolean if a field has been set. + +### GetChecksum + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetChecksum() V3AppsGuidDropletsCurrentGet200ResponseChecksum` + +GetChecksum returns the Checksum field if non-nil, zero value otherwise. + +### GetChecksumOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetChecksumOk() (*V3AppsGuidDropletsCurrentGet200ResponseChecksum, bool)` + +GetChecksumOk returns a tuple with the Checksum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksum + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetChecksum(v V3AppsGuidDropletsCurrentGet200ResponseChecksum)` + +SetChecksum sets Checksum field to given value. + +### HasChecksum + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasChecksum() bool` + +HasChecksum returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetError + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *V3AppsGuidDropletsCurrentGet200Response) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetExecutionMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetExecutionMetadata() string` + +GetExecutionMetadata returns the ExecutionMetadata field if non-nil, zero value otherwise. + +### GetExecutionMetadataOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetExecutionMetadataOk() (*string, bool)` + +GetExecutionMetadataOk returns a tuple with the ExecutionMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetExecutionMetadata(v string)` + +SetExecutionMetadata sets ExecutionMetadata field to given value. + +### HasExecutionMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasExecutionMetadata() bool` + +HasExecutionMetadata returns a boolean if a field has been set. + +### GetGuid + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetImage + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### SetImageNil + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetImageNil(b bool)` + + SetImageNil sets the value for Image to be an explicit nil + +### UnsetImage +`func (o *V3AppsGuidDropletsCurrentGet200Response) UnsetImage()` + +UnsetImage ensures that no value is present for Image, not even an explicit nil +### GetLifecycle + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetLifecycle() V3AppsGuidDropletsCurrentGet200ResponseLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetLifecycleOk() (*V3AppsGuidDropletsCurrentGet200ResponseLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetLifecycle(v V3AppsGuidDropletsCurrentGet200ResponseLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + +### HasLifecycle + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasLifecycle() bool` + +HasLifecycle returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetLinks() map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetLinksOk() (*map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetLinks(v map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProcessTypes + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetProcessTypes() map[string]string` + +GetProcessTypes returns the ProcessTypes field if non-nil, zero value otherwise. + +### GetProcessTypesOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetProcessTypesOk() (*map[string]string, bool)` + +GetProcessTypesOk returns a tuple with the ProcessTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessTypes + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetProcessTypes(v map[string]string)` + +SetProcessTypes sets ProcessTypes field to given value. + +### HasProcessTypes + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasProcessTypes() bool` + +HasProcessTypes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetStack + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetStack() string` + +GetStack returns the Stack field if non-nil, zero value otherwise. + +### GetStackOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetStackOk() (*string, bool)` + +GetStackOk returns a tuple with the Stack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStack + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetStack(v string)` + +SetStack sets Stack field to given value. + +### HasStack + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasStack() bool` + +HasStack returns a boolean if a field has been set. + +### GetState + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *V3AppsGuidDropletsCurrentGet200Response) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *V3AppsGuidDropletsCurrentGet200Response) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md new file mode 100644 index 0000000..d5148d2 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner.md @@ -0,0 +1,134 @@ +# V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildpackName** | Pointer to **string** | | [optional] +**DetectOutput** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner + +`func NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner() *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner` + +NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner instantiates a new V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInnerWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInnerWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner` + +NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInnerWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpackName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetBuildpackName() string` + +GetBuildpackName returns the BuildpackName field if non-nil, zero value otherwise. + +### GetBuildpackNameOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetBuildpackNameOk() (*string, bool)` + +GetBuildpackNameOk returns a tuple with the BuildpackName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpackName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetBuildpackName(v string)` + +SetBuildpackName sets BuildpackName field to given value. + +### HasBuildpackName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasBuildpackName() bool` + +HasBuildpackName returns a boolean if a field has been set. + +### GetDetectOutput + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetDetectOutput() string` + +GetDetectOutput returns the DetectOutput field if non-nil, zero value otherwise. + +### GetDetectOutputOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetDetectOutputOk() (*string, bool)` + +GetDetectOutputOk returns a tuple with the DetectOutput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetectOutput + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetDetectOutput(v string)` + +SetDetectOutput sets DetectOutput field to given value. + +### HasDetectOutput + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasDetectOutput() bool` + +HasDetectOutput returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseChecksum.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseChecksum.md new file mode 100644 index 0000000..c2b9ed9 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseChecksum.md @@ -0,0 +1,82 @@ +# V3AppsGuidDropletsCurrentGet200ResponseChecksum + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseChecksum + +`func NewV3AppsGuidDropletsCurrentGet200ResponseChecksum() *V3AppsGuidDropletsCurrentGet200ResponseChecksum` + +NewV3AppsGuidDropletsCurrentGet200ResponseChecksum instantiates a new V3AppsGuidDropletsCurrentGet200ResponseChecksum object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseChecksumWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseChecksumWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseChecksum` + +NewV3AppsGuidDropletsCurrentGet200ResponseChecksumWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseChecksum object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValue + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md new file mode 100644 index 0000000..b6a43b6 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseLifecycle.md @@ -0,0 +1,82 @@ +# V3AppsGuidDropletsCurrentGet200ResponseLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **map[string]interface{}** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseLifecycle + +`func NewV3AppsGuidDropletsCurrentGet200ResponseLifecycle() *V3AppsGuidDropletsCurrentGet200ResponseLifecycle` + +NewV3AppsGuidDropletsCurrentGet200ResponseLifecycle instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseLifecycleWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseLifecycleWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseLifecycle` + +NewV3AppsGuidDropletsCurrentGet200ResponseLifecycleWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md new file mode 100644 index 0000000..14e7fa8 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseLinksValue.md @@ -0,0 +1,92 @@ +# V3AppsGuidDropletsCurrentGet200ResponseLinksValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Method** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseLinksValue + +`func NewV3AppsGuidDropletsCurrentGet200ResponseLinksValue() *V3AppsGuidDropletsCurrentGet200ResponseLinksValue` + +NewV3AppsGuidDropletsCurrentGet200ResponseLinksValue instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLinksValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseLinksValueWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseLinksValueWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseLinksValue` + +NewV3AppsGuidDropletsCurrentGet200ResponseLinksValueWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLinksValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetMethod + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### SetMethodNil + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetMethodNil(b bool)` + + SetMethodNil sets the value for Method to be an explicit nil + +### UnsetMethod +`func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) UnsetMethod()` + +UnsetMethod ensures that no value is present for Method, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseMetadata.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseMetadata.md new file mode 100644 index 0000000..243f2c9 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseMetadata.md @@ -0,0 +1,82 @@ +# V3AppsGuidDropletsCurrentGet200ResponseMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | | [optional] +**Labels** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseMetadata + +`func NewV3AppsGuidDropletsCurrentGet200ResponseMetadata() *V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +NewV3AppsGuidDropletsCurrentGet200ResponseMetadata instantiates a new V3AppsGuidDropletsCurrentGet200ResponseMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseMetadataWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseMetadataWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +NewV3AppsGuidDropletsCurrentGet200ResponseMetadataWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsCurrentGet200ResponseRelationships.md b/docs/V3AppsGuidDropletsCurrentGet200ResponseRelationships.md new file mode 100644 index 0000000..09b9772 --- /dev/null +++ b/docs/V3AppsGuidDropletsCurrentGet200ResponseRelationships.md @@ -0,0 +1,56 @@ +# V3AppsGuidDropletsCurrentGet200ResponseRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewV3AppsGuidDropletsCurrentGet200ResponseRelationships + +`func NewV3AppsGuidDropletsCurrentGet200ResponseRelationships() *V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +NewV3AppsGuidDropletsCurrentGet200ResponseRelationships instantiates a new V3AppsGuidDropletsCurrentGet200ResponseRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsCurrentGet200ResponseRelationshipsWithDefaults + +`func NewV3AppsGuidDropletsCurrentGet200ResponseRelationshipsWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseRelationships` + +NewV3AppsGuidDropletsCurrentGet200ResponseRelationshipsWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) GetApp() V3AppsPostRequestRelationshipsSpace` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidDropletsGet200Response.md b/docs/V3AppsGuidDropletsGet200Response.md new file mode 100644 index 0000000..acd075f --- /dev/null +++ b/docs/V3AppsGuidDropletsGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidDropletsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Droplet**](Droplet.md) | | [optional] + +## Methods + +### NewV3AppsGuidDropletsGet200Response + +`func NewV3AppsGuidDropletsGet200Response() *V3AppsGuidDropletsGet200Response` + +NewV3AppsGuidDropletsGet200Response instantiates a new V3AppsGuidDropletsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidDropletsGet200ResponseWithDefaults + +`func NewV3AppsGuidDropletsGet200ResponseWithDefaults() *V3AppsGuidDropletsGet200Response` + +NewV3AppsGuidDropletsGet200ResponseWithDefaults instantiates a new V3AppsGuidDropletsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3AppsGuidDropletsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3AppsGuidDropletsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3AppsGuidDropletsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3AppsGuidDropletsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3AppsGuidDropletsGet200Response) GetResources() []Droplet` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3AppsGuidDropletsGet200Response) GetResourcesOk() (*[]Droplet, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3AppsGuidDropletsGet200Response) SetResources(v []Droplet)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3AppsGuidDropletsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200Response.md b/docs/V3AppsGuidEnvGet200Response.md new file mode 100644 index 0000000..5e9f2ee --- /dev/null +++ b/docs/V3AppsGuidEnvGet200Response.md @@ -0,0 +1,160 @@ +# V3AppsGuidEnvGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApplicationEnvJson** | Pointer to [**V3AppsGuidEnvGet200ResponseApplicationEnvJson**](V3AppsGuidEnvGet200ResponseApplicationEnvJson.md) | | [optional] +**EnvironmentVariables** | Pointer to **map[string]string** | | [optional] +**RunningEnvJson** | Pointer to **map[string]string** | | [optional] +**StagingEnvJson** | Pointer to **map[string]string** | | [optional] +**SystemEnvJson** | Pointer to [**V3AppsGuidEnvGet200ResponseSystemEnvJson**](V3AppsGuidEnvGet200ResponseSystemEnvJson.md) | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200Response + +`func NewV3AppsGuidEnvGet200Response() *V3AppsGuidEnvGet200Response` + +NewV3AppsGuidEnvGet200Response instantiates a new V3AppsGuidEnvGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseWithDefaults() *V3AppsGuidEnvGet200Response` + +NewV3AppsGuidEnvGet200ResponseWithDefaults instantiates a new V3AppsGuidEnvGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApplicationEnvJson + +`func (o *V3AppsGuidEnvGet200Response) GetApplicationEnvJson() V3AppsGuidEnvGet200ResponseApplicationEnvJson` + +GetApplicationEnvJson returns the ApplicationEnvJson field if non-nil, zero value otherwise. + +### GetApplicationEnvJsonOk + +`func (o *V3AppsGuidEnvGet200Response) GetApplicationEnvJsonOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJson, bool)` + +GetApplicationEnvJsonOk returns a tuple with the ApplicationEnvJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationEnvJson + +`func (o *V3AppsGuidEnvGet200Response) SetApplicationEnvJson(v V3AppsGuidEnvGet200ResponseApplicationEnvJson)` + +SetApplicationEnvJson sets ApplicationEnvJson field to given value. + +### HasApplicationEnvJson + +`func (o *V3AppsGuidEnvGet200Response) HasApplicationEnvJson() bool` + +HasApplicationEnvJson returns a boolean if a field has been set. + +### GetEnvironmentVariables + +`func (o *V3AppsGuidEnvGet200Response) GetEnvironmentVariables() map[string]string` + +GetEnvironmentVariables returns the EnvironmentVariables field if non-nil, zero value otherwise. + +### GetEnvironmentVariablesOk + +`func (o *V3AppsGuidEnvGet200Response) GetEnvironmentVariablesOk() (*map[string]string, bool)` + +GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentVariables + +`func (o *V3AppsGuidEnvGet200Response) SetEnvironmentVariables(v map[string]string)` + +SetEnvironmentVariables sets EnvironmentVariables field to given value. + +### HasEnvironmentVariables + +`func (o *V3AppsGuidEnvGet200Response) HasEnvironmentVariables() bool` + +HasEnvironmentVariables returns a boolean if a field has been set. + +### GetRunningEnvJson + +`func (o *V3AppsGuidEnvGet200Response) GetRunningEnvJson() map[string]string` + +GetRunningEnvJson returns the RunningEnvJson field if non-nil, zero value otherwise. + +### GetRunningEnvJsonOk + +`func (o *V3AppsGuidEnvGet200Response) GetRunningEnvJsonOk() (*map[string]string, bool)` + +GetRunningEnvJsonOk returns a tuple with the RunningEnvJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunningEnvJson + +`func (o *V3AppsGuidEnvGet200Response) SetRunningEnvJson(v map[string]string)` + +SetRunningEnvJson sets RunningEnvJson field to given value. + +### HasRunningEnvJson + +`func (o *V3AppsGuidEnvGet200Response) HasRunningEnvJson() bool` + +HasRunningEnvJson returns a boolean if a field has been set. + +### GetStagingEnvJson + +`func (o *V3AppsGuidEnvGet200Response) GetStagingEnvJson() map[string]string` + +GetStagingEnvJson returns the StagingEnvJson field if non-nil, zero value otherwise. + +### GetStagingEnvJsonOk + +`func (o *V3AppsGuidEnvGet200Response) GetStagingEnvJsonOk() (*map[string]string, bool)` + +GetStagingEnvJsonOk returns a tuple with the StagingEnvJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStagingEnvJson + +`func (o *V3AppsGuidEnvGet200Response) SetStagingEnvJson(v map[string]string)` + +SetStagingEnvJson sets StagingEnvJson field to given value. + +### HasStagingEnvJson + +`func (o *V3AppsGuidEnvGet200Response) HasStagingEnvJson() bool` + +HasStagingEnvJson returns a boolean if a field has been set. + +### GetSystemEnvJson + +`func (o *V3AppsGuidEnvGet200Response) GetSystemEnvJson() V3AppsGuidEnvGet200ResponseSystemEnvJson` + +GetSystemEnvJson returns the SystemEnvJson field if non-nil, zero value otherwise. + +### GetSystemEnvJsonOk + +`func (o *V3AppsGuidEnvGet200Response) GetSystemEnvJsonOk() (*V3AppsGuidEnvGet200ResponseSystemEnvJson, bool)` + +GetSystemEnvJsonOk returns a tuple with the SystemEnvJson field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemEnvJson + +`func (o *V3AppsGuidEnvGet200Response) SetSystemEnvJson(v V3AppsGuidEnvGet200ResponseSystemEnvJson)` + +SetSystemEnvJson sets SystemEnvJson field to given value. + +### HasSystemEnvJson + +`func (o *V3AppsGuidEnvGet200Response) HasSystemEnvJson() bool` + +HasSystemEnvJson returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJson.md b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJson.md new file mode 100644 index 0000000..29aee88 --- /dev/null +++ b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJson.md @@ -0,0 +1,56 @@ +# V3AppsGuidEnvGet200ResponseApplicationEnvJson + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VCAP_APPLICATION** | Pointer to [**V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION**](V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md) | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJson + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJson() *V3AppsGuidEnvGet200ResponseApplicationEnvJson` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJson instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJson object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJson` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJson object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVCAP_APPLICATION + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) GetVCAP_APPLICATION() V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION` + +GetVCAP_APPLICATION returns the VCAP_APPLICATION field if non-nil, zero value otherwise. + +### GetVCAP_APPLICATIONOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) GetVCAP_APPLICATIONOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION, bool)` + +GetVCAP_APPLICATIONOk returns a tuple with the VCAP_APPLICATION field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVCAP_APPLICATION + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) SetVCAP_APPLICATION(v V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION)` + +SetVCAP_APPLICATION sets VCAP_APPLICATION field to given value. + +### HasVCAP_APPLICATION + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) HasVCAP_APPLICATION() bool` + +HasVCAP_APPLICATION returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md new file mode 100644 index 0000000..2a975fc --- /dev/null +++ b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION.md @@ -0,0 +1,248 @@ +# V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApplicationName** | Pointer to **string** | | [optional] +**ApplicationUris** | Pointer to **[]string** | | [optional] +**Limits** | Pointer to [**V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits**](V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**SpaceId** | Pointer to **string** | | [optional] +**SpaceName** | Pointer to **string** | | [optional] +**Uris** | Pointer to **[]string** | | [optional] +**Users** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApplicationName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationName() string` + +GetApplicationName returns the ApplicationName field if non-nil, zero value otherwise. + +### GetApplicationNameOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationNameOk() (*string, bool)` + +GetApplicationNameOk returns a tuple with the ApplicationName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetApplicationName(v string)` + +SetApplicationName sets ApplicationName field to given value. + +### HasApplicationName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasApplicationName() bool` + +HasApplicationName returns a boolean if a field has been set. + +### GetApplicationUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationUris() []string` + +GetApplicationUris returns the ApplicationUris field if non-nil, zero value otherwise. + +### GetApplicationUrisOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationUrisOk() (*[]string, bool)` + +GetApplicationUrisOk returns a tuple with the ApplicationUris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetApplicationUris(v []string)` + +SetApplicationUris sets ApplicationUris field to given value. + +### HasApplicationUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasApplicationUris() bool` + +HasApplicationUris returns a boolean if a field has been set. + +### GetLimits + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetLimits() V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits` + +GetLimits returns the Limits field if non-nil, zero value otherwise. + +### GetLimitsOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetLimitsOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits, bool)` + +GetLimitsOk returns a tuple with the Limits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimits + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetLimits(v V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits)` + +SetLimits sets Limits field to given value. + +### HasLimits + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasLimits() bool` + +HasLimits returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSpaceId + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceId() string` + +GetSpaceId returns the SpaceId field if non-nil, zero value otherwise. + +### GetSpaceIdOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceIdOk() (*string, bool)` + +GetSpaceIdOk returns a tuple with the SpaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaceId + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetSpaceId(v string)` + +SetSpaceId sets SpaceId field to given value. + +### HasSpaceId + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasSpaceId() bool` + +HasSpaceId returns a boolean if a field has been set. + +### GetSpaceName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceName() string` + +GetSpaceName returns the SpaceName field if non-nil, zero value otherwise. + +### GetSpaceNameOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceNameOk() (*string, bool)` + +GetSpaceNameOk returns a tuple with the SpaceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaceName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetSpaceName(v string)` + +SetSpaceName sets SpaceName field to given value. + +### HasSpaceName + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasSpaceName() bool` + +HasSpaceName returns a boolean if a field has been set. + +### GetUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUris() []string` + +GetUris returns the Uris field if non-nil, zero value otherwise. + +### GetUrisOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUrisOk() (*[]string, bool)` + +GetUrisOk returns a tuple with the Uris field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUris(v []string)` + +SetUris sets Uris field to given value. + +### HasUris + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasUris() bool` + +HasUris returns a boolean if a field has been set. + +### GetUsers + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUsers() string` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUsersOk() (*string, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUsers(v string)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + +### SetUsersNil + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUsersNil(b bool)` + + SetUsersNil sets the value for Users to be an explicit nil + +### UnsetUsers +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) UnsetUsers()` + +UnsetUsers ensures that no value is present for Users, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md new file mode 100644 index 0000000..1bf8628 --- /dev/null +++ b/docs/V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits.md @@ -0,0 +1,56 @@ +# V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fds** | Pointer to **int32** | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimitsWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimitsWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits` + +NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimitsWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFds + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) GetFds() int32` + +GetFds returns the Fds field if non-nil, zero value otherwise. + +### GetFdsOk + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) GetFdsOk() (*int32, bool)` + +GetFdsOk returns a tuple with the Fds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFds + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) SetFds(v int32)` + +SetFds sets Fds field to given value. + +### HasFds + +`func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) HasFds() bool` + +HasFds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200ResponseSystemEnvJson.md b/docs/V3AppsGuidEnvGet200ResponseSystemEnvJson.md new file mode 100644 index 0000000..d003fc2 --- /dev/null +++ b/docs/V3AppsGuidEnvGet200ResponseSystemEnvJson.md @@ -0,0 +1,56 @@ +# V3AppsGuidEnvGet200ResponseSystemEnvJson + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VCAP_SERVICES** | Pointer to [**map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner**](array.md) | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200ResponseSystemEnvJson + +`func NewV3AppsGuidEnvGet200ResponseSystemEnvJson() *V3AppsGuidEnvGet200ResponseSystemEnvJson` + +NewV3AppsGuidEnvGet200ResponseSystemEnvJson instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJson object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseSystemEnvJsonWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonWithDefaults() *V3AppsGuidEnvGet200ResponseSystemEnvJson` + +NewV3AppsGuidEnvGet200ResponseSystemEnvJsonWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJson object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVCAP_SERVICES + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) GetVCAP_SERVICES() map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner` + +GetVCAP_SERVICES returns the VCAP_SERVICES field if non-nil, zero value otherwise. + +### GetVCAP_SERVICESOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) GetVCAP_SERVICESOk() (*map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner, bool)` + +GetVCAP_SERVICESOk returns a tuple with the VCAP_SERVICES field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVCAP_SERVICES + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) SetVCAP_SERVICES(v map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner)` + +SetVCAP_SERVICES sets VCAP_SERVICES field to given value. + +### HasVCAP_SERVICES + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) HasVCAP_SERVICES() bool` + +HasVCAP_SERVICES returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner.md b/docs/V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner.md new file mode 100644 index 0000000..2729882 --- /dev/null +++ b/docs/V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner.md @@ -0,0 +1,352 @@ +# V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BindingId** | Pointer to **string** | | [optional] +**BindingName** | Pointer to **string** | | [optional] +**Credentials** | Pointer to **map[string]string** | | [optional] +**InstanceId** | Pointer to **string** | | [optional] +**InstanceName** | Pointer to **string** | | [optional] +**Label** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Plan** | Pointer to **string** | | [optional] +**Provider** | Pointer to **NullableString** | | [optional] +**SyslogDrainUrl** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**VolumeMounts** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner + +`func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner() *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner` + +NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInnerWithDefaults + +`func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInnerWithDefaults() *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner` + +NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInnerWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBindingId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingId() string` + +GetBindingId returns the BindingId field if non-nil, zero value otherwise. + +### GetBindingIdOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingIdOk() (*string, bool)` + +GetBindingIdOk returns a tuple with the BindingId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBindingId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetBindingId(v string)` + +SetBindingId sets BindingId field to given value. + +### HasBindingId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasBindingId() bool` + +HasBindingId returns a boolean if a field has been set. + +### GetBindingName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingName() string` + +GetBindingName returns the BindingName field if non-nil, zero value otherwise. + +### GetBindingNameOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingNameOk() (*string, bool)` + +GetBindingNameOk returns a tuple with the BindingName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBindingName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetBindingName(v string)` + +SetBindingName sets BindingName field to given value. + +### HasBindingName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasBindingName() bool` + +HasBindingName returns a boolean if a field has been set. + +### GetCredentials + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetCredentials() map[string]string` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetCredentialsOk() (*map[string]string, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetCredentials(v map[string]string)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetInstanceId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### GetInstanceName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceName() string` + +GetInstanceName returns the InstanceName field if non-nil, zero value otherwise. + +### GetInstanceNameOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceNameOk() (*string, bool)` + +GetInstanceNameOk returns a tuple with the InstanceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetInstanceName(v string)` + +SetInstanceName sets InstanceName field to given value. + +### HasInstanceName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasInstanceName() bool` + +HasInstanceName returns a boolean if a field has been set. + +### GetLabel + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPlan + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetPlan() string` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetPlanOk() (*string, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetPlan(v string)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetProvider + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### SetProviderNil + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetProviderNil(b bool)` + + SetProviderNil sets the value for Provider to be an explicit nil + +### UnsetProvider +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) UnsetProvider()` + +UnsetProvider ensures that no value is present for Provider, not even an explicit nil +### GetSyslogDrainUrl + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetSyslogDrainUrl() string` + +GetSyslogDrainUrl returns the SyslogDrainUrl field if non-nil, zero value otherwise. + +### GetSyslogDrainUrlOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetSyslogDrainUrlOk() (*string, bool)` + +GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyslogDrainUrl + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetSyslogDrainUrl(v string)` + +SetSyslogDrainUrl sets SyslogDrainUrl field to given value. + +### HasSyslogDrainUrl + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasSyslogDrainUrl() bool` + +HasSyslogDrainUrl returns a boolean if a field has been set. + +### GetTags + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVolumeMounts + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetVolumeMounts() []string` + +GetVolumeMounts returns the VolumeMounts field if non-nil, zero value otherwise. + +### GetVolumeMountsOk + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetVolumeMountsOk() (*[]string, bool)` + +GetVolumeMountsOk returns a tuple with the VolumeMounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVolumeMounts + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetVolumeMounts(v []string)` + +SetVolumeMounts sets VolumeMounts field to given value. + +### HasVolumeMounts + +`func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasVolumeMounts() bool` + +HasVolumeMounts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvironmentVariablesGet200Response.md b/docs/V3AppsGuidEnvironmentVariablesGet200Response.md new file mode 100644 index 0000000..73dde79 --- /dev/null +++ b/docs/V3AppsGuidEnvironmentVariablesGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidEnvironmentVariablesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**map[string]Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Var** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewV3AppsGuidEnvironmentVariablesGet200Response + +`func NewV3AppsGuidEnvironmentVariablesGet200Response() *V3AppsGuidEnvironmentVariablesGet200Response` + +NewV3AppsGuidEnvironmentVariablesGet200Response instantiates a new V3AppsGuidEnvironmentVariablesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvironmentVariablesGet200ResponseWithDefaults + +`func NewV3AppsGuidEnvironmentVariablesGet200ResponseWithDefaults() *V3AppsGuidEnvironmentVariablesGet200Response` + +NewV3AppsGuidEnvironmentVariablesGet200ResponseWithDefaults instantiates a new V3AppsGuidEnvironmentVariablesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetLinks() map[string]Get200ResponseLinksLogCache` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) SetLinks(v map[string]Get200ResponseLinksLogCache)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetVar + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetVar() map[string]string` + +GetVar returns the Var field if non-nil, zero value otherwise. + +### GetVarOk + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetVarOk() (*map[string]string, bool)` + +GetVarOk returns a tuple with the Var field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVar + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) SetVar(v map[string]string)` + +SetVar sets Var field to given value. + +### HasVar + +`func (o *V3AppsGuidEnvironmentVariablesGet200Response) HasVar() bool` + +HasVar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidEnvironmentVariablesPatchRequest.md b/docs/V3AppsGuidEnvironmentVariablesPatchRequest.md new file mode 100644 index 0000000..d1e0e1e --- /dev/null +++ b/docs/V3AppsGuidEnvironmentVariablesPatchRequest.md @@ -0,0 +1,56 @@ +# V3AppsGuidEnvironmentVariablesPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Var** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewV3AppsGuidEnvironmentVariablesPatchRequest + +`func NewV3AppsGuidEnvironmentVariablesPatchRequest() *V3AppsGuidEnvironmentVariablesPatchRequest` + +NewV3AppsGuidEnvironmentVariablesPatchRequest instantiates a new V3AppsGuidEnvironmentVariablesPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidEnvironmentVariablesPatchRequestWithDefaults + +`func NewV3AppsGuidEnvironmentVariablesPatchRequestWithDefaults() *V3AppsGuidEnvironmentVariablesPatchRequest` + +NewV3AppsGuidEnvironmentVariablesPatchRequestWithDefaults instantiates a new V3AppsGuidEnvironmentVariablesPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVar + +`func (o *V3AppsGuidEnvironmentVariablesPatchRequest) GetVar() map[string]string` + +GetVar returns the Var field if non-nil, zero value otherwise. + +### GetVarOk + +`func (o *V3AppsGuidEnvironmentVariablesPatchRequest) GetVarOk() (*map[string]string, bool)` + +GetVarOk returns a tuple with the Var field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVar + +`func (o *V3AppsGuidEnvironmentVariablesPatchRequest) SetVar(v map[string]string)` + +SetVar sets Var field to given value. + +### HasVar + +`func (o *V3AppsGuidEnvironmentVariablesPatchRequest) HasVar() bool` + +HasVar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidFeaturesNamePatchRequest.md b/docs/V3AppsGuidFeaturesNamePatchRequest.md new file mode 100644 index 0000000..93d4416 --- /dev/null +++ b/docs/V3AppsGuidFeaturesNamePatchRequest.md @@ -0,0 +1,56 @@ +# V3AppsGuidFeaturesNamePatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | Denotes whether or not the app feature should be enabled | [optional] + +## Methods + +### NewV3AppsGuidFeaturesNamePatchRequest + +`func NewV3AppsGuidFeaturesNamePatchRequest() *V3AppsGuidFeaturesNamePatchRequest` + +NewV3AppsGuidFeaturesNamePatchRequest instantiates a new V3AppsGuidFeaturesNamePatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidFeaturesNamePatchRequestWithDefaults + +`func NewV3AppsGuidFeaturesNamePatchRequestWithDefaults() *V3AppsGuidFeaturesNamePatchRequest` + +NewV3AppsGuidFeaturesNamePatchRequestWithDefaults instantiates a new V3AppsGuidFeaturesNamePatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *V3AppsGuidFeaturesNamePatchRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *V3AppsGuidFeaturesNamePatchRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *V3AppsGuidFeaturesNamePatchRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *V3AppsGuidFeaturesNamePatchRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidPatchRequest.md b/docs/V3AppsGuidPatchRequest.md new file mode 100644 index 0000000..ea3737e --- /dev/null +++ b/docs/V3AppsGuidPatchRequest.md @@ -0,0 +1,108 @@ +# V3AppsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lifecycle** | Pointer to [**V3AppsGuidPatchRequestLifecycle**](V3AppsGuidPatchRequestLifecycle.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidPatchRequestMetadata**](V3AppsGuidPatchRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | Name of the app | [optional] + +## Methods + +### NewV3AppsGuidPatchRequest + +`func NewV3AppsGuidPatchRequest() *V3AppsGuidPatchRequest` + +NewV3AppsGuidPatchRequest instantiates a new V3AppsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidPatchRequestWithDefaults + +`func NewV3AppsGuidPatchRequestWithDefaults() *V3AppsGuidPatchRequest` + +NewV3AppsGuidPatchRequestWithDefaults instantiates a new V3AppsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLifecycle + +`func (o *V3AppsGuidPatchRequest) GetLifecycle() V3AppsGuidPatchRequestLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *V3AppsGuidPatchRequest) GetLifecycleOk() (*V3AppsGuidPatchRequestLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *V3AppsGuidPatchRequest) SetLifecycle(v V3AppsGuidPatchRequestLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + +### HasLifecycle + +`func (o *V3AppsGuidPatchRequest) HasLifecycle() bool` + +HasLifecycle returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3AppsGuidPatchRequest) GetMetadata() V3AppsGuidPatchRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3AppsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidPatchRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3AppsGuidPatchRequest) SetMetadata(v V3AppsGuidPatchRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3AppsGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidPatchRequestLifecycle.md b/docs/V3AppsGuidPatchRequestLifecycle.md new file mode 100644 index 0000000..5c62ec3 --- /dev/null +++ b/docs/V3AppsGuidPatchRequestLifecycle.md @@ -0,0 +1,82 @@ +# V3AppsGuidPatchRequestLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsGuidPatchRequestLifecycleData**](V3AppsGuidPatchRequestLifecycleData.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidPatchRequestLifecycle + +`func NewV3AppsGuidPatchRequestLifecycle() *V3AppsGuidPatchRequestLifecycle` + +NewV3AppsGuidPatchRequestLifecycle instantiates a new V3AppsGuidPatchRequestLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidPatchRequestLifecycleWithDefaults + +`func NewV3AppsGuidPatchRequestLifecycleWithDefaults() *V3AppsGuidPatchRequestLifecycle` + +NewV3AppsGuidPatchRequestLifecycleWithDefaults instantiates a new V3AppsGuidPatchRequestLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsGuidPatchRequestLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsGuidPatchRequestLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsGuidPatchRequestLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsGuidPatchRequestLifecycle) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *V3AppsGuidPatchRequestLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3AppsGuidPatchRequestLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3AppsGuidPatchRequestLifecycle) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3AppsGuidPatchRequestLifecycle) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidPatchRequestLifecycleData.md b/docs/V3AppsGuidPatchRequestLifecycleData.md new file mode 100644 index 0000000..6104a70 --- /dev/null +++ b/docs/V3AppsGuidPatchRequestLifecycleData.md @@ -0,0 +1,82 @@ +# V3AppsGuidPatchRequestLifecycleData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buildpacks** | Pointer to **[]string** | | [optional] +**Stack** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidPatchRequestLifecycleData + +`func NewV3AppsGuidPatchRequestLifecycleData() *V3AppsGuidPatchRequestLifecycleData` + +NewV3AppsGuidPatchRequestLifecycleData instantiates a new V3AppsGuidPatchRequestLifecycleData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidPatchRequestLifecycleDataWithDefaults + +`func NewV3AppsGuidPatchRequestLifecycleDataWithDefaults() *V3AppsGuidPatchRequestLifecycleData` + +NewV3AppsGuidPatchRequestLifecycleDataWithDefaults instantiates a new V3AppsGuidPatchRequestLifecycleData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpacks + +`func (o *V3AppsGuidPatchRequestLifecycleData) GetBuildpacks() []string` + +GetBuildpacks returns the Buildpacks field if non-nil, zero value otherwise. + +### GetBuildpacksOk + +`func (o *V3AppsGuidPatchRequestLifecycleData) GetBuildpacksOk() (*[]string, bool)` + +GetBuildpacksOk returns a tuple with the Buildpacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpacks + +`func (o *V3AppsGuidPatchRequestLifecycleData) SetBuildpacks(v []string)` + +SetBuildpacks sets Buildpacks field to given value. + +### HasBuildpacks + +`func (o *V3AppsGuidPatchRequestLifecycleData) HasBuildpacks() bool` + +HasBuildpacks returns a boolean if a field has been set. + +### GetStack + +`func (o *V3AppsGuidPatchRequestLifecycleData) GetStack() string` + +GetStack returns the Stack field if non-nil, zero value otherwise. + +### GetStackOk + +`func (o *V3AppsGuidPatchRequestLifecycleData) GetStackOk() (*string, bool)` + +GetStackOk returns a tuple with the Stack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStack + +`func (o *V3AppsGuidPatchRequestLifecycleData) SetStack(v string)` + +SetStack sets Stack field to given value. + +### HasStack + +`func (o *V3AppsGuidPatchRequestLifecycleData) HasStack() bool` + +HasStack returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidPatchRequestMetadata.md b/docs/V3AppsGuidPatchRequestMetadata.md new file mode 100644 index 0000000..f03bbf3 --- /dev/null +++ b/docs/V3AppsGuidPatchRequestMetadata.md @@ -0,0 +1,82 @@ +# V3AppsGuidPatchRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | Annotations applied to the app | [optional] +**Labels** | Pointer to **map[string]interface{}** | Labels applied to the app | [optional] + +## Methods + +### NewV3AppsGuidPatchRequestMetadata + +`func NewV3AppsGuidPatchRequestMetadata() *V3AppsGuidPatchRequestMetadata` + +NewV3AppsGuidPatchRequestMetadata instantiates a new V3AppsGuidPatchRequestMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidPatchRequestMetadataWithDefaults + +`func NewV3AppsGuidPatchRequestMetadataWithDefaults() *V3AppsGuidPatchRequestMetadata` + +NewV3AppsGuidPatchRequestMetadataWithDefaults instantiates a new V3AppsGuidPatchRequestMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3AppsGuidPatchRequestMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3AppsGuidPatchRequestMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3AppsGuidPatchRequestMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3AppsGuidPatchRequestMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3AppsGuidPatchRequestMetadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3AppsGuidPatchRequestMetadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3AppsGuidPatchRequestMetadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3AppsGuidPatchRequestMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidPermissionsGet200Response.md b/docs/V3AppsGuidPermissionsGet200Response.md new file mode 100644 index 0000000..2a680e9 --- /dev/null +++ b/docs/V3AppsGuidPermissionsGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidPermissionsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReadBasicData** | Pointer to **bool** | | [optional] +**ReadSensitiveData** | Pointer to **bool** | | [optional] + +## Methods + +### NewV3AppsGuidPermissionsGet200Response + +`func NewV3AppsGuidPermissionsGet200Response() *V3AppsGuidPermissionsGet200Response` + +NewV3AppsGuidPermissionsGet200Response instantiates a new V3AppsGuidPermissionsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidPermissionsGet200ResponseWithDefaults + +`func NewV3AppsGuidPermissionsGet200ResponseWithDefaults() *V3AppsGuidPermissionsGet200Response` + +NewV3AppsGuidPermissionsGet200ResponseWithDefaults instantiates a new V3AppsGuidPermissionsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReadBasicData + +`func (o *V3AppsGuidPermissionsGet200Response) GetReadBasicData() bool` + +GetReadBasicData returns the ReadBasicData field if non-nil, zero value otherwise. + +### GetReadBasicDataOk + +`func (o *V3AppsGuidPermissionsGet200Response) GetReadBasicDataOk() (*bool, bool)` + +GetReadBasicDataOk returns a tuple with the ReadBasicData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadBasicData + +`func (o *V3AppsGuidPermissionsGet200Response) SetReadBasicData(v bool)` + +SetReadBasicData sets ReadBasicData field to given value. + +### HasReadBasicData + +`func (o *V3AppsGuidPermissionsGet200Response) HasReadBasicData() bool` + +HasReadBasicData returns a boolean if a field has been set. + +### GetReadSensitiveData + +`func (o *V3AppsGuidPermissionsGet200Response) GetReadSensitiveData() bool` + +GetReadSensitiveData returns the ReadSensitiveData field if non-nil, zero value otherwise. + +### GetReadSensitiveDataOk + +`func (o *V3AppsGuidPermissionsGet200Response) GetReadSensitiveDataOk() (*bool, bool)` + +GetReadSensitiveDataOk returns a tuple with the ReadSensitiveData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadSensitiveData + +`func (o *V3AppsGuidPermissionsGet200Response) SetReadSensitiveData(v bool)` + +SetReadSensitiveData sets ReadSensitiveData field to given value. + +### HasReadSensitiveData + +`func (o *V3AppsGuidPermissionsGet200Response) HasReadSensitiveData() bool` + +HasReadSensitiveData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidRelationshipsCurrentDropletGet200Response.md b/docs/V3AppsGuidRelationshipsCurrentDropletGet200Response.md new file mode 100644 index 0000000..e066c54 --- /dev/null +++ b/docs/V3AppsGuidRelationshipsCurrentDropletGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidRelationshipsCurrentDropletGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Links** | Pointer to [**map[string]Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewV3AppsGuidRelationshipsCurrentDropletGet200Response + +`func NewV3AppsGuidRelationshipsCurrentDropletGet200Response() *V3AppsGuidRelationshipsCurrentDropletGet200Response` + +NewV3AppsGuidRelationshipsCurrentDropletGet200Response instantiates a new V3AppsGuidRelationshipsCurrentDropletGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidRelationshipsCurrentDropletGet200ResponseWithDefaults + +`func NewV3AppsGuidRelationshipsCurrentDropletGet200ResponseWithDefaults() *V3AppsGuidRelationshipsCurrentDropletGet200Response` + +NewV3AppsGuidRelationshipsCurrentDropletGet200ResponseWithDefaults instantiates a new V3AppsGuidRelationshipsCurrentDropletGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetData() V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) SetData(v V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetLinks() map[string]Get200ResponseLinksLogCache` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) SetLinks(v map[string]Get200ResponseLinksLogCache)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidSidecarsGet200Response.md b/docs/V3AppsGuidSidecarsGet200Response.md new file mode 100644 index 0000000..37fc6e7 --- /dev/null +++ b/docs/V3AppsGuidSidecarsGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidSidecarsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Sidecar**](Sidecar.md) | | [optional] + +## Methods + +### NewV3AppsGuidSidecarsGet200Response + +`func NewV3AppsGuidSidecarsGet200Response() *V3AppsGuidSidecarsGet200Response` + +NewV3AppsGuidSidecarsGet200Response instantiates a new V3AppsGuidSidecarsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidSidecarsGet200ResponseWithDefaults + +`func NewV3AppsGuidSidecarsGet200ResponseWithDefaults() *V3AppsGuidSidecarsGet200Response` + +NewV3AppsGuidSidecarsGet200ResponseWithDefaults instantiates a new V3AppsGuidSidecarsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3AppsGuidSidecarsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3AppsGuidSidecarsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3AppsGuidSidecarsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3AppsGuidSidecarsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3AppsGuidSidecarsGet200Response) GetResources() []Sidecar` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3AppsGuidSidecarsGet200Response) GetResourcesOk() (*[]Sidecar, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3AppsGuidSidecarsGet200Response) SetResources(v []Sidecar)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3AppsGuidSidecarsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidSidecarsPostRequest.md b/docs/V3AppsGuidSidecarsPostRequest.md new file mode 100644 index 0000000..3921a0a --- /dev/null +++ b/docs/V3AppsGuidSidecarsPostRequest.md @@ -0,0 +1,119 @@ +# V3AppsGuidSidecarsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | **string** | | +**MemoryInMb** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**ProcessTypes** | **[]string** | | + +## Methods + +### NewV3AppsGuidSidecarsPostRequest + +`func NewV3AppsGuidSidecarsPostRequest(command string, name string, processTypes []string, ) *V3AppsGuidSidecarsPostRequest` + +NewV3AppsGuidSidecarsPostRequest instantiates a new V3AppsGuidSidecarsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidSidecarsPostRequestWithDefaults + +`func NewV3AppsGuidSidecarsPostRequestWithDefaults() *V3AppsGuidSidecarsPostRequest` + +NewV3AppsGuidSidecarsPostRequestWithDefaults instantiates a new V3AppsGuidSidecarsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *V3AppsGuidSidecarsPostRequest) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *V3AppsGuidSidecarsPostRequest) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *V3AppsGuidSidecarsPostRequest) SetCommand(v string)` + +SetCommand sets Command field to given value. + + +### GetMemoryInMb + +`func (o *V3AppsGuidSidecarsPostRequest) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *V3AppsGuidSidecarsPostRequest) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *V3AppsGuidSidecarsPostRequest) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *V3AppsGuidSidecarsPostRequest) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidSidecarsPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidSidecarsPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidSidecarsPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetProcessTypes + +`func (o *V3AppsGuidSidecarsPostRequest) GetProcessTypes() []string` + +GetProcessTypes returns the ProcessTypes field if non-nil, zero value otherwise. + +### GetProcessTypesOk + +`func (o *V3AppsGuidSidecarsPostRequest) GetProcessTypesOk() (*[]string, bool)` + +GetProcessTypesOk returns a tuple with the ProcessTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessTypes + +`func (o *V3AppsGuidSidecarsPostRequest) SetProcessTypes(v []string)` + +SetProcessTypes sets ProcessTypes field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidSshEnabledGet200Response.md b/docs/V3AppsGuidSshEnabledGet200Response.md new file mode 100644 index 0000000..49cde55 --- /dev/null +++ b/docs/V3AppsGuidSshEnabledGet200Response.md @@ -0,0 +1,82 @@ +# V3AppsGuidSshEnabledGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | | [optional] +**Reason** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsGuidSshEnabledGet200Response + +`func NewV3AppsGuidSshEnabledGet200Response() *V3AppsGuidSshEnabledGet200Response` + +NewV3AppsGuidSshEnabledGet200Response instantiates a new V3AppsGuidSshEnabledGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidSshEnabledGet200ResponseWithDefaults + +`func NewV3AppsGuidSshEnabledGet200ResponseWithDefaults() *V3AppsGuidSshEnabledGet200Response` + +NewV3AppsGuidSshEnabledGet200ResponseWithDefaults instantiates a new V3AppsGuidSshEnabledGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *V3AppsGuidSshEnabledGet200Response) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *V3AppsGuidSshEnabledGet200Response) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *V3AppsGuidSshEnabledGet200Response) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *V3AppsGuidSshEnabledGet200Response) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetReason + +`func (o *V3AppsGuidSshEnabledGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *V3AppsGuidSshEnabledGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *V3AppsGuidSshEnabledGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *V3AppsGuidSshEnabledGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidTasksPostRequest.md b/docs/V3AppsGuidTasksPostRequest.md new file mode 100644 index 0000000..835d715 --- /dev/null +++ b/docs/V3AppsGuidTasksPostRequest.md @@ -0,0 +1,238 @@ +# V3AppsGuidTasksPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **string** | Command that will be executed; optional if a template.process.guid is provided | [optional] +**DiskInMb** | Pointer to **int32** | Amount of disk to allocate for the task in MB | [optional] +**DropletGuid** | Pointer to **string** | The guid of the droplet that will be used to run the command | [optional] +**LogRateLimitInBytesPerSecond** | Pointer to **int32** | Amount of log rate to allocate for the task in bytes | [optional] +**MemoryInMb** | Pointer to **int32** | Amount of memory to allocate for the task in MB | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | Name of the task; auto-generated if not provided | [optional] +**Template** | Pointer to [**V3AppsGuidTasksPostRequestTemplate**](V3AppsGuidTasksPostRequestTemplate.md) | | [optional] + +## Methods + +### NewV3AppsGuidTasksPostRequest + +`func NewV3AppsGuidTasksPostRequest() *V3AppsGuidTasksPostRequest` + +NewV3AppsGuidTasksPostRequest instantiates a new V3AppsGuidTasksPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidTasksPostRequestWithDefaults + +`func NewV3AppsGuidTasksPostRequestWithDefaults() *V3AppsGuidTasksPostRequest` + +NewV3AppsGuidTasksPostRequestWithDefaults instantiates a new V3AppsGuidTasksPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *V3AppsGuidTasksPostRequest) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *V3AppsGuidTasksPostRequest) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *V3AppsGuidTasksPostRequest) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *V3AppsGuidTasksPostRequest) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### GetDiskInMb + +`func (o *V3AppsGuidTasksPostRequest) GetDiskInMb() int32` + +GetDiskInMb returns the DiskInMb field if non-nil, zero value otherwise. + +### GetDiskInMbOk + +`func (o *V3AppsGuidTasksPostRequest) GetDiskInMbOk() (*int32, bool)` + +GetDiskInMbOk returns a tuple with the DiskInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiskInMb + +`func (o *V3AppsGuidTasksPostRequest) SetDiskInMb(v int32)` + +SetDiskInMb sets DiskInMb field to given value. + +### HasDiskInMb + +`func (o *V3AppsGuidTasksPostRequest) HasDiskInMb() bool` + +HasDiskInMb returns a boolean if a field has been set. + +### GetDropletGuid + +`func (o *V3AppsGuidTasksPostRequest) GetDropletGuid() string` + +GetDropletGuid returns the DropletGuid field if non-nil, zero value otherwise. + +### GetDropletGuidOk + +`func (o *V3AppsGuidTasksPostRequest) GetDropletGuidOk() (*string, bool)` + +GetDropletGuidOk returns a tuple with the DropletGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDropletGuid + +`func (o *V3AppsGuidTasksPostRequest) SetDropletGuid(v string)` + +SetDropletGuid sets DropletGuid field to given value. + +### HasDropletGuid + +`func (o *V3AppsGuidTasksPostRequest) HasDropletGuid() bool` + +HasDropletGuid returns a boolean if a field has been set. + +### GetLogRateLimitInBytesPerSecond + +`func (o *V3AppsGuidTasksPostRequest) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *V3AppsGuidTasksPostRequest) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *V3AppsGuidTasksPostRequest) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *V3AppsGuidTasksPostRequest) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *V3AppsGuidTasksPostRequest) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *V3AppsGuidTasksPostRequest) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *V3AppsGuidTasksPostRequest) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *V3AppsGuidTasksPostRequest) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3AppsGuidTasksPostRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3AppsGuidTasksPostRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3AppsGuidTasksPostRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3AppsGuidTasksPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsGuidTasksPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsGuidTasksPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsGuidTasksPostRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3AppsGuidTasksPostRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetTemplate + +`func (o *V3AppsGuidTasksPostRequest) GetTemplate() V3AppsGuidTasksPostRequestTemplate` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *V3AppsGuidTasksPostRequest) GetTemplateOk() (*V3AppsGuidTasksPostRequestTemplate, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *V3AppsGuidTasksPostRequest) SetTemplate(v V3AppsGuidTasksPostRequestTemplate)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *V3AppsGuidTasksPostRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidTasksPostRequestMetadata.md b/docs/V3AppsGuidTasksPostRequestMetadata.md new file mode 100644 index 0000000..734ac64 --- /dev/null +++ b/docs/V3AppsGuidTasksPostRequestMetadata.md @@ -0,0 +1,82 @@ +# V3AppsGuidTasksPostRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | | [optional] +**Labels** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewV3AppsGuidTasksPostRequestMetadata + +`func NewV3AppsGuidTasksPostRequestMetadata() *V3AppsGuidTasksPostRequestMetadata` + +NewV3AppsGuidTasksPostRequestMetadata instantiates a new V3AppsGuidTasksPostRequestMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidTasksPostRequestMetadataWithDefaults + +`func NewV3AppsGuidTasksPostRequestMetadataWithDefaults() *V3AppsGuidTasksPostRequestMetadata` + +NewV3AppsGuidTasksPostRequestMetadataWithDefaults instantiates a new V3AppsGuidTasksPostRequestMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3AppsGuidTasksPostRequestMetadata) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3AppsGuidTasksPostRequestMetadata) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3AppsGuidTasksPostRequestMetadata) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3AppsGuidTasksPostRequestMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3AppsGuidTasksPostRequestMetadata) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3AppsGuidTasksPostRequestMetadata) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3AppsGuidTasksPostRequestMetadata) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3AppsGuidTasksPostRequestMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidTasksPostRequestTemplate.md b/docs/V3AppsGuidTasksPostRequestTemplate.md new file mode 100644 index 0000000..8693893 --- /dev/null +++ b/docs/V3AppsGuidTasksPostRequestTemplate.md @@ -0,0 +1,56 @@ +# V3AppsGuidTasksPostRequestTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Process** | Pointer to [**V3AppsGuidTasksPostRequestTemplateProcess**](V3AppsGuidTasksPostRequestTemplateProcess.md) | | [optional] + +## Methods + +### NewV3AppsGuidTasksPostRequestTemplate + +`func NewV3AppsGuidTasksPostRequestTemplate() *V3AppsGuidTasksPostRequestTemplate` + +NewV3AppsGuidTasksPostRequestTemplate instantiates a new V3AppsGuidTasksPostRequestTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidTasksPostRequestTemplateWithDefaults + +`func NewV3AppsGuidTasksPostRequestTemplateWithDefaults() *V3AppsGuidTasksPostRequestTemplate` + +NewV3AppsGuidTasksPostRequestTemplateWithDefaults instantiates a new V3AppsGuidTasksPostRequestTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProcess + +`func (o *V3AppsGuidTasksPostRequestTemplate) GetProcess() V3AppsGuidTasksPostRequestTemplateProcess` + +GetProcess returns the Process field if non-nil, zero value otherwise. + +### GetProcessOk + +`func (o *V3AppsGuidTasksPostRequestTemplate) GetProcessOk() (*V3AppsGuidTasksPostRequestTemplateProcess, bool)` + +GetProcessOk returns a tuple with the Process field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcess + +`func (o *V3AppsGuidTasksPostRequestTemplate) SetProcess(v V3AppsGuidTasksPostRequestTemplateProcess)` + +SetProcess sets Process field to given value. + +### HasProcess + +`func (o *V3AppsGuidTasksPostRequestTemplate) HasProcess() bool` + +HasProcess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsGuidTasksPostRequestTemplateProcess.md b/docs/V3AppsGuidTasksPostRequestTemplateProcess.md new file mode 100644 index 0000000..c02de49 --- /dev/null +++ b/docs/V3AppsGuidTasksPostRequestTemplateProcess.md @@ -0,0 +1,56 @@ +# V3AppsGuidTasksPostRequestTemplateProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | The guid of the process that will be used as a template | [optional] + +## Methods + +### NewV3AppsGuidTasksPostRequestTemplateProcess + +`func NewV3AppsGuidTasksPostRequestTemplateProcess() *V3AppsGuidTasksPostRequestTemplateProcess` + +NewV3AppsGuidTasksPostRequestTemplateProcess instantiates a new V3AppsGuidTasksPostRequestTemplateProcess object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsGuidTasksPostRequestTemplateProcessWithDefaults + +`func NewV3AppsGuidTasksPostRequestTemplateProcessWithDefaults() *V3AppsGuidTasksPostRequestTemplateProcess` + +NewV3AppsGuidTasksPostRequestTemplateProcessWithDefaults instantiates a new V3AppsGuidTasksPostRequestTemplateProcess object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3AppsGuidTasksPostRequestTemplateProcess) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3AppsGuidTasksPostRequestTemplateProcess) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3AppsGuidTasksPostRequestTemplateProcess) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3AppsGuidTasksPostRequestTemplateProcess) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequest.md b/docs/V3AppsPostRequest.md new file mode 100644 index 0000000..192cf99 --- /dev/null +++ b/docs/V3AppsPostRequest.md @@ -0,0 +1,202 @@ +# V3AppsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnvironmentVariables** | Pointer to **map[string]interface{}** | Environment variables for the app. | [optional] +**Lifecycle** | Pointer to [**V3AppsPostRequestLifecycle**](V3AppsPostRequestLifecycle.md) | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | Metadata of the app. | [optional] +**Name** | **string** | Name of the app. | +**Relationships** | Pointer to [**V3AppsPostRequestRelationships**](V3AppsPostRequestRelationships.md) | | [optional] +**SpaceGuid** | **string** | GUID of the space. | +**State** | Pointer to **string** | Desired state of the app. | [optional] + +## Methods + +### NewV3AppsPostRequest + +`func NewV3AppsPostRequest(name string, spaceGuid string, ) *V3AppsPostRequest` + +NewV3AppsPostRequest instantiates a new V3AppsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestWithDefaults + +`func NewV3AppsPostRequestWithDefaults() *V3AppsPostRequest` + +NewV3AppsPostRequestWithDefaults instantiates a new V3AppsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnvironmentVariables + +`func (o *V3AppsPostRequest) GetEnvironmentVariables() map[string]interface{}` + +GetEnvironmentVariables returns the EnvironmentVariables field if non-nil, zero value otherwise. + +### GetEnvironmentVariablesOk + +`func (o *V3AppsPostRequest) GetEnvironmentVariablesOk() (*map[string]interface{}, bool)` + +GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentVariables + +`func (o *V3AppsPostRequest) SetEnvironmentVariables(v map[string]interface{})` + +SetEnvironmentVariables sets EnvironmentVariables field to given value. + +### HasEnvironmentVariables + +`func (o *V3AppsPostRequest) HasEnvironmentVariables() bool` + +HasEnvironmentVariables returns a boolean if a field has been set. + +### GetLifecycle + +`func (o *V3AppsPostRequest) GetLifecycle() V3AppsPostRequestLifecycle` + +GetLifecycle returns the Lifecycle field if non-nil, zero value otherwise. + +### GetLifecycleOk + +`func (o *V3AppsPostRequest) GetLifecycleOk() (*V3AppsPostRequestLifecycle, bool)` + +GetLifecycleOk returns a tuple with the Lifecycle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifecycle + +`func (o *V3AppsPostRequest) SetLifecycle(v V3AppsPostRequestLifecycle)` + +SetLifecycle sets Lifecycle field to given value. + +### HasLifecycle + +`func (o *V3AppsPostRequest) HasLifecycle() bool` + +HasLifecycle returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3AppsPostRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3AppsPostRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3AppsPostRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3AppsPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3AppsPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3AppsPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3AppsPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelationships + +`func (o *V3AppsPostRequest) GetRelationships() V3AppsPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3AppsPostRequest) GetRelationshipsOk() (*V3AppsPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3AppsPostRequest) SetRelationships(v V3AppsPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3AppsPostRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetSpaceGuid + +`func (o *V3AppsPostRequest) GetSpaceGuid() string` + +GetSpaceGuid returns the SpaceGuid field if non-nil, zero value otherwise. + +### GetSpaceGuidOk + +`func (o *V3AppsPostRequest) GetSpaceGuidOk() (*string, bool)` + +GetSpaceGuidOk returns a tuple with the SpaceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaceGuid + +`func (o *V3AppsPostRequest) SetSpaceGuid(v string)` + +SetSpaceGuid sets SpaceGuid field to given value. + + +### GetState + +`func (o *V3AppsPostRequest) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *V3AppsPostRequest) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *V3AppsPostRequest) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *V3AppsPostRequest) HasState() bool` + +HasState returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequestLifecycle.md b/docs/V3AppsPostRequestLifecycle.md new file mode 100644 index 0000000..002bc6e --- /dev/null +++ b/docs/V3AppsPostRequestLifecycle.md @@ -0,0 +1,82 @@ +# V3AppsPostRequestLifecycle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsPostRequestLifecycleData**](V3AppsPostRequestLifecycleData.md) | | [optional] +**Type** | Pointer to **string** | Type of lifecycle. | [optional] + +## Methods + +### NewV3AppsPostRequestLifecycle + +`func NewV3AppsPostRequestLifecycle() *V3AppsPostRequestLifecycle` + +NewV3AppsPostRequestLifecycle instantiates a new V3AppsPostRequestLifecycle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestLifecycleWithDefaults + +`func NewV3AppsPostRequestLifecycleWithDefaults() *V3AppsPostRequestLifecycle` + +NewV3AppsPostRequestLifecycleWithDefaults instantiates a new V3AppsPostRequestLifecycle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsPostRequestLifecycle) GetData() V3AppsPostRequestLifecycleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsPostRequestLifecycle) GetDataOk() (*V3AppsPostRequestLifecycleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsPostRequestLifecycle) SetData(v V3AppsPostRequestLifecycleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsPostRequestLifecycle) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetType + +`func (o *V3AppsPostRequestLifecycle) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3AppsPostRequestLifecycle) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3AppsPostRequestLifecycle) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3AppsPostRequestLifecycle) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequestLifecycleData.md b/docs/V3AppsPostRequestLifecycleData.md new file mode 100644 index 0000000..a41b177 --- /dev/null +++ b/docs/V3AppsPostRequestLifecycleData.md @@ -0,0 +1,56 @@ +# V3AppsPostRequestLifecycleData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buildpacks** | Pointer to **[]string** | List of buildpacks. | [optional] + +## Methods + +### NewV3AppsPostRequestLifecycleData + +`func NewV3AppsPostRequestLifecycleData() *V3AppsPostRequestLifecycleData` + +NewV3AppsPostRequestLifecycleData instantiates a new V3AppsPostRequestLifecycleData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestLifecycleDataWithDefaults + +`func NewV3AppsPostRequestLifecycleDataWithDefaults() *V3AppsPostRequestLifecycleData` + +NewV3AppsPostRequestLifecycleDataWithDefaults instantiates a new V3AppsPostRequestLifecycleData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildpacks + +`func (o *V3AppsPostRequestLifecycleData) GetBuildpacks() []string` + +GetBuildpacks returns the Buildpacks field if non-nil, zero value otherwise. + +### GetBuildpacksOk + +`func (o *V3AppsPostRequestLifecycleData) GetBuildpacksOk() (*[]string, bool)` + +GetBuildpacksOk returns a tuple with the Buildpacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpacks + +`func (o *V3AppsPostRequestLifecycleData) SetBuildpacks(v []string)` + +SetBuildpacks sets Buildpacks field to given value. + +### HasBuildpacks + +`func (o *V3AppsPostRequestLifecycleData) HasBuildpacks() bool` + +HasBuildpacks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequestRelationships.md b/docs/V3AppsPostRequestRelationships.md new file mode 100644 index 0000000..5b29c4f --- /dev/null +++ b/docs/V3AppsPostRequestRelationships.md @@ -0,0 +1,56 @@ +# V3AppsPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Space** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewV3AppsPostRequestRelationships + +`func NewV3AppsPostRequestRelationships() *V3AppsPostRequestRelationships` + +NewV3AppsPostRequestRelationships instantiates a new V3AppsPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestRelationshipsWithDefaults + +`func NewV3AppsPostRequestRelationshipsWithDefaults() *V3AppsPostRequestRelationships` + +NewV3AppsPostRequestRelationshipsWithDefaults instantiates a new V3AppsPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSpace + +`func (o *V3AppsPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *V3AppsPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *V3AppsPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *V3AppsPostRequestRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequestRelationshipsSpace.md b/docs/V3AppsPostRequestRelationshipsSpace.md new file mode 100644 index 0000000..c8aabd3 --- /dev/null +++ b/docs/V3AppsPostRequestRelationshipsSpace.md @@ -0,0 +1,56 @@ +# V3AppsPostRequestRelationshipsSpace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] + +## Methods + +### NewV3AppsPostRequestRelationshipsSpace + +`func NewV3AppsPostRequestRelationshipsSpace() *V3AppsPostRequestRelationshipsSpace` + +NewV3AppsPostRequestRelationshipsSpace instantiates a new V3AppsPostRequestRelationshipsSpace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestRelationshipsSpaceWithDefaults + +`func NewV3AppsPostRequestRelationshipsSpaceWithDefaults() *V3AppsPostRequestRelationshipsSpace` + +NewV3AppsPostRequestRelationshipsSpaceWithDefaults instantiates a new V3AppsPostRequestRelationshipsSpace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3AppsPostRequestRelationshipsSpace) GetData() V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3AppsPostRequestRelationshipsSpace) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3AppsPostRequestRelationshipsSpace) SetData(v V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3AppsPostRequestRelationshipsSpace) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3AppsPostRequestRelationshipsSpaceData.md b/docs/V3AppsPostRequestRelationshipsSpaceData.md new file mode 100644 index 0000000..306e458 --- /dev/null +++ b/docs/V3AppsPostRequestRelationshipsSpaceData.md @@ -0,0 +1,56 @@ +# V3AppsPostRequestRelationshipsSpaceData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] + +## Methods + +### NewV3AppsPostRequestRelationshipsSpaceData + +`func NewV3AppsPostRequestRelationshipsSpaceData() *V3AppsPostRequestRelationshipsSpaceData` + +NewV3AppsPostRequestRelationshipsSpaceData instantiates a new V3AppsPostRequestRelationshipsSpaceData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3AppsPostRequestRelationshipsSpaceDataWithDefaults + +`func NewV3AppsPostRequestRelationshipsSpaceDataWithDefaults() *V3AppsPostRequestRelationshipsSpaceData` + +NewV3AppsPostRequestRelationshipsSpaceDataWithDefaults instantiates a new V3AppsPostRequestRelationshipsSpaceData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3AppsPostRequestRelationshipsSpaceData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3AppsPostRequestRelationshipsSpaceData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3AppsPostRequestRelationshipsSpaceData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3AppsPostRequestRelationshipsSpaceData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsGet200Response.md b/docs/V3DomainsGet200Response.md new file mode 100644 index 0000000..2928be3 --- /dev/null +++ b/docs/V3DomainsGet200Response.md @@ -0,0 +1,82 @@ +# V3DomainsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**V3DomainsGet200ResponsePagination**](V3DomainsGet200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]Domain**](Domain.md) | | [optional] + +## Methods + +### NewV3DomainsGet200Response + +`func NewV3DomainsGet200Response() *V3DomainsGet200Response` + +NewV3DomainsGet200Response instantiates a new V3DomainsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsGet200ResponseWithDefaults + +`func NewV3DomainsGet200ResponseWithDefaults() *V3DomainsGet200Response` + +NewV3DomainsGet200ResponseWithDefaults instantiates a new V3DomainsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3DomainsGet200Response) GetPagination() V3DomainsGet200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3DomainsGet200Response) GetPaginationOk() (*V3DomainsGet200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3DomainsGet200Response) SetPagination(v V3DomainsGet200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3DomainsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3DomainsGet200Response) GetResources() []Domain` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3DomainsGet200Response) GetResourcesOk() (*[]Domain, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3DomainsGet200Response) SetResources(v []Domain)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3DomainsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsGet200ResponsePagination.md b/docs/V3DomainsGet200ResponsePagination.md new file mode 100644 index 0000000..23aebc9 --- /dev/null +++ b/docs/V3DomainsGet200ResponsePagination.md @@ -0,0 +1,186 @@ +# V3DomainsGet200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Last** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Next** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Previous** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewV3DomainsGet200ResponsePagination + +`func NewV3DomainsGet200ResponsePagination() *V3DomainsGet200ResponsePagination` + +NewV3DomainsGet200ResponsePagination instantiates a new V3DomainsGet200ResponsePagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsGet200ResponsePaginationWithDefaults + +`func NewV3DomainsGet200ResponsePaginationWithDefaults() *V3DomainsGet200ResponsePagination` + +NewV3DomainsGet200ResponsePaginationWithDefaults instantiates a new V3DomainsGet200ResponsePagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *V3DomainsGet200ResponsePagination) GetFirst() Get200ResponseLinksLogCache` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *V3DomainsGet200ResponsePagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *V3DomainsGet200ResponsePagination) SetFirst(v Get200ResponseLinksLogCache)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *V3DomainsGet200ResponsePagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *V3DomainsGet200ResponsePagination) GetLast() Get200ResponseLinksLogCache` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *V3DomainsGet200ResponsePagination) GetLastOk() (*Get200ResponseLinksLogCache, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *V3DomainsGet200ResponsePagination) SetLast(v Get200ResponseLinksLogCache)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *V3DomainsGet200ResponsePagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *V3DomainsGet200ResponsePagination) GetNext() Get200ResponseLinksLogCache` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *V3DomainsGet200ResponsePagination) GetNextOk() (*Get200ResponseLinksLogCache, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *V3DomainsGet200ResponsePagination) SetNext(v Get200ResponseLinksLogCache)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *V3DomainsGet200ResponsePagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *V3DomainsGet200ResponsePagination) GetPrevious() Get200ResponseLinksLogCache` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *V3DomainsGet200ResponsePagination) GetPreviousOk() (*Get200ResponseLinksLogCache, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *V3DomainsGet200ResponsePagination) SetPrevious(v Get200ResponseLinksLogCache)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *V3DomainsGet200ResponsePagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetTotalPages + +`func (o *V3DomainsGet200ResponsePagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *V3DomainsGet200ResponsePagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *V3DomainsGet200ResponsePagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *V3DomainsGet200ResponsePagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *V3DomainsGet200ResponsePagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *V3DomainsGet200ResponsePagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *V3DomainsGet200ResponsePagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *V3DomainsGet200ResponsePagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsGuidPatchRequest.md b/docs/V3DomainsGuidPatchRequest.md new file mode 100644 index 0000000..24e5b90 --- /dev/null +++ b/docs/V3DomainsGuidPatchRequest.md @@ -0,0 +1,56 @@ +# V3DomainsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3DomainsPostRequestMetadata**](V3DomainsPostRequestMetadata.md) | | [optional] + +## Methods + +### NewV3DomainsGuidPatchRequest + +`func NewV3DomainsGuidPatchRequest() *V3DomainsGuidPatchRequest` + +NewV3DomainsGuidPatchRequest instantiates a new V3DomainsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsGuidPatchRequestWithDefaults + +`func NewV3DomainsGuidPatchRequestWithDefaults() *V3DomainsGuidPatchRequest` + +NewV3DomainsGuidPatchRequestWithDefaults instantiates a new V3DomainsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3DomainsGuidPatchRequest) GetMetadata() V3DomainsPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3DomainsGuidPatchRequest) GetMetadataOk() (*V3DomainsPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3DomainsGuidPatchRequest) SetMetadata(v V3DomainsPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3DomainsGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md b/docs/V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md new file mode 100644 index 0000000..0363207 --- /dev/null +++ b/docs/V3DomainsGuidRelationshipsSharedOrganizationsPost200Response.md @@ -0,0 +1,56 @@ +# V3DomainsGuidRelationshipsSharedOrganizationsPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]Organization**](Organization.md) | | [optional] + +## Methods + +### NewV3DomainsGuidRelationshipsSharedOrganizationsPost200Response + +`func NewV3DomainsGuidRelationshipsSharedOrganizationsPost200Response() *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response` + +NewV3DomainsGuidRelationshipsSharedOrganizationsPost200Response instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsGuidRelationshipsSharedOrganizationsPost200ResponseWithDefaults + +`func NewV3DomainsGuidRelationshipsSharedOrganizationsPost200ResponseWithDefaults() *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response` + +NewV3DomainsGuidRelationshipsSharedOrganizationsPost200ResponseWithDefaults instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPost200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) GetData() []Organization` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) GetDataOk() (*[]Organization, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) SetData(v []Organization)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md b/docs/V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md new file mode 100644 index 0000000..f53bd58 --- /dev/null +++ b/docs/V3DomainsGuidRelationshipsSharedOrganizationsPostRequest.md @@ -0,0 +1,56 @@ +# V3DomainsGuidRelationshipsSharedOrganizationsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3DomainsPostRequestOrganizationData**](V3DomainsPostRequestOrganizationData.md) | | [optional] + +## Methods + +### NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest + +`func NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest() *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest` + +NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequestWithDefaults + +`func NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequestWithDefaults() *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest` + +NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequestWithDefaults instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) GetData() []V3DomainsPostRequestOrganizationData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) GetDataOk() (*[]V3DomainsPostRequestOrganizationData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) SetData(v []V3DomainsPostRequestOrganizationData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsPostRequest.md b/docs/V3DomainsPostRequest.md new file mode 100644 index 0000000..a4f23f9 --- /dev/null +++ b/docs/V3DomainsPostRequest.md @@ -0,0 +1,186 @@ +# V3DomainsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Internal** | Pointer to **bool** | Whether the domain is used for internal traffic | [optional] +**Metadata** | Pointer to [**V3DomainsPostRequestMetadata**](V3DomainsPostRequestMetadata.md) | | [optional] +**Name** | Pointer to **string** | Name of the domain | [optional] +**Organization** | Pointer to [**V3DomainsPostRequestOrganization**](V3DomainsPostRequestOrganization.md) | | [optional] +**RouterGroup** | Pointer to [**V3DomainsPostRequestRouterGroup**](V3DomainsPostRequestRouterGroup.md) | | [optional] +**SharedOrganizations** | Pointer to [**[]V3DomainsPostRequestOrganizationData**](V3DomainsPostRequestOrganizationData.md) | | [optional] + +## Methods + +### NewV3DomainsPostRequest + +`func NewV3DomainsPostRequest() *V3DomainsPostRequest` + +NewV3DomainsPostRequest instantiates a new V3DomainsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsPostRequestWithDefaults + +`func NewV3DomainsPostRequestWithDefaults() *V3DomainsPostRequest` + +NewV3DomainsPostRequestWithDefaults instantiates a new V3DomainsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInternal + +`func (o *V3DomainsPostRequest) GetInternal() bool` + +GetInternal returns the Internal field if non-nil, zero value otherwise. + +### GetInternalOk + +`func (o *V3DomainsPostRequest) GetInternalOk() (*bool, bool)` + +GetInternalOk returns a tuple with the Internal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternal + +`func (o *V3DomainsPostRequest) SetInternal(v bool)` + +SetInternal sets Internal field to given value. + +### HasInternal + +`func (o *V3DomainsPostRequest) HasInternal() bool` + +HasInternal returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3DomainsPostRequest) GetMetadata() V3DomainsPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3DomainsPostRequest) GetMetadataOk() (*V3DomainsPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3DomainsPostRequest) SetMetadata(v V3DomainsPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3DomainsPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3DomainsPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3DomainsPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3DomainsPostRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3DomainsPostRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOrganization + +`func (o *V3DomainsPostRequest) GetOrganization() V3DomainsPostRequestOrganization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *V3DomainsPostRequest) GetOrganizationOk() (*V3DomainsPostRequestOrganization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *V3DomainsPostRequest) SetOrganization(v V3DomainsPostRequestOrganization)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *V3DomainsPostRequest) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetRouterGroup + +`func (o *V3DomainsPostRequest) GetRouterGroup() V3DomainsPostRequestRouterGroup` + +GetRouterGroup returns the RouterGroup field if non-nil, zero value otherwise. + +### GetRouterGroupOk + +`func (o *V3DomainsPostRequest) GetRouterGroupOk() (*V3DomainsPostRequestRouterGroup, bool)` + +GetRouterGroupOk returns a tuple with the RouterGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouterGroup + +`func (o *V3DomainsPostRequest) SetRouterGroup(v V3DomainsPostRequestRouterGroup)` + +SetRouterGroup sets RouterGroup field to given value. + +### HasRouterGroup + +`func (o *V3DomainsPostRequest) HasRouterGroup() bool` + +HasRouterGroup returns a boolean if a field has been set. + +### GetSharedOrganizations + +`func (o *V3DomainsPostRequest) GetSharedOrganizations() []V3DomainsPostRequestOrganizationData` + +GetSharedOrganizations returns the SharedOrganizations field if non-nil, zero value otherwise. + +### GetSharedOrganizationsOk + +`func (o *V3DomainsPostRequest) GetSharedOrganizationsOk() (*[]V3DomainsPostRequestOrganizationData, bool)` + +GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedOrganizations + +`func (o *V3DomainsPostRequest) SetSharedOrganizations(v []V3DomainsPostRequestOrganizationData)` + +SetSharedOrganizations sets SharedOrganizations field to given value. + +### HasSharedOrganizations + +`func (o *V3DomainsPostRequest) HasSharedOrganizations() bool` + +HasSharedOrganizations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsPostRequestMetadata.md b/docs/V3DomainsPostRequestMetadata.md new file mode 100644 index 0000000..bc314ce --- /dev/null +++ b/docs/V3DomainsPostRequestMetadata.md @@ -0,0 +1,82 @@ +# V3DomainsPostRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | Annotations applied to the domain | [optional] +**Labels** | Pointer to **map[string]interface{}** | Labels applied to the domain | [optional] + +## Methods + +### NewV3DomainsPostRequestMetadata + +`func NewV3DomainsPostRequestMetadata() *V3DomainsPostRequestMetadata` + +NewV3DomainsPostRequestMetadata instantiates a new V3DomainsPostRequestMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsPostRequestMetadataWithDefaults + +`func NewV3DomainsPostRequestMetadataWithDefaults() *V3DomainsPostRequestMetadata` + +NewV3DomainsPostRequestMetadataWithDefaults instantiates a new V3DomainsPostRequestMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3DomainsPostRequestMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3DomainsPostRequestMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3DomainsPostRequestMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3DomainsPostRequestMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3DomainsPostRequestMetadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3DomainsPostRequestMetadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3DomainsPostRequestMetadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3DomainsPostRequestMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsPostRequestOrganization.md b/docs/V3DomainsPostRequestOrganization.md new file mode 100644 index 0000000..63ad712 --- /dev/null +++ b/docs/V3DomainsPostRequestOrganization.md @@ -0,0 +1,56 @@ +# V3DomainsPostRequestOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3DomainsPostRequestOrganizationData**](V3DomainsPostRequestOrganizationData.md) | | [optional] + +## Methods + +### NewV3DomainsPostRequestOrganization + +`func NewV3DomainsPostRequestOrganization() *V3DomainsPostRequestOrganization` + +NewV3DomainsPostRequestOrganization instantiates a new V3DomainsPostRequestOrganization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsPostRequestOrganizationWithDefaults + +`func NewV3DomainsPostRequestOrganizationWithDefaults() *V3DomainsPostRequestOrganization` + +NewV3DomainsPostRequestOrganizationWithDefaults instantiates a new V3DomainsPostRequestOrganization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3DomainsPostRequestOrganization) GetData() V3DomainsPostRequestOrganizationData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3DomainsPostRequestOrganization) GetDataOk() (*V3DomainsPostRequestOrganizationData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3DomainsPostRequestOrganization) SetData(v V3DomainsPostRequestOrganizationData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3DomainsPostRequestOrganization) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsPostRequestOrganizationData.md b/docs/V3DomainsPostRequestOrganizationData.md new file mode 100644 index 0000000..e9406bf --- /dev/null +++ b/docs/V3DomainsPostRequestOrganizationData.md @@ -0,0 +1,56 @@ +# V3DomainsPostRequestOrganizationData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | The organization guid | [optional] + +## Methods + +### NewV3DomainsPostRequestOrganizationData + +`func NewV3DomainsPostRequestOrganizationData() *V3DomainsPostRequestOrganizationData` + +NewV3DomainsPostRequestOrganizationData instantiates a new V3DomainsPostRequestOrganizationData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsPostRequestOrganizationDataWithDefaults + +`func NewV3DomainsPostRequestOrganizationDataWithDefaults() *V3DomainsPostRequestOrganizationData` + +NewV3DomainsPostRequestOrganizationDataWithDefaults instantiates a new V3DomainsPostRequestOrganizationData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3DomainsPostRequestOrganizationData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3DomainsPostRequestOrganizationData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3DomainsPostRequestOrganizationData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3DomainsPostRequestOrganizationData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DomainsPostRequestRouterGroup.md b/docs/V3DomainsPostRequestRouterGroup.md new file mode 100644 index 0000000..9b739f0 --- /dev/null +++ b/docs/V3DomainsPostRequestRouterGroup.md @@ -0,0 +1,56 @@ +# V3DomainsPostRequestRouterGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | The desired router group guid | [optional] + +## Methods + +### NewV3DomainsPostRequestRouterGroup + +`func NewV3DomainsPostRequestRouterGroup() *V3DomainsPostRequestRouterGroup` + +NewV3DomainsPostRequestRouterGroup instantiates a new V3DomainsPostRequestRouterGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DomainsPostRequestRouterGroupWithDefaults + +`func NewV3DomainsPostRequestRouterGroupWithDefaults() *V3DomainsPostRequestRouterGroup` + +NewV3DomainsPostRequestRouterGroupWithDefaults instantiates a new V3DomainsPostRequestRouterGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3DomainsPostRequestRouterGroup) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3DomainsPostRequestRouterGroup) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3DomainsPostRequestRouterGroup) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3DomainsPostRequestRouterGroup) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DropletsPostRequest.md b/docs/V3DropletsPostRequest.md new file mode 100644 index 0000000..fb43791 --- /dev/null +++ b/docs/V3DropletsPostRequest.md @@ -0,0 +1,51 @@ +# V3DropletsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Relationships** | [**V3DropletsPostRequestRelationships**](V3DropletsPostRequestRelationships.md) | | + +## Methods + +### NewV3DropletsPostRequest + +`func NewV3DropletsPostRequest(relationships V3DropletsPostRequestRelationships, ) *V3DropletsPostRequest` + +NewV3DropletsPostRequest instantiates a new V3DropletsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DropletsPostRequestWithDefaults + +`func NewV3DropletsPostRequestWithDefaults() *V3DropletsPostRequest` + +NewV3DropletsPostRequestWithDefaults instantiates a new V3DropletsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRelationships + +`func (o *V3DropletsPostRequest) GetRelationships() V3DropletsPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3DropletsPostRequest) GetRelationshipsOk() (*V3DropletsPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3DropletsPostRequest) SetRelationships(v V3DropletsPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DropletsPostRequestRelationships.md b/docs/V3DropletsPostRequestRelationships.md new file mode 100644 index 0000000..93a36d9 --- /dev/null +++ b/docs/V3DropletsPostRequestRelationships.md @@ -0,0 +1,56 @@ +# V3DropletsPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3DropletsPostRequestRelationshipsApp**](V3DropletsPostRequestRelationshipsApp.md) | | [optional] + +## Methods + +### NewV3DropletsPostRequestRelationships + +`func NewV3DropletsPostRequestRelationships() *V3DropletsPostRequestRelationships` + +NewV3DropletsPostRequestRelationships instantiates a new V3DropletsPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DropletsPostRequestRelationshipsWithDefaults + +`func NewV3DropletsPostRequestRelationshipsWithDefaults() *V3DropletsPostRequestRelationships` + +NewV3DropletsPostRequestRelationshipsWithDefaults instantiates a new V3DropletsPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *V3DropletsPostRequestRelationships) GetApp() V3DropletsPostRequestRelationshipsApp` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V3DropletsPostRequestRelationships) GetAppOk() (*V3DropletsPostRequestRelationshipsApp, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *V3DropletsPostRequestRelationships) SetApp(v V3DropletsPostRequestRelationshipsApp)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V3DropletsPostRequestRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DropletsPostRequestRelationshipsApp.md b/docs/V3DropletsPostRequestRelationshipsApp.md new file mode 100644 index 0000000..db62f4d --- /dev/null +++ b/docs/V3DropletsPostRequestRelationshipsApp.md @@ -0,0 +1,56 @@ +# V3DropletsPostRequestRelationshipsApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3DropletsPostRequestRelationshipsAppData**](V3DropletsPostRequestRelationshipsAppData.md) | | [optional] + +## Methods + +### NewV3DropletsPostRequestRelationshipsApp + +`func NewV3DropletsPostRequestRelationshipsApp() *V3DropletsPostRequestRelationshipsApp` + +NewV3DropletsPostRequestRelationshipsApp instantiates a new V3DropletsPostRequestRelationshipsApp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DropletsPostRequestRelationshipsAppWithDefaults + +`func NewV3DropletsPostRequestRelationshipsAppWithDefaults() *V3DropletsPostRequestRelationshipsApp` + +NewV3DropletsPostRequestRelationshipsAppWithDefaults instantiates a new V3DropletsPostRequestRelationshipsApp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3DropletsPostRequestRelationshipsApp) GetData() V3DropletsPostRequestRelationshipsAppData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3DropletsPostRequestRelationshipsApp) GetDataOk() (*V3DropletsPostRequestRelationshipsAppData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3DropletsPostRequestRelationshipsApp) SetData(v V3DropletsPostRequestRelationshipsAppData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3DropletsPostRequestRelationshipsApp) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3DropletsPostRequestRelationshipsAppData.md b/docs/V3DropletsPostRequestRelationshipsAppData.md new file mode 100644 index 0000000..89c39bf --- /dev/null +++ b/docs/V3DropletsPostRequestRelationshipsAppData.md @@ -0,0 +1,56 @@ +# V3DropletsPostRequestRelationshipsAppData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] + +## Methods + +### NewV3DropletsPostRequestRelationshipsAppData + +`func NewV3DropletsPostRequestRelationshipsAppData() *V3DropletsPostRequestRelationshipsAppData` + +NewV3DropletsPostRequestRelationshipsAppData instantiates a new V3DropletsPostRequestRelationshipsAppData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3DropletsPostRequestRelationshipsAppDataWithDefaults + +`func NewV3DropletsPostRequestRelationshipsAppDataWithDefaults() *V3DropletsPostRequestRelationshipsAppData` + +NewV3DropletsPostRequestRelationshipsAppDataWithDefaults instantiates a new V3DropletsPostRequestRelationshipsAppData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3DropletsPostRequestRelationshipsAppData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3DropletsPostRequestRelationshipsAppData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3DropletsPostRequestRelationshipsAppData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3DropletsPostRequestRelationshipsAppData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3EnvironmentVariableGroupsNamePatchRequest.md b/docs/V3EnvironmentVariableGroupsNamePatchRequest.md new file mode 100644 index 0000000..2222465 --- /dev/null +++ b/docs/V3EnvironmentVariableGroupsNamePatchRequest.md @@ -0,0 +1,56 @@ +# V3EnvironmentVariableGroupsNamePatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Var** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewV3EnvironmentVariableGroupsNamePatchRequest + +`func NewV3EnvironmentVariableGroupsNamePatchRequest() *V3EnvironmentVariableGroupsNamePatchRequest` + +NewV3EnvironmentVariableGroupsNamePatchRequest instantiates a new V3EnvironmentVariableGroupsNamePatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3EnvironmentVariableGroupsNamePatchRequestWithDefaults + +`func NewV3EnvironmentVariableGroupsNamePatchRequestWithDefaults() *V3EnvironmentVariableGroupsNamePatchRequest` + +NewV3EnvironmentVariableGroupsNamePatchRequestWithDefaults instantiates a new V3EnvironmentVariableGroupsNamePatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVar + +`func (o *V3EnvironmentVariableGroupsNamePatchRequest) GetVar() map[string]string` + +GetVar returns the Var field if non-nil, zero value otherwise. + +### GetVarOk + +`func (o *V3EnvironmentVariableGroupsNamePatchRequest) GetVarOk() (*map[string]string, bool)` + +GetVarOk returns a tuple with the Var field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVar + +`func (o *V3EnvironmentVariableGroupsNamePatchRequest) SetVar(v map[string]string)` + +SetVar sets Var field to given value. + +### HasVar + +`func (o *V3EnvironmentVariableGroupsNamePatchRequest) HasVar() bool` + +HasVar returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3FeatureFlagsGet200Response.md b/docs/V3FeatureFlagsGet200Response.md new file mode 100644 index 0000000..efe60b8 --- /dev/null +++ b/docs/V3FeatureFlagsGet200Response.md @@ -0,0 +1,82 @@ +# V3FeatureFlagsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]FeatureFlag**](FeatureFlag.md) | | [optional] + +## Methods + +### NewV3FeatureFlagsGet200Response + +`func NewV3FeatureFlagsGet200Response() *V3FeatureFlagsGet200Response` + +NewV3FeatureFlagsGet200Response instantiates a new V3FeatureFlagsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3FeatureFlagsGet200ResponseWithDefaults + +`func NewV3FeatureFlagsGet200ResponseWithDefaults() *V3FeatureFlagsGet200Response` + +NewV3FeatureFlagsGet200ResponseWithDefaults instantiates a new V3FeatureFlagsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3FeatureFlagsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3FeatureFlagsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3FeatureFlagsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3FeatureFlagsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3FeatureFlagsGet200Response) GetResources() []FeatureFlag` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3FeatureFlagsGet200Response) GetResourcesOk() (*[]FeatureFlag, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3FeatureFlagsGet200Response) SetResources(v []FeatureFlag)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3FeatureFlagsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3FeatureFlagsNamePatchRequest.md b/docs/V3FeatureFlagsNamePatchRequest.md new file mode 100644 index 0000000..59c8b5f --- /dev/null +++ b/docs/V3FeatureFlagsNamePatchRequest.md @@ -0,0 +1,82 @@ +# V3FeatureFlagsNamePatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomErrorMessage** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewV3FeatureFlagsNamePatchRequest + +`func NewV3FeatureFlagsNamePatchRequest() *V3FeatureFlagsNamePatchRequest` + +NewV3FeatureFlagsNamePatchRequest instantiates a new V3FeatureFlagsNamePatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3FeatureFlagsNamePatchRequestWithDefaults + +`func NewV3FeatureFlagsNamePatchRequestWithDefaults() *V3FeatureFlagsNamePatchRequest` + +NewV3FeatureFlagsNamePatchRequestWithDefaults instantiates a new V3FeatureFlagsNamePatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomErrorMessage + +`func (o *V3FeatureFlagsNamePatchRequest) GetCustomErrorMessage() string` + +GetCustomErrorMessage returns the CustomErrorMessage field if non-nil, zero value otherwise. + +### GetCustomErrorMessageOk + +`func (o *V3FeatureFlagsNamePatchRequest) GetCustomErrorMessageOk() (*string, bool)` + +GetCustomErrorMessageOk returns a tuple with the CustomErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomErrorMessage + +`func (o *V3FeatureFlagsNamePatchRequest) SetCustomErrorMessage(v string)` + +SetCustomErrorMessage sets CustomErrorMessage field to given value. + +### HasCustomErrorMessage + +`func (o *V3FeatureFlagsNamePatchRequest) HasCustomErrorMessage() bool` + +HasCustomErrorMessage returns a boolean if a field has been set. + +### GetEnabled + +`func (o *V3FeatureFlagsNamePatchRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *V3FeatureFlagsNamePatchRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *V3FeatureFlagsNamePatchRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *V3FeatureFlagsNamePatchRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3Get200Response.md b/docs/V3Get200Response.md new file mode 100644 index 0000000..dff756e --- /dev/null +++ b/docs/V3Get200Response.md @@ -0,0 +1,56 @@ +# V3Get200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**V3Get200ResponseLinks**](V3Get200ResponseLinks.md) | | [optional] + +## Methods + +### NewV3Get200Response + +`func NewV3Get200Response() *V3Get200Response` + +NewV3Get200Response instantiates a new V3Get200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3Get200ResponseWithDefaults + +`func NewV3Get200ResponseWithDefaults() *V3Get200Response` + +NewV3Get200ResponseWithDefaults instantiates a new V3Get200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *V3Get200Response) GetLinks() V3Get200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3Get200Response) GetLinksOk() (*V3Get200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3Get200Response) SetLinks(v V3Get200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3Get200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3Get200ResponseLinks.md b/docs/V3Get200ResponseLinks.md new file mode 100644 index 0000000..52aac9f --- /dev/null +++ b/docs/V3Get200ResponseLinks.md @@ -0,0 +1,846 @@ +# V3Get200ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppUsageEvents** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Apps** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**AuditEvents** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Buildpacks** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Builds** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Deployments** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Domains** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Droplets** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**EnvironmentVariableGroups** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**FeatureFlags** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Info** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**IsolationSegments** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**OrganizationQuotas** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Organizations** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Packages** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Processes** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ResourceMatches** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Roles** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Routes** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**SecurityGroups** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Self** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceBrokers** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceInstances** | Pointer to [**NullableV3Get200ResponseLinksServiceInstances**](V3Get200ResponseLinksServiceInstances.md) | | [optional] +**ServiceOfferings** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServicePlans** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**ServiceUsageEvents** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**SpaceQuotas** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Spaces** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Stacks** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Tasks** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Users** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] + +## Methods + +### NewV3Get200ResponseLinks + +`func NewV3Get200ResponseLinks() *V3Get200ResponseLinks` + +NewV3Get200ResponseLinks instantiates a new V3Get200ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3Get200ResponseLinksWithDefaults + +`func NewV3Get200ResponseLinksWithDefaults() *V3Get200ResponseLinks` + +NewV3Get200ResponseLinksWithDefaults instantiates a new V3Get200ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAppUsageEvents + +`func (o *V3Get200ResponseLinks) GetAppUsageEvents() Get200ResponseLinksLogCache` + +GetAppUsageEvents returns the AppUsageEvents field if non-nil, zero value otherwise. + +### GetAppUsageEventsOk + +`func (o *V3Get200ResponseLinks) GetAppUsageEventsOk() (*Get200ResponseLinksLogCache, bool)` + +GetAppUsageEventsOk returns a tuple with the AppUsageEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppUsageEvents + +`func (o *V3Get200ResponseLinks) SetAppUsageEvents(v Get200ResponseLinksLogCache)` + +SetAppUsageEvents sets AppUsageEvents field to given value. + +### HasAppUsageEvents + +`func (o *V3Get200ResponseLinks) HasAppUsageEvents() bool` + +HasAppUsageEvents returns a boolean if a field has been set. + +### GetApps + +`func (o *V3Get200ResponseLinks) GetApps() Get200ResponseLinksLogCache` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *V3Get200ResponseLinks) GetAppsOk() (*Get200ResponseLinksLogCache, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *V3Get200ResponseLinks) SetApps(v Get200ResponseLinksLogCache)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *V3Get200ResponseLinks) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetAuditEvents + +`func (o *V3Get200ResponseLinks) GetAuditEvents() Get200ResponseLinksLogCache` + +GetAuditEvents returns the AuditEvents field if non-nil, zero value otherwise. + +### GetAuditEventsOk + +`func (o *V3Get200ResponseLinks) GetAuditEventsOk() (*Get200ResponseLinksLogCache, bool)` + +GetAuditEventsOk returns a tuple with the AuditEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditEvents + +`func (o *V3Get200ResponseLinks) SetAuditEvents(v Get200ResponseLinksLogCache)` + +SetAuditEvents sets AuditEvents field to given value. + +### HasAuditEvents + +`func (o *V3Get200ResponseLinks) HasAuditEvents() bool` + +HasAuditEvents returns a boolean if a field has been set. + +### GetBuildpacks + +`func (o *V3Get200ResponseLinks) GetBuildpacks() Get200ResponseLinksLogCache` + +GetBuildpacks returns the Buildpacks field if non-nil, zero value otherwise. + +### GetBuildpacksOk + +`func (o *V3Get200ResponseLinks) GetBuildpacksOk() (*Get200ResponseLinksLogCache, bool)` + +GetBuildpacksOk returns a tuple with the Buildpacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildpacks + +`func (o *V3Get200ResponseLinks) SetBuildpacks(v Get200ResponseLinksLogCache)` + +SetBuildpacks sets Buildpacks field to given value. + +### HasBuildpacks + +`func (o *V3Get200ResponseLinks) HasBuildpacks() bool` + +HasBuildpacks returns a boolean if a field has been set. + +### GetBuilds + +`func (o *V3Get200ResponseLinks) GetBuilds() Get200ResponseLinksLogCache` + +GetBuilds returns the Builds field if non-nil, zero value otherwise. + +### GetBuildsOk + +`func (o *V3Get200ResponseLinks) GetBuildsOk() (*Get200ResponseLinksLogCache, bool)` + +GetBuildsOk returns a tuple with the Builds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuilds + +`func (o *V3Get200ResponseLinks) SetBuilds(v Get200ResponseLinksLogCache)` + +SetBuilds sets Builds field to given value. + +### HasBuilds + +`func (o *V3Get200ResponseLinks) HasBuilds() bool` + +HasBuilds returns a boolean if a field has been set. + +### GetDeployments + +`func (o *V3Get200ResponseLinks) GetDeployments() Get200ResponseLinksLogCache` + +GetDeployments returns the Deployments field if non-nil, zero value otherwise. + +### GetDeploymentsOk + +`func (o *V3Get200ResponseLinks) GetDeploymentsOk() (*Get200ResponseLinksLogCache, bool)` + +GetDeploymentsOk returns a tuple with the Deployments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployments + +`func (o *V3Get200ResponseLinks) SetDeployments(v Get200ResponseLinksLogCache)` + +SetDeployments sets Deployments field to given value. + +### HasDeployments + +`func (o *V3Get200ResponseLinks) HasDeployments() bool` + +HasDeployments returns a boolean if a field has been set. + +### GetDomains + +`func (o *V3Get200ResponseLinks) GetDomains() Get200ResponseLinksLogCache` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *V3Get200ResponseLinks) GetDomainsOk() (*Get200ResponseLinksLogCache, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *V3Get200ResponseLinks) SetDomains(v Get200ResponseLinksLogCache)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *V3Get200ResponseLinks) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetDroplets + +`func (o *V3Get200ResponseLinks) GetDroplets() Get200ResponseLinksLogCache` + +GetDroplets returns the Droplets field if non-nil, zero value otherwise. + +### GetDropletsOk + +`func (o *V3Get200ResponseLinks) GetDropletsOk() (*Get200ResponseLinksLogCache, bool)` + +GetDropletsOk returns a tuple with the Droplets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDroplets + +`func (o *V3Get200ResponseLinks) SetDroplets(v Get200ResponseLinksLogCache)` + +SetDroplets sets Droplets field to given value. + +### HasDroplets + +`func (o *V3Get200ResponseLinks) HasDroplets() bool` + +HasDroplets returns a boolean if a field has been set. + +### GetEnvironmentVariableGroups + +`func (o *V3Get200ResponseLinks) GetEnvironmentVariableGroups() Get200ResponseLinksLogCache` + +GetEnvironmentVariableGroups returns the EnvironmentVariableGroups field if non-nil, zero value otherwise. + +### GetEnvironmentVariableGroupsOk + +`func (o *V3Get200ResponseLinks) GetEnvironmentVariableGroupsOk() (*Get200ResponseLinksLogCache, bool)` + +GetEnvironmentVariableGroupsOk returns a tuple with the EnvironmentVariableGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentVariableGroups + +`func (o *V3Get200ResponseLinks) SetEnvironmentVariableGroups(v Get200ResponseLinksLogCache)` + +SetEnvironmentVariableGroups sets EnvironmentVariableGroups field to given value. + +### HasEnvironmentVariableGroups + +`func (o *V3Get200ResponseLinks) HasEnvironmentVariableGroups() bool` + +HasEnvironmentVariableGroups returns a boolean if a field has been set. + +### GetFeatureFlags + +`func (o *V3Get200ResponseLinks) GetFeatureFlags() Get200ResponseLinksLogCache` + +GetFeatureFlags returns the FeatureFlags field if non-nil, zero value otherwise. + +### GetFeatureFlagsOk + +`func (o *V3Get200ResponseLinks) GetFeatureFlagsOk() (*Get200ResponseLinksLogCache, bool)` + +GetFeatureFlagsOk returns a tuple with the FeatureFlags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlags + +`func (o *V3Get200ResponseLinks) SetFeatureFlags(v Get200ResponseLinksLogCache)` + +SetFeatureFlags sets FeatureFlags field to given value. + +### HasFeatureFlags + +`func (o *V3Get200ResponseLinks) HasFeatureFlags() bool` + +HasFeatureFlags returns a boolean if a field has been set. + +### GetInfo + +`func (o *V3Get200ResponseLinks) GetInfo() Get200ResponseLinksLogCache` + +GetInfo returns the Info field if non-nil, zero value otherwise. + +### GetInfoOk + +`func (o *V3Get200ResponseLinks) GetInfoOk() (*Get200ResponseLinksLogCache, bool)` + +GetInfoOk returns a tuple with the Info field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfo + +`func (o *V3Get200ResponseLinks) SetInfo(v Get200ResponseLinksLogCache)` + +SetInfo sets Info field to given value. + +### HasInfo + +`func (o *V3Get200ResponseLinks) HasInfo() bool` + +HasInfo returns a boolean if a field has been set. + +### GetIsolationSegments + +`func (o *V3Get200ResponseLinks) GetIsolationSegments() Get200ResponseLinksLogCache` + +GetIsolationSegments returns the IsolationSegments field if non-nil, zero value otherwise. + +### GetIsolationSegmentsOk + +`func (o *V3Get200ResponseLinks) GetIsolationSegmentsOk() (*Get200ResponseLinksLogCache, bool)` + +GetIsolationSegmentsOk returns a tuple with the IsolationSegments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsolationSegments + +`func (o *V3Get200ResponseLinks) SetIsolationSegments(v Get200ResponseLinksLogCache)` + +SetIsolationSegments sets IsolationSegments field to given value. + +### HasIsolationSegments + +`func (o *V3Get200ResponseLinks) HasIsolationSegments() bool` + +HasIsolationSegments returns a boolean if a field has been set. + +### GetOrganizationQuotas + +`func (o *V3Get200ResponseLinks) GetOrganizationQuotas() Get200ResponseLinksLogCache` + +GetOrganizationQuotas returns the OrganizationQuotas field if non-nil, zero value otherwise. + +### GetOrganizationQuotasOk + +`func (o *V3Get200ResponseLinks) GetOrganizationQuotasOk() (*Get200ResponseLinksLogCache, bool)` + +GetOrganizationQuotasOk returns a tuple with the OrganizationQuotas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationQuotas + +`func (o *V3Get200ResponseLinks) SetOrganizationQuotas(v Get200ResponseLinksLogCache)` + +SetOrganizationQuotas sets OrganizationQuotas field to given value. + +### HasOrganizationQuotas + +`func (o *V3Get200ResponseLinks) HasOrganizationQuotas() bool` + +HasOrganizationQuotas returns a boolean if a field has been set. + +### GetOrganizations + +`func (o *V3Get200ResponseLinks) GetOrganizations() Get200ResponseLinksLogCache` + +GetOrganizations returns the Organizations field if non-nil, zero value otherwise. + +### GetOrganizationsOk + +`func (o *V3Get200ResponseLinks) GetOrganizationsOk() (*Get200ResponseLinksLogCache, bool)` + +GetOrganizationsOk returns a tuple with the Organizations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizations + +`func (o *V3Get200ResponseLinks) SetOrganizations(v Get200ResponseLinksLogCache)` + +SetOrganizations sets Organizations field to given value. + +### HasOrganizations + +`func (o *V3Get200ResponseLinks) HasOrganizations() bool` + +HasOrganizations returns a boolean if a field has been set. + +### GetPackages + +`func (o *V3Get200ResponseLinks) GetPackages() Get200ResponseLinksLogCache` + +GetPackages returns the Packages field if non-nil, zero value otherwise. + +### GetPackagesOk + +`func (o *V3Get200ResponseLinks) GetPackagesOk() (*Get200ResponseLinksLogCache, bool)` + +GetPackagesOk returns a tuple with the Packages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackages + +`func (o *V3Get200ResponseLinks) SetPackages(v Get200ResponseLinksLogCache)` + +SetPackages sets Packages field to given value. + +### HasPackages + +`func (o *V3Get200ResponseLinks) HasPackages() bool` + +HasPackages returns a boolean if a field has been set. + +### GetProcesses + +`func (o *V3Get200ResponseLinks) GetProcesses() Get200ResponseLinksLogCache` + +GetProcesses returns the Processes field if non-nil, zero value otherwise. + +### GetProcessesOk + +`func (o *V3Get200ResponseLinks) GetProcessesOk() (*Get200ResponseLinksLogCache, bool)` + +GetProcessesOk returns a tuple with the Processes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcesses + +`func (o *V3Get200ResponseLinks) SetProcesses(v Get200ResponseLinksLogCache)` + +SetProcesses sets Processes field to given value. + +### HasProcesses + +`func (o *V3Get200ResponseLinks) HasProcesses() bool` + +HasProcesses returns a boolean if a field has been set. + +### GetResourceMatches + +`func (o *V3Get200ResponseLinks) GetResourceMatches() Get200ResponseLinksLogCache` + +GetResourceMatches returns the ResourceMatches field if non-nil, zero value otherwise. + +### GetResourceMatchesOk + +`func (o *V3Get200ResponseLinks) GetResourceMatchesOk() (*Get200ResponseLinksLogCache, bool)` + +GetResourceMatchesOk returns a tuple with the ResourceMatches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceMatches + +`func (o *V3Get200ResponseLinks) SetResourceMatches(v Get200ResponseLinksLogCache)` + +SetResourceMatches sets ResourceMatches field to given value. + +### HasResourceMatches + +`func (o *V3Get200ResponseLinks) HasResourceMatches() bool` + +HasResourceMatches returns a boolean if a field has been set. + +### GetRoles + +`func (o *V3Get200ResponseLinks) GetRoles() Get200ResponseLinksLogCache` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *V3Get200ResponseLinks) GetRolesOk() (*Get200ResponseLinksLogCache, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *V3Get200ResponseLinks) SetRoles(v Get200ResponseLinksLogCache)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *V3Get200ResponseLinks) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### GetRoutes + +`func (o *V3Get200ResponseLinks) GetRoutes() Get200ResponseLinksLogCache` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *V3Get200ResponseLinks) GetRoutesOk() (*Get200ResponseLinksLogCache, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *V3Get200ResponseLinks) SetRoutes(v Get200ResponseLinksLogCache)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *V3Get200ResponseLinks) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetSecurityGroups + +`func (o *V3Get200ResponseLinks) GetSecurityGroups() Get200ResponseLinksLogCache` + +GetSecurityGroups returns the SecurityGroups field if non-nil, zero value otherwise. + +### GetSecurityGroupsOk + +`func (o *V3Get200ResponseLinks) GetSecurityGroupsOk() (*Get200ResponseLinksLogCache, bool)` + +GetSecurityGroupsOk returns a tuple with the SecurityGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityGroups + +`func (o *V3Get200ResponseLinks) SetSecurityGroups(v Get200ResponseLinksLogCache)` + +SetSecurityGroups sets SecurityGroups field to given value. + +### HasSecurityGroups + +`func (o *V3Get200ResponseLinks) HasSecurityGroups() bool` + +HasSecurityGroups returns a boolean if a field has been set. + +### GetSelf + +`func (o *V3Get200ResponseLinks) GetSelf() Get200ResponseLinksLogCache` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *V3Get200ResponseLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *V3Get200ResponseLinks) SetSelf(v Get200ResponseLinksLogCache)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *V3Get200ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetServiceBrokers + +`func (o *V3Get200ResponseLinks) GetServiceBrokers() Get200ResponseLinksLogCache` + +GetServiceBrokers returns the ServiceBrokers field if non-nil, zero value otherwise. + +### GetServiceBrokersOk + +`func (o *V3Get200ResponseLinks) GetServiceBrokersOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceBrokersOk returns a tuple with the ServiceBrokers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceBrokers + +`func (o *V3Get200ResponseLinks) SetServiceBrokers(v Get200ResponseLinksLogCache)` + +SetServiceBrokers sets ServiceBrokers field to given value. + +### HasServiceBrokers + +`func (o *V3Get200ResponseLinks) HasServiceBrokers() bool` + +HasServiceBrokers returns a boolean if a field has been set. + +### GetServiceInstances + +`func (o *V3Get200ResponseLinks) GetServiceInstances() V3Get200ResponseLinksServiceInstances` + +GetServiceInstances returns the ServiceInstances field if non-nil, zero value otherwise. + +### GetServiceInstancesOk + +`func (o *V3Get200ResponseLinks) GetServiceInstancesOk() (*V3Get200ResponseLinksServiceInstances, bool)` + +GetServiceInstancesOk returns a tuple with the ServiceInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstances + +`func (o *V3Get200ResponseLinks) SetServiceInstances(v V3Get200ResponseLinksServiceInstances)` + +SetServiceInstances sets ServiceInstances field to given value. + +### HasServiceInstances + +`func (o *V3Get200ResponseLinks) HasServiceInstances() bool` + +HasServiceInstances returns a boolean if a field has been set. + +### SetServiceInstancesNil + +`func (o *V3Get200ResponseLinks) SetServiceInstancesNil(b bool)` + + SetServiceInstancesNil sets the value for ServiceInstances to be an explicit nil + +### UnsetServiceInstances +`func (o *V3Get200ResponseLinks) UnsetServiceInstances()` + +UnsetServiceInstances ensures that no value is present for ServiceInstances, not even an explicit nil +### GetServiceOfferings + +`func (o *V3Get200ResponseLinks) GetServiceOfferings() Get200ResponseLinksLogCache` + +GetServiceOfferings returns the ServiceOfferings field if non-nil, zero value otherwise. + +### GetServiceOfferingsOk + +`func (o *V3Get200ResponseLinks) GetServiceOfferingsOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceOfferingsOk returns a tuple with the ServiceOfferings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceOfferings + +`func (o *V3Get200ResponseLinks) SetServiceOfferings(v Get200ResponseLinksLogCache)` + +SetServiceOfferings sets ServiceOfferings field to given value. + +### HasServiceOfferings + +`func (o *V3Get200ResponseLinks) HasServiceOfferings() bool` + +HasServiceOfferings returns a boolean if a field has been set. + +### GetServicePlans + +`func (o *V3Get200ResponseLinks) GetServicePlans() Get200ResponseLinksLogCache` + +GetServicePlans returns the ServicePlans field if non-nil, zero value otherwise. + +### GetServicePlansOk + +`func (o *V3Get200ResponseLinks) GetServicePlansOk() (*Get200ResponseLinksLogCache, bool)` + +GetServicePlansOk returns a tuple with the ServicePlans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicePlans + +`func (o *V3Get200ResponseLinks) SetServicePlans(v Get200ResponseLinksLogCache)` + +SetServicePlans sets ServicePlans field to given value. + +### HasServicePlans + +`func (o *V3Get200ResponseLinks) HasServicePlans() bool` + +HasServicePlans returns a boolean if a field has been set. + +### GetServiceUsageEvents + +`func (o *V3Get200ResponseLinks) GetServiceUsageEvents() Get200ResponseLinksLogCache` + +GetServiceUsageEvents returns the ServiceUsageEvents field if non-nil, zero value otherwise. + +### GetServiceUsageEventsOk + +`func (o *V3Get200ResponseLinks) GetServiceUsageEventsOk() (*Get200ResponseLinksLogCache, bool)` + +GetServiceUsageEventsOk returns a tuple with the ServiceUsageEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceUsageEvents + +`func (o *V3Get200ResponseLinks) SetServiceUsageEvents(v Get200ResponseLinksLogCache)` + +SetServiceUsageEvents sets ServiceUsageEvents field to given value. + +### HasServiceUsageEvents + +`func (o *V3Get200ResponseLinks) HasServiceUsageEvents() bool` + +HasServiceUsageEvents returns a boolean if a field has been set. + +### GetSpaceQuotas + +`func (o *V3Get200ResponseLinks) GetSpaceQuotas() Get200ResponseLinksLogCache` + +GetSpaceQuotas returns the SpaceQuotas field if non-nil, zero value otherwise. + +### GetSpaceQuotasOk + +`func (o *V3Get200ResponseLinks) GetSpaceQuotasOk() (*Get200ResponseLinksLogCache, bool)` + +GetSpaceQuotasOk returns a tuple with the SpaceQuotas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaceQuotas + +`func (o *V3Get200ResponseLinks) SetSpaceQuotas(v Get200ResponseLinksLogCache)` + +SetSpaceQuotas sets SpaceQuotas field to given value. + +### HasSpaceQuotas + +`func (o *V3Get200ResponseLinks) HasSpaceQuotas() bool` + +HasSpaceQuotas returns a boolean if a field has been set. + +### GetSpaces + +`func (o *V3Get200ResponseLinks) GetSpaces() Get200ResponseLinksLogCache` + +GetSpaces returns the Spaces field if non-nil, zero value otherwise. + +### GetSpacesOk + +`func (o *V3Get200ResponseLinks) GetSpacesOk() (*Get200ResponseLinksLogCache, bool)` + +GetSpacesOk returns a tuple with the Spaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpaces + +`func (o *V3Get200ResponseLinks) SetSpaces(v Get200ResponseLinksLogCache)` + +SetSpaces sets Spaces field to given value. + +### HasSpaces + +`func (o *V3Get200ResponseLinks) HasSpaces() bool` + +HasSpaces returns a boolean if a field has been set. + +### GetStacks + +`func (o *V3Get200ResponseLinks) GetStacks() Get200ResponseLinksLogCache` + +GetStacks returns the Stacks field if non-nil, zero value otherwise. + +### GetStacksOk + +`func (o *V3Get200ResponseLinks) GetStacksOk() (*Get200ResponseLinksLogCache, bool)` + +GetStacksOk returns a tuple with the Stacks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStacks + +`func (o *V3Get200ResponseLinks) SetStacks(v Get200ResponseLinksLogCache)` + +SetStacks sets Stacks field to given value. + +### HasStacks + +`func (o *V3Get200ResponseLinks) HasStacks() bool` + +HasStacks returns a boolean if a field has been set. + +### GetTasks + +`func (o *V3Get200ResponseLinks) GetTasks() Get200ResponseLinksLogCache` + +GetTasks returns the Tasks field if non-nil, zero value otherwise. + +### GetTasksOk + +`func (o *V3Get200ResponseLinks) GetTasksOk() (*Get200ResponseLinksLogCache, bool)` + +GetTasksOk returns a tuple with the Tasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTasks + +`func (o *V3Get200ResponseLinks) SetTasks(v Get200ResponseLinksLogCache)` + +SetTasks sets Tasks field to given value. + +### HasTasks + +`func (o *V3Get200ResponseLinks) HasTasks() bool` + +HasTasks returns a boolean if a field has been set. + +### GetUsers + +`func (o *V3Get200ResponseLinks) GetUsers() Get200ResponseLinksLogCache` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *V3Get200ResponseLinks) GetUsersOk() (*Get200ResponseLinksLogCache, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *V3Get200ResponseLinks) SetUsers(v Get200ResponseLinksLogCache)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *V3Get200ResponseLinks) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3Get200ResponseLinksServiceInstances.md b/docs/V3Get200ResponseLinksServiceInstances.md new file mode 100644 index 0000000..fb8ab7c --- /dev/null +++ b/docs/V3Get200ResponseLinksServiceInstances.md @@ -0,0 +1,56 @@ +# V3Get200ResponseLinksServiceInstances + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewV3Get200ResponseLinksServiceInstances + +`func NewV3Get200ResponseLinksServiceInstances() *V3Get200ResponseLinksServiceInstances` + +NewV3Get200ResponseLinksServiceInstances instantiates a new V3Get200ResponseLinksServiceInstances object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3Get200ResponseLinksServiceInstancesWithDefaults + +`func NewV3Get200ResponseLinksServiceInstancesWithDefaults() *V3Get200ResponseLinksServiceInstances` + +NewV3Get200ResponseLinksServiceInstancesWithDefaults instantiates a new V3Get200ResponseLinksServiceInstances object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *V3Get200ResponseLinksServiceInstances) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *V3Get200ResponseLinksServiceInstances) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *V3Get200ResponseLinksServiceInstances) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *V3Get200ResponseLinksServiceInstances) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGet200Response.md b/docs/V3IsolationSegmentsGet200Response.md new file mode 100644 index 0000000..d1c8318 --- /dev/null +++ b/docs/V3IsolationSegmentsGet200Response.md @@ -0,0 +1,82 @@ +# V3IsolationSegmentsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]IsolationSegment**](IsolationSegment.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGet200Response + +`func NewV3IsolationSegmentsGet200Response() *V3IsolationSegmentsGet200Response` + +NewV3IsolationSegmentsGet200Response instantiates a new V3IsolationSegmentsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGet200ResponseWithDefaults + +`func NewV3IsolationSegmentsGet200ResponseWithDefaults() *V3IsolationSegmentsGet200Response` + +NewV3IsolationSegmentsGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3IsolationSegmentsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3IsolationSegmentsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3IsolationSegmentsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3IsolationSegmentsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3IsolationSegmentsGet200Response) GetResources() []IsolationSegment` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3IsolationSegmentsGet200Response) GetResourcesOk() (*[]IsolationSegment, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3IsolationSegmentsGet200Response) SetResources(v []IsolationSegment)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3IsolationSegmentsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md new file mode 100644 index 0000000..8653483 --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response.md @@ -0,0 +1,82 @@ +# V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Links** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetDataOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetLinks() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) SetLinks(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md new file mode 100644 index 0000000..d0cfce1 --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks.md @@ -0,0 +1,82 @@ +# V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Related** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRelated + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetRelated() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetRelated returns the Related field if non-nil, zero value otherwise. + +### GetRelatedOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetRelatedOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetRelatedOk returns a tuple with the Related field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelated + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) SetRelated(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetRelated sets Related field to given value. + +### HasRelated + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) HasRelated() bool` + +HasRelated returns a boolean if a field has been set. + +### GetSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md new file mode 100644 index 0000000..649c9bc --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md @@ -0,0 +1,56 @@ +# V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelatedWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelatedWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelatedWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHref + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) HasHref() bool` + +HasHref returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md new file mode 100644 index 0000000..7534f22 --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest.md @@ -0,0 +1,56 @@ +# V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest() *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequestWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequestWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest` + +NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequestWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) GetData() []V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) GetDataOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) SetData(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md b/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md new file mode 100644 index 0000000..292ffab --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200Response.md @@ -0,0 +1,82 @@ +# V3IsolationSegmentsGuidRelationshipsSpacesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Links** | Pointer to [**V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks**](V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsSpacesGet200Response + +`func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200Response() *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response` + +NewV3IsolationSegmentsGuidRelationshipsSpacesGet200Response instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseWithDefaults() *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response` + +NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetDataOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md b/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md new file mode 100644 index 0000000..1a2ef19 --- /dev/null +++ b/docs/V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks.md @@ -0,0 +1,56 @@ +# V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] + +## Methods + +### NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + +`func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks() *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinksWithDefaults + +`func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinksWithDefaults() *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks` + +NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinksWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGet200Response.md b/docs/V3PackagesGet200Response.md new file mode 100644 index 0000000..bc2b2ba --- /dev/null +++ b/docs/V3PackagesGet200Response.md @@ -0,0 +1,82 @@ +# V3PackagesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**V3PackagesGet200ResponsePagination**](V3PackagesGet200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]Package**](Package.md) | | [optional] + +## Methods + +### NewV3PackagesGet200Response + +`func NewV3PackagesGet200Response() *V3PackagesGet200Response` + +NewV3PackagesGet200Response instantiates a new V3PackagesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGet200ResponseWithDefaults + +`func NewV3PackagesGet200ResponseWithDefaults() *V3PackagesGet200Response` + +NewV3PackagesGet200ResponseWithDefaults instantiates a new V3PackagesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3PackagesGet200Response) GetPagination() V3PackagesGet200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3PackagesGet200Response) GetPaginationOk() (*V3PackagesGet200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3PackagesGet200Response) SetPagination(v V3PackagesGet200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3PackagesGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3PackagesGet200Response) GetResources() []Package` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3PackagesGet200Response) GetResourcesOk() (*[]Package, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3PackagesGet200Response) SetResources(v []Package)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3PackagesGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGet200ResponsePagination.md b/docs/V3PackagesGet200ResponsePagination.md new file mode 100644 index 0000000..63131a1 --- /dev/null +++ b/docs/V3PackagesGet200ResponsePagination.md @@ -0,0 +1,206 @@ +# V3PackagesGet200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Last** | Pointer to [**V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated**](V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated.md) | | [optional] +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewV3PackagesGet200ResponsePagination + +`func NewV3PackagesGet200ResponsePagination() *V3PackagesGet200ResponsePagination` + +NewV3PackagesGet200ResponsePagination instantiates a new V3PackagesGet200ResponsePagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGet200ResponsePaginationWithDefaults + +`func NewV3PackagesGet200ResponsePaginationWithDefaults() *V3PackagesGet200ResponsePagination` + +NewV3PackagesGet200ResponsePaginationWithDefaults instantiates a new V3PackagesGet200ResponsePagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *V3PackagesGet200ResponsePagination) GetFirst() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *V3PackagesGet200ResponsePagination) GetFirstOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *V3PackagesGet200ResponsePagination) SetFirst(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *V3PackagesGet200ResponsePagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *V3PackagesGet200ResponsePagination) GetLast() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *V3PackagesGet200ResponsePagination) GetLastOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *V3PackagesGet200ResponsePagination) SetLast(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *V3PackagesGet200ResponsePagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *V3PackagesGet200ResponsePagination) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *V3PackagesGet200ResponsePagination) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *V3PackagesGet200ResponsePagination) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *V3PackagesGet200ResponsePagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *V3PackagesGet200ResponsePagination) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *V3PackagesGet200ResponsePagination) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *V3PackagesGet200ResponsePagination) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *V3PackagesGet200ResponsePagination) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *V3PackagesGet200ResponsePagination) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *V3PackagesGet200ResponsePagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *V3PackagesGet200ResponsePagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *V3PackagesGet200ResponsePagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *V3PackagesGet200ResponsePagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *V3PackagesGet200ResponsePagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *V3PackagesGet200ResponsePagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *V3PackagesGet200ResponsePagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *V3PackagesGet200ResponsePagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *V3PackagesGet200ResponsePagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *V3PackagesGet200ResponsePagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *V3PackagesGet200ResponsePagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGuidDelete202Response.md b/docs/V3PackagesGuidDelete202Response.md new file mode 100644 index 0000000..e3604f7 --- /dev/null +++ b/docs/V3PackagesGuidDelete202Response.md @@ -0,0 +1,82 @@ +# V3PackagesGuidDelete202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewV3PackagesGuidDelete202Response + +`func NewV3PackagesGuidDelete202Response() *V3PackagesGuidDelete202Response` + +NewV3PackagesGuidDelete202Response instantiates a new V3PackagesGuidDelete202Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGuidDelete202ResponseWithDefaults + +`func NewV3PackagesGuidDelete202ResponseWithDefaults() *V3PackagesGuidDelete202Response` + +NewV3PackagesGuidDelete202ResponseWithDefaults instantiates a new V3PackagesGuidDelete202Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3PackagesGuidDelete202Response) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3PackagesGuidDelete202Response) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3PackagesGuidDelete202Response) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3PackagesGuidDelete202Response) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetUrl + +`func (o *V3PackagesGuidDelete202Response) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *V3PackagesGuidDelete202Response) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *V3PackagesGuidDelete202Response) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *V3PackagesGuidDelete202Response) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGuidPatchRequest.md b/docs/V3PackagesGuidPatchRequest.md new file mode 100644 index 0000000..a139584 --- /dev/null +++ b/docs/V3PackagesGuidPatchRequest.md @@ -0,0 +1,108 @@ +# V3PackagesGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3PackagesPostRequestMetadata**](V3PackagesPostRequestMetadata.md) | | [optional] +**Password** | Pointer to **string** | The password for the image's registry. Only possible for Docker package. | [optional] +**Username** | Pointer to **string** | The username for the image's registry. Only possible for Docker package. | [optional] + +## Methods + +### NewV3PackagesGuidPatchRequest + +`func NewV3PackagesGuidPatchRequest() *V3PackagesGuidPatchRequest` + +NewV3PackagesGuidPatchRequest instantiates a new V3PackagesGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGuidPatchRequestWithDefaults + +`func NewV3PackagesGuidPatchRequestWithDefaults() *V3PackagesGuidPatchRequest` + +NewV3PackagesGuidPatchRequestWithDefaults instantiates a new V3PackagesGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3PackagesGuidPatchRequest) GetMetadata() V3PackagesPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3PackagesGuidPatchRequest) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3PackagesGuidPatchRequest) SetMetadata(v V3PackagesPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3PackagesGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetPassword + +`func (o *V3PackagesGuidPatchRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *V3PackagesGuidPatchRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *V3PackagesGuidPatchRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *V3PackagesGuidPatchRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *V3PackagesGuidPatchRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *V3PackagesGuidPatchRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *V3PackagesGuidPatchRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *V3PackagesGuidPatchRequest) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGuidUploadPostRequestResourcesInner.md b/docs/V3PackagesGuidUploadPostRequestResourcesInner.md new file mode 100644 index 0000000..a8211fd --- /dev/null +++ b/docs/V3PackagesGuidUploadPostRequestResourcesInner.md @@ -0,0 +1,108 @@ +# V3PackagesGuidUploadPostRequestResourcesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Checksum** | Pointer to [**V3PackagesGuidUploadPostRequestResourcesInnerChecksum**](V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md) | | [optional] +**Path** | Pointer to **string** | | [optional] +**SizeInBytes** | Pointer to **int32** | | [optional] + +## Methods + +### NewV3PackagesGuidUploadPostRequestResourcesInner + +`func NewV3PackagesGuidUploadPostRequestResourcesInner() *V3PackagesGuidUploadPostRequestResourcesInner` + +NewV3PackagesGuidUploadPostRequestResourcesInner instantiates a new V3PackagesGuidUploadPostRequestResourcesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGuidUploadPostRequestResourcesInnerWithDefaults + +`func NewV3PackagesGuidUploadPostRequestResourcesInnerWithDefaults() *V3PackagesGuidUploadPostRequestResourcesInner` + +NewV3PackagesGuidUploadPostRequestResourcesInnerWithDefaults instantiates a new V3PackagesGuidUploadPostRequestResourcesInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChecksum + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetChecksum() V3PackagesGuidUploadPostRequestResourcesInnerChecksum` + +GetChecksum returns the Checksum field if non-nil, zero value otherwise. + +### GetChecksumOk + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetChecksumOk() (*V3PackagesGuidUploadPostRequestResourcesInnerChecksum, bool)` + +GetChecksumOk returns a tuple with the Checksum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksum + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetChecksum(v V3PackagesGuidUploadPostRequestResourcesInnerChecksum)` + +SetChecksum sets Checksum field to given value. + +### HasChecksum + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasChecksum() bool` + +HasChecksum returns a boolean if a field has been set. + +### GetPath + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetSizeInBytes + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetSizeInBytes() int32` + +GetSizeInBytes returns the SizeInBytes field if non-nil, zero value otherwise. + +### GetSizeInBytesOk + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetSizeInBytesOk() (*int32, bool)` + +GetSizeInBytesOk returns a tuple with the SizeInBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizeInBytes + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetSizeInBytes(v int32)` + +SetSizeInBytes sets SizeInBytes field to given value. + +### HasSizeInBytes + +`func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasSizeInBytes() bool` + +HasSizeInBytes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md b/docs/V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md new file mode 100644 index 0000000..a7bdf0d --- /dev/null +++ b/docs/V3PackagesGuidUploadPostRequestResourcesInnerChecksum.md @@ -0,0 +1,56 @@ +# V3PackagesGuidUploadPostRequestResourcesInnerChecksum + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewV3PackagesGuidUploadPostRequestResourcesInnerChecksum + +`func NewV3PackagesGuidUploadPostRequestResourcesInnerChecksum() *V3PackagesGuidUploadPostRequestResourcesInnerChecksum` + +NewV3PackagesGuidUploadPostRequestResourcesInnerChecksum instantiates a new V3PackagesGuidUploadPostRequestResourcesInnerChecksum object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesGuidUploadPostRequestResourcesInnerChecksumWithDefaults + +`func NewV3PackagesGuidUploadPostRequestResourcesInnerChecksumWithDefaults() *V3PackagesGuidUploadPostRequestResourcesInnerChecksum` + +NewV3PackagesGuidUploadPostRequestResourcesInnerChecksumWithDefaults instantiates a new V3PackagesGuidUploadPostRequestResourcesInnerChecksum object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequest.md b/docs/V3PackagesPostRequest.md new file mode 100644 index 0000000..a746574 --- /dev/null +++ b/docs/V3PackagesPostRequest.md @@ -0,0 +1,134 @@ +# V3PackagesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3PackagesPostRequestData**](V3PackagesPostRequestData.md) | | [optional] +**Metadata** | Pointer to [**V3PackagesPostRequestMetadata**](V3PackagesPostRequestMetadata.md) | | [optional] +**Relationships** | Pointer to [**V3PackagesPostRequestRelationships**](V3PackagesPostRequestRelationships.md) | | [optional] +**Type** | Pointer to **string** | Type of the package; valid values are bits, docker | [optional] + +## Methods + +### NewV3PackagesPostRequest + +`func NewV3PackagesPostRequest() *V3PackagesPostRequest` + +NewV3PackagesPostRequest instantiates a new V3PackagesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestWithDefaults + +`func NewV3PackagesPostRequestWithDefaults() *V3PackagesPostRequest` + +NewV3PackagesPostRequestWithDefaults instantiates a new V3PackagesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3PackagesPostRequest) GetData() V3PackagesPostRequestData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3PackagesPostRequest) GetDataOk() (*V3PackagesPostRequestData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3PackagesPostRequest) SetData(v V3PackagesPostRequestData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3PackagesPostRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3PackagesPostRequest) GetMetadata() V3PackagesPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3PackagesPostRequest) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3PackagesPostRequest) SetMetadata(v V3PackagesPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3PackagesPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3PackagesPostRequest) GetRelationships() V3PackagesPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3PackagesPostRequest) GetRelationshipsOk() (*V3PackagesPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3PackagesPostRequest) SetRelationships(v V3PackagesPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3PackagesPostRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetType + +`func (o *V3PackagesPostRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3PackagesPostRequest) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3PackagesPostRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3PackagesPostRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequestData.md b/docs/V3PackagesPostRequestData.md new file mode 100644 index 0000000..a7e0989 --- /dev/null +++ b/docs/V3PackagesPostRequestData.md @@ -0,0 +1,108 @@ +# V3PackagesPostRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Image** | Pointer to **string** | Required when type is docker; the registry address of the image | [optional] +**Password** | Pointer to **string** | Optional when type is docker and accessing a secured registry | [optional] +**Username** | Pointer to **string** | Optional when type is docker and accessing a secured registry | [optional] + +## Methods + +### NewV3PackagesPostRequestData + +`func NewV3PackagesPostRequestData() *V3PackagesPostRequestData` + +NewV3PackagesPostRequestData instantiates a new V3PackagesPostRequestData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestDataWithDefaults + +`func NewV3PackagesPostRequestDataWithDefaults() *V3PackagesPostRequestData` + +NewV3PackagesPostRequestDataWithDefaults instantiates a new V3PackagesPostRequestData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImage + +`func (o *V3PackagesPostRequestData) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *V3PackagesPostRequestData) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *V3PackagesPostRequestData) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *V3PackagesPostRequestData) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetPassword + +`func (o *V3PackagesPostRequestData) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *V3PackagesPostRequestData) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *V3PackagesPostRequestData) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *V3PackagesPostRequestData) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *V3PackagesPostRequestData) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *V3PackagesPostRequestData) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *V3PackagesPostRequestData) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *V3PackagesPostRequestData) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequestMetadata.md b/docs/V3PackagesPostRequestMetadata.md new file mode 100644 index 0000000..d9bcc5a --- /dev/null +++ b/docs/V3PackagesPostRequestMetadata.md @@ -0,0 +1,82 @@ +# V3PackagesPostRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | Annotations applied to the package | [optional] +**Labels** | Pointer to **map[string]interface{}** | Labels applied to the package | [optional] + +## Methods + +### NewV3PackagesPostRequestMetadata + +`func NewV3PackagesPostRequestMetadata() *V3PackagesPostRequestMetadata` + +NewV3PackagesPostRequestMetadata instantiates a new V3PackagesPostRequestMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestMetadataWithDefaults + +`func NewV3PackagesPostRequestMetadataWithDefaults() *V3PackagesPostRequestMetadata` + +NewV3PackagesPostRequestMetadataWithDefaults instantiates a new V3PackagesPostRequestMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3PackagesPostRequestMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3PackagesPostRequestMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3PackagesPostRequestMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3PackagesPostRequestMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3PackagesPostRequestMetadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3PackagesPostRequestMetadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3PackagesPostRequestMetadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3PackagesPostRequestMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequestRelationships.md b/docs/V3PackagesPostRequestRelationships.md new file mode 100644 index 0000000..3592a7d --- /dev/null +++ b/docs/V3PackagesPostRequestRelationships.md @@ -0,0 +1,56 @@ +# V3PackagesPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3PackagesPostRequestRelationshipsApp**](V3PackagesPostRequestRelationshipsApp.md) | | [optional] + +## Methods + +### NewV3PackagesPostRequestRelationships + +`func NewV3PackagesPostRequestRelationships() *V3PackagesPostRequestRelationships` + +NewV3PackagesPostRequestRelationships instantiates a new V3PackagesPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestRelationshipsWithDefaults + +`func NewV3PackagesPostRequestRelationshipsWithDefaults() *V3PackagesPostRequestRelationships` + +NewV3PackagesPostRequestRelationshipsWithDefaults instantiates a new V3PackagesPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *V3PackagesPostRequestRelationships) GetApp() V3PackagesPostRequestRelationshipsApp` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V3PackagesPostRequestRelationships) GetAppOk() (*V3PackagesPostRequestRelationshipsApp, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *V3PackagesPostRequestRelationships) SetApp(v V3PackagesPostRequestRelationshipsApp)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V3PackagesPostRequestRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequestRelationshipsApp.md b/docs/V3PackagesPostRequestRelationshipsApp.md new file mode 100644 index 0000000..9793e33 --- /dev/null +++ b/docs/V3PackagesPostRequestRelationshipsApp.md @@ -0,0 +1,56 @@ +# V3PackagesPostRequestRelationshipsApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3PackagesPostRequestRelationshipsAppData**](V3PackagesPostRequestRelationshipsAppData.md) | | [optional] + +## Methods + +### NewV3PackagesPostRequestRelationshipsApp + +`func NewV3PackagesPostRequestRelationshipsApp() *V3PackagesPostRequestRelationshipsApp` + +NewV3PackagesPostRequestRelationshipsApp instantiates a new V3PackagesPostRequestRelationshipsApp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestRelationshipsAppWithDefaults + +`func NewV3PackagesPostRequestRelationshipsAppWithDefaults() *V3PackagesPostRequestRelationshipsApp` + +NewV3PackagesPostRequestRelationshipsAppWithDefaults instantiates a new V3PackagesPostRequestRelationshipsApp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3PackagesPostRequestRelationshipsApp) GetData() V3PackagesPostRequestRelationshipsAppData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3PackagesPostRequestRelationshipsApp) GetDataOk() (*V3PackagesPostRequestRelationshipsAppData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3PackagesPostRequestRelationshipsApp) SetData(v V3PackagesPostRequestRelationshipsAppData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3PackagesPostRequestRelationshipsApp) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3PackagesPostRequestRelationshipsAppData.md b/docs/V3PackagesPostRequestRelationshipsAppData.md new file mode 100644 index 0000000..074e215 --- /dev/null +++ b/docs/V3PackagesPostRequestRelationshipsAppData.md @@ -0,0 +1,56 @@ +# V3PackagesPostRequestRelationshipsAppData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | GUID of the app | [optional] + +## Methods + +### NewV3PackagesPostRequestRelationshipsAppData + +`func NewV3PackagesPostRequestRelationshipsAppData() *V3PackagesPostRequestRelationshipsAppData` + +NewV3PackagesPostRequestRelationshipsAppData instantiates a new V3PackagesPostRequestRelationshipsAppData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3PackagesPostRequestRelationshipsAppDataWithDefaults + +`func NewV3PackagesPostRequestRelationshipsAppDataWithDefaults() *V3PackagesPostRequestRelationshipsAppData` + +NewV3PackagesPostRequestRelationshipsAppDataWithDefaults instantiates a new V3PackagesPostRequestRelationshipsAppData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3PackagesPostRequestRelationshipsAppData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3PackagesPostRequestRelationshipsAppData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3PackagesPostRequestRelationshipsAppData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3PackagesPostRequestRelationshipsAppData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RevisionsGuidPatchRequest.md b/docs/V3RevisionsGuidPatchRequest.md new file mode 100644 index 0000000..bba4d82 --- /dev/null +++ b/docs/V3RevisionsGuidPatchRequest.md @@ -0,0 +1,56 @@ +# V3RevisionsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] + +## Methods + +### NewV3RevisionsGuidPatchRequest + +`func NewV3RevisionsGuidPatchRequest() *V3RevisionsGuidPatchRequest` + +NewV3RevisionsGuidPatchRequest instantiates a new V3RevisionsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RevisionsGuidPatchRequestWithDefaults + +`func NewV3RevisionsGuidPatchRequestWithDefaults() *V3RevisionsGuidPatchRequest` + +NewV3RevisionsGuidPatchRequestWithDefaults instantiates a new V3RevisionsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3RevisionsGuidPatchRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3RevisionsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3RevisionsGuidPatchRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3RevisionsGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RolesPostRequest.md b/docs/V3RolesPostRequest.md new file mode 100644 index 0000000..14a5e22 --- /dev/null +++ b/docs/V3RolesPostRequest.md @@ -0,0 +1,82 @@ +# V3RolesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Relationships** | Pointer to [**V3RolesPostRequestRelationships**](V3RolesPostRequestRelationships.md) | | [optional] +**Type** | Pointer to **string** | Role to create, see valid role types | [optional] + +## Methods + +### NewV3RolesPostRequest + +`func NewV3RolesPostRequest() *V3RolesPostRequest` + +NewV3RolesPostRequest instantiates a new V3RolesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RolesPostRequestWithDefaults + +`func NewV3RolesPostRequestWithDefaults() *V3RolesPostRequest` + +NewV3RolesPostRequestWithDefaults instantiates a new V3RolesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRelationships + +`func (o *V3RolesPostRequest) GetRelationships() V3RolesPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3RolesPostRequest) GetRelationshipsOk() (*V3RolesPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3RolesPostRequest) SetRelationships(v V3RolesPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3RolesPostRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetType + +`func (o *V3RolesPostRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3RolesPostRequest) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3RolesPostRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V3RolesPostRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RolesPostRequestRelationships.md b/docs/V3RolesPostRequestRelationships.md new file mode 100644 index 0000000..304d295 --- /dev/null +++ b/docs/V3RolesPostRequestRelationships.md @@ -0,0 +1,108 @@ +# V3RolesPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**Space** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**User** | Pointer to [**V3RolesPostRequestRelationshipsUser**](V3RolesPostRequestRelationshipsUser.md) | | [optional] + +## Methods + +### NewV3RolesPostRequestRelationships + +`func NewV3RolesPostRequestRelationships() *V3RolesPostRequestRelationships` + +NewV3RolesPostRequestRelationships instantiates a new V3RolesPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RolesPostRequestRelationshipsWithDefaults + +`func NewV3RolesPostRequestRelationshipsWithDefaults() *V3RolesPostRequestRelationships` + +NewV3RolesPostRequestRelationshipsWithDefaults instantiates a new V3RolesPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *V3RolesPostRequestRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *V3RolesPostRequestRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *V3RolesPostRequestRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *V3RolesPostRequestRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSpace + +`func (o *V3RolesPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *V3RolesPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *V3RolesPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *V3RolesPostRequestRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + +### GetUser + +`func (o *V3RolesPostRequestRelationships) GetUser() V3RolesPostRequestRelationshipsUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *V3RolesPostRequestRelationships) GetUserOk() (*V3RolesPostRequestRelationshipsUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *V3RolesPostRequestRelationships) SetUser(v V3RolesPostRequestRelationshipsUser)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *V3RolesPostRequestRelationships) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RolesPostRequestRelationshipsUser.md b/docs/V3RolesPostRequestRelationshipsUser.md new file mode 100644 index 0000000..a3cbc23 --- /dev/null +++ b/docs/V3RolesPostRequestRelationshipsUser.md @@ -0,0 +1,56 @@ +# V3RolesPostRequestRelationshipsUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V3RolesPostRequestRelationshipsUserData**](V3RolesPostRequestRelationshipsUserData.md) | | [optional] + +## Methods + +### NewV3RolesPostRequestRelationshipsUser + +`func NewV3RolesPostRequestRelationshipsUser() *V3RolesPostRequestRelationshipsUser` + +NewV3RolesPostRequestRelationshipsUser instantiates a new V3RolesPostRequestRelationshipsUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RolesPostRequestRelationshipsUserWithDefaults + +`func NewV3RolesPostRequestRelationshipsUserWithDefaults() *V3RolesPostRequestRelationshipsUser` + +NewV3RolesPostRequestRelationshipsUserWithDefaults instantiates a new V3RolesPostRequestRelationshipsUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3RolesPostRequestRelationshipsUser) GetData() V3RolesPostRequestRelationshipsUserData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3RolesPostRequestRelationshipsUser) GetDataOk() (*V3RolesPostRequestRelationshipsUserData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3RolesPostRequestRelationshipsUser) SetData(v V3RolesPostRequestRelationshipsUserData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3RolesPostRequestRelationshipsUser) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RolesPostRequestRelationshipsUserData.md b/docs/V3RolesPostRequestRelationshipsUserData.md new file mode 100644 index 0000000..316148f --- /dev/null +++ b/docs/V3RolesPostRequestRelationshipsUserData.md @@ -0,0 +1,108 @@ +# V3RolesPostRequestRelationshipsUserData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | | [optional] +**Origin** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewV3RolesPostRequestRelationshipsUserData + +`func NewV3RolesPostRequestRelationshipsUserData() *V3RolesPostRequestRelationshipsUserData` + +NewV3RolesPostRequestRelationshipsUserData instantiates a new V3RolesPostRequestRelationshipsUserData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RolesPostRequestRelationshipsUserDataWithDefaults + +`func NewV3RolesPostRequestRelationshipsUserDataWithDefaults() *V3RolesPostRequestRelationshipsUserData` + +NewV3RolesPostRequestRelationshipsUserDataWithDefaults instantiates a new V3RolesPostRequestRelationshipsUserData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3RolesPostRequestRelationshipsUserData) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3RolesPostRequestRelationshipsUserData) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3RolesPostRequestRelationshipsUserData) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3RolesPostRequestRelationshipsUserData) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetOrigin + +`func (o *V3RolesPostRequestRelationshipsUserData) GetOrigin() string` + +GetOrigin returns the Origin field if non-nil, zero value otherwise. + +### GetOriginOk + +`func (o *V3RolesPostRequestRelationshipsUserData) GetOriginOk() (*string, bool)` + +GetOriginOk returns a tuple with the Origin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrigin + +`func (o *V3RolesPostRequestRelationshipsUserData) SetOrigin(v string)` + +SetOrigin sets Origin field to given value. + +### HasOrigin + +`func (o *V3RolesPostRequestRelationshipsUserData) HasOrigin() bool` + +HasOrigin returns a boolean if a field has been set. + +### GetUsername + +`func (o *V3RolesPostRequestRelationshipsUserData) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *V3RolesPostRequestRelationshipsUserData) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *V3RolesPostRequestRelationshipsUserData) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *V3RolesPostRequestRelationshipsUserData) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RoutesGet200Response.md b/docs/V3RoutesGet200Response.md new file mode 100644 index 0000000..504c7cc --- /dev/null +++ b/docs/V3RoutesGet200Response.md @@ -0,0 +1,82 @@ +# V3RoutesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**V3RoutesGet200ResponsePagination**](V3RoutesGet200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]Route**](Route.md) | | [optional] + +## Methods + +### NewV3RoutesGet200Response + +`func NewV3RoutesGet200Response() *V3RoutesGet200Response` + +NewV3RoutesGet200Response instantiates a new V3RoutesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RoutesGet200ResponseWithDefaults + +`func NewV3RoutesGet200ResponseWithDefaults() *V3RoutesGet200Response` + +NewV3RoutesGet200ResponseWithDefaults instantiates a new V3RoutesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3RoutesGet200Response) GetPagination() V3RoutesGet200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3RoutesGet200Response) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3RoutesGet200Response) SetPagination(v V3RoutesGet200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3RoutesGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3RoutesGet200Response) GetResources() []Route` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3RoutesGet200Response) GetResourcesOk() (*[]Route, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3RoutesGet200Response) SetResources(v []Route)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3RoutesGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RoutesGet200ResponsePagination.md b/docs/V3RoutesGet200ResponsePagination.md new file mode 100644 index 0000000..1922a67 --- /dev/null +++ b/docs/V3RoutesGet200ResponsePagination.md @@ -0,0 +1,196 @@ +# V3RoutesGet200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Last** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Next** | Pointer to [**Get200ResponseLinksLogCache**](Get200ResponseLinksLogCache.md) | | [optional] +**Previous** | Pointer to [**NullableV3Get200ResponseLinksServiceInstances**](V3Get200ResponseLinksServiceInstances.md) | | [optional] +**TotalPages** | Pointer to **int32** | | [optional] +**TotalResults** | Pointer to **int32** | | [optional] + +## Methods + +### NewV3RoutesGet200ResponsePagination + +`func NewV3RoutesGet200ResponsePagination() *V3RoutesGet200ResponsePagination` + +NewV3RoutesGet200ResponsePagination instantiates a new V3RoutesGet200ResponsePagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RoutesGet200ResponsePaginationWithDefaults + +`func NewV3RoutesGet200ResponsePaginationWithDefaults() *V3RoutesGet200ResponsePagination` + +NewV3RoutesGet200ResponsePaginationWithDefaults instantiates a new V3RoutesGet200ResponsePagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *V3RoutesGet200ResponsePagination) GetFirst() Get200ResponseLinksLogCache` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *V3RoutesGet200ResponsePagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *V3RoutesGet200ResponsePagination) SetFirst(v Get200ResponseLinksLogCache)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *V3RoutesGet200ResponsePagination) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetLast + +`func (o *V3RoutesGet200ResponsePagination) GetLast() Get200ResponseLinksLogCache` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *V3RoutesGet200ResponsePagination) GetLastOk() (*Get200ResponseLinksLogCache, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *V3RoutesGet200ResponsePagination) SetLast(v Get200ResponseLinksLogCache)` + +SetLast sets Last field to given value. + +### HasLast + +`func (o *V3RoutesGet200ResponsePagination) HasLast() bool` + +HasLast returns a boolean if a field has been set. + +### GetNext + +`func (o *V3RoutesGet200ResponsePagination) GetNext() Get200ResponseLinksLogCache` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *V3RoutesGet200ResponsePagination) GetNextOk() (*Get200ResponseLinksLogCache, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *V3RoutesGet200ResponsePagination) SetNext(v Get200ResponseLinksLogCache)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *V3RoutesGet200ResponsePagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *V3RoutesGet200ResponsePagination) GetPrevious() V3Get200ResponseLinksServiceInstances` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *V3RoutesGet200ResponsePagination) GetPreviousOk() (*V3Get200ResponseLinksServiceInstances, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *V3RoutesGet200ResponsePagination) SetPrevious(v V3Get200ResponseLinksServiceInstances)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *V3RoutesGet200ResponsePagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *V3RoutesGet200ResponsePagination) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *V3RoutesGet200ResponsePagination) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetTotalPages + +`func (o *V3RoutesGet200ResponsePagination) GetTotalPages() int32` + +GetTotalPages returns the TotalPages field if non-nil, zero value otherwise. + +### GetTotalPagesOk + +`func (o *V3RoutesGet200ResponsePagination) GetTotalPagesOk() (*int32, bool)` + +GetTotalPagesOk returns a tuple with the TotalPages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalPages + +`func (o *V3RoutesGet200ResponsePagination) SetTotalPages(v int32)` + +SetTotalPages sets TotalPages field to given value. + +### HasTotalPages + +`func (o *V3RoutesGet200ResponsePagination) HasTotalPages() bool` + +HasTotalPages returns a boolean if a field has been set. + +### GetTotalResults + +`func (o *V3RoutesGet200ResponsePagination) GetTotalResults() int32` + +GetTotalResults returns the TotalResults field if non-nil, zero value otherwise. + +### GetTotalResultsOk + +`func (o *V3RoutesGet200ResponsePagination) GetTotalResultsOk() (*int32, bool)` + +GetTotalResultsOk returns a tuple with the TotalResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalResults + +`func (o *V3RoutesGet200ResponsePagination) SetTotalResults(v int32)` + +SetTotalResults sets TotalResults field to given value. + +### HasTotalResults + +`func (o *V3RoutesGet200ResponsePagination) HasTotalResults() bool` + +HasTotalResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RoutesPostRequest.md b/docs/V3RoutesPostRequest.md new file mode 100644 index 0000000..c9f2030 --- /dev/null +++ b/docs/V3RoutesPostRequest.md @@ -0,0 +1,160 @@ +# V3RoutesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Path** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**Relationships** | Pointer to [**V3RoutesPostRequestRelationships**](V3RoutesPostRequestRelationships.md) | | [optional] + +## Methods + +### NewV3RoutesPostRequest + +`func NewV3RoutesPostRequest() *V3RoutesPostRequest` + +NewV3RoutesPostRequest instantiates a new V3RoutesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RoutesPostRequestWithDefaults + +`func NewV3RoutesPostRequestWithDefaults() *V3RoutesPostRequest` + +NewV3RoutesPostRequestWithDefaults instantiates a new V3RoutesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *V3RoutesPostRequest) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *V3RoutesPostRequest) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *V3RoutesPostRequest) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *V3RoutesPostRequest) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3RoutesPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3RoutesPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3RoutesPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3RoutesPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetPath + +`func (o *V3RoutesPostRequest) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *V3RoutesPostRequest) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *V3RoutesPostRequest) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *V3RoutesPostRequest) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetPort + +`func (o *V3RoutesPostRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *V3RoutesPostRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *V3RoutesPostRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *V3RoutesPostRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3RoutesPostRequest) GetRelationships() V3RoutesPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3RoutesPostRequest) GetRelationshipsOk() (*V3RoutesPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3RoutesPostRequest) SetRelationships(v V3RoutesPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3RoutesPostRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3RoutesPostRequestRelationships.md b/docs/V3RoutesPostRequestRelationships.md new file mode 100644 index 0000000..09bc7aa --- /dev/null +++ b/docs/V3RoutesPostRequestRelationships.md @@ -0,0 +1,82 @@ +# V3RoutesPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**Space** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewV3RoutesPostRequestRelationships + +`func NewV3RoutesPostRequestRelationships() *V3RoutesPostRequestRelationships` + +NewV3RoutesPostRequestRelationships instantiates a new V3RoutesPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3RoutesPostRequestRelationshipsWithDefaults + +`func NewV3RoutesPostRequestRelationshipsWithDefaults() *V3RoutesPostRequestRelationships` + +NewV3RoutesPostRequestRelationshipsWithDefaults instantiates a new V3RoutesPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDomain + +`func (o *V3RoutesPostRequestRelationships) GetDomain() V3AppsPostRequestRelationshipsSpace` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *V3RoutesPostRequestRelationships) GetDomainOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *V3RoutesPostRequestRelationships) SetDomain(v V3AppsPostRequestRelationshipsSpace)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *V3RoutesPostRequestRelationships) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### GetSpace + +`func (o *V3RoutesPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace` + +GetSpace returns the Space field if non-nil, zero value otherwise. + +### GetSpaceOk + +`func (o *V3RoutesPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetSpaceOk returns a tuple with the Space field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpace + +`func (o *V3RoutesPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace)` + +SetSpace sets Space field to given value. + +### HasSpace + +`func (o *V3RoutesPostRequestRelationships) HasSpace() bool` + +HasSpace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceCredentialBindingsGuidDetailsGet200Response.md b/docs/V3ServiceCredentialBindingsGuidDetailsGet200Response.md new file mode 100644 index 0000000..04f75d6 --- /dev/null +++ b/docs/V3ServiceCredentialBindingsGuidDetailsGet200Response.md @@ -0,0 +1,108 @@ +# V3ServiceCredentialBindingsGuidDetailsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | Pointer to **map[string]interface{}** | | [optional] +**SyslogDrainUrl** | Pointer to **string** | | [optional] +**VolumeMounts** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV3ServiceCredentialBindingsGuidDetailsGet200Response + +`func NewV3ServiceCredentialBindingsGuidDetailsGet200Response() *V3ServiceCredentialBindingsGuidDetailsGet200Response` + +NewV3ServiceCredentialBindingsGuidDetailsGet200Response instantiates a new V3ServiceCredentialBindingsGuidDetailsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceCredentialBindingsGuidDetailsGet200ResponseWithDefaults + +`func NewV3ServiceCredentialBindingsGuidDetailsGet200ResponseWithDefaults() *V3ServiceCredentialBindingsGuidDetailsGet200Response` + +NewV3ServiceCredentialBindingsGuidDetailsGet200ResponseWithDefaults instantiates a new V3ServiceCredentialBindingsGuidDetailsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetCredentials() map[string]interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetCredentialsOk() (*map[string]interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetCredentials(v map[string]interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetSyslogDrainUrl + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetSyslogDrainUrl() string` + +GetSyslogDrainUrl returns the SyslogDrainUrl field if non-nil, zero value otherwise. + +### GetSyslogDrainUrlOk + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetSyslogDrainUrlOk() (*string, bool)` + +GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyslogDrainUrl + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetSyslogDrainUrl(v string)` + +SetSyslogDrainUrl sets SyslogDrainUrl field to given value. + +### HasSyslogDrainUrl + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasSyslogDrainUrl() bool` + +HasSyslogDrainUrl returns a boolean if a field has been set. + +### GetVolumeMounts + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetVolumeMounts() []string` + +GetVolumeMounts returns the VolumeMounts field if non-nil, zero value otherwise. + +### GetVolumeMountsOk + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetVolumeMountsOk() (*[]string, bool)` + +GetVolumeMountsOk returns a tuple with the VolumeMounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVolumeMounts + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetVolumeMounts(v []string)` + +SetVolumeMounts sets VolumeMounts field to given value. + +### HasVolumeMounts + +`func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasVolumeMounts() bool` + +HasVolumeMounts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceCredentialBindingsGuidPatchRequest.md b/docs/V3ServiceCredentialBindingsGuidPatchRequest.md new file mode 100644 index 0000000..cd57cff --- /dev/null +++ b/docs/V3ServiceCredentialBindingsGuidPatchRequest.md @@ -0,0 +1,56 @@ +# V3ServiceCredentialBindingsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] + +## Methods + +### NewV3ServiceCredentialBindingsGuidPatchRequest + +`func NewV3ServiceCredentialBindingsGuidPatchRequest() *V3ServiceCredentialBindingsGuidPatchRequest` + +NewV3ServiceCredentialBindingsGuidPatchRequest instantiates a new V3ServiceCredentialBindingsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceCredentialBindingsGuidPatchRequestWithDefaults + +`func NewV3ServiceCredentialBindingsGuidPatchRequestWithDefaults() *V3ServiceCredentialBindingsGuidPatchRequest` + +NewV3ServiceCredentialBindingsGuidPatchRequestWithDefaults instantiates a new V3ServiceCredentialBindingsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3ServiceCredentialBindingsGuidPatchRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3ServiceCredentialBindingsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3ServiceCredentialBindingsGuidPatchRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3ServiceCredentialBindingsGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceCredentialBindingsPostRequest.md b/docs/V3ServiceCredentialBindingsPostRequest.md new file mode 100644 index 0000000..511d03f --- /dev/null +++ b/docs/V3ServiceCredentialBindingsPostRequest.md @@ -0,0 +1,150 @@ +# V3ServiceCredentialBindingsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **map[string]interface{}** | | [optional] +**Relationships** | [**V3ServiceCredentialBindingsPostRequestRelationships**](V3ServiceCredentialBindingsPostRequestRelationships.md) | | +**Type** | **string** | | + +## Methods + +### NewV3ServiceCredentialBindingsPostRequest + +`func NewV3ServiceCredentialBindingsPostRequest(relationships V3ServiceCredentialBindingsPostRequestRelationships, type_ string, ) *V3ServiceCredentialBindingsPostRequest` + +NewV3ServiceCredentialBindingsPostRequest instantiates a new V3ServiceCredentialBindingsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceCredentialBindingsPostRequestWithDefaults + +`func NewV3ServiceCredentialBindingsPostRequestWithDefaults() *V3ServiceCredentialBindingsPostRequest` + +NewV3ServiceCredentialBindingsPostRequestWithDefaults instantiates a new V3ServiceCredentialBindingsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3ServiceCredentialBindingsPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3ServiceCredentialBindingsPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3ServiceCredentialBindingsPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3ServiceCredentialBindingsPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3ServiceCredentialBindingsPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3ServiceCredentialBindingsPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3ServiceCredentialBindingsPostRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3ServiceCredentialBindingsPostRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParameters + +`func (o *V3ServiceCredentialBindingsPostRequest) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *V3ServiceCredentialBindingsPostRequest) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *V3ServiceCredentialBindingsPostRequest) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *V3ServiceCredentialBindingsPostRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3ServiceCredentialBindingsPostRequest) GetRelationships() V3ServiceCredentialBindingsPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3ServiceCredentialBindingsPostRequest) GetRelationshipsOk() (*V3ServiceCredentialBindingsPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3ServiceCredentialBindingsPostRequest) SetRelationships(v V3ServiceCredentialBindingsPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + + +### GetType + +`func (o *V3ServiceCredentialBindingsPostRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V3ServiceCredentialBindingsPostRequest) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V3ServiceCredentialBindingsPostRequest) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceCredentialBindingsPostRequestRelationships.md b/docs/V3ServiceCredentialBindingsPostRequestRelationships.md new file mode 100644 index 0000000..8c49d88 --- /dev/null +++ b/docs/V3ServiceCredentialBindingsPostRequestRelationships.md @@ -0,0 +1,77 @@ +# V3ServiceCredentialBindingsPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] +**ServiceInstance** | [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | + +## Methods + +### NewV3ServiceCredentialBindingsPostRequestRelationships + +`func NewV3ServiceCredentialBindingsPostRequestRelationships(serviceInstance V3AppsPostRequestRelationshipsSpace, ) *V3ServiceCredentialBindingsPostRequestRelationships` + +NewV3ServiceCredentialBindingsPostRequestRelationships instantiates a new V3ServiceCredentialBindingsPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceCredentialBindingsPostRequestRelationshipsWithDefaults + +`func NewV3ServiceCredentialBindingsPostRequestRelationshipsWithDefaults() *V3ServiceCredentialBindingsPostRequestRelationships` + +NewV3ServiceCredentialBindingsPostRequestRelationshipsWithDefaults instantiates a new V3ServiceCredentialBindingsPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApp + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetApp() V3AppsPostRequestRelationshipsSpace` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetAppOk returns a tuple with the App field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApp + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetServiceInstance + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace` + +GetServiceInstance returns the ServiceInstance field if non-nil, zero value otherwise. + +### GetServiceInstanceOk + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetServiceInstanceOk returns a tuple with the ServiceInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceInstance + +`func (o *V3ServiceCredentialBindingsPostRequestRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace)` + +SetServiceInstance sets ServiceInstance field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceInstancesGet200Response.md b/docs/V3ServiceInstancesGet200Response.md new file mode 100644 index 0000000..1fc140b --- /dev/null +++ b/docs/V3ServiceInstancesGet200Response.md @@ -0,0 +1,56 @@ +# V3ServiceInstancesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resources** | Pointer to [**[]ServiceInstance**](ServiceInstance.md) | | [optional] + +## Methods + +### NewV3ServiceInstancesGet200Response + +`func NewV3ServiceInstancesGet200Response() *V3ServiceInstancesGet200Response` + +NewV3ServiceInstancesGet200Response instantiates a new V3ServiceInstancesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceInstancesGet200ResponseWithDefaults + +`func NewV3ServiceInstancesGet200ResponseWithDefaults() *V3ServiceInstancesGet200Response` + +NewV3ServiceInstancesGet200ResponseWithDefaults instantiates a new V3ServiceInstancesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResources + +`func (o *V3ServiceInstancesGet200Response) GetResources() []ServiceInstance` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3ServiceInstancesGet200Response) GetResourcesOk() (*[]ServiceInstance, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3ServiceInstancesGet200Response) SetResources(v []ServiceInstance)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3ServiceInstancesGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceInstancesGuidPatchRequest.md b/docs/V3ServiceInstancesGuidPatchRequest.md new file mode 100644 index 0000000..e51f3ae --- /dev/null +++ b/docs/V3ServiceInstancesGuidPatchRequest.md @@ -0,0 +1,264 @@ +# V3ServiceInstancesGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaintenanceInfo** | Pointer to [**Get200ResponseLinksCloudControllerV2Meta**](Get200ResponseLinksCloudControllerV2Meta.md) | | [optional] +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **map[string]interface{}** | | [optional] +**Relationships** | Pointer to [**ManagedServiceInstanceUpdateRelationships**](ManagedServiceInstanceUpdateRelationships.md) | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**Credentials** | Pointer to **map[string]interface{}** | | [optional] +**RouteServiceUrl** | Pointer to **string** | | [optional] +**SyslogDrainUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewV3ServiceInstancesGuidPatchRequest + +`func NewV3ServiceInstancesGuidPatchRequest() *V3ServiceInstancesGuidPatchRequest` + +NewV3ServiceInstancesGuidPatchRequest instantiates a new V3ServiceInstancesGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceInstancesGuidPatchRequestWithDefaults + +`func NewV3ServiceInstancesGuidPatchRequestWithDefaults() *V3ServiceInstancesGuidPatchRequest` + +NewV3ServiceInstancesGuidPatchRequestWithDefaults instantiates a new V3ServiceInstancesGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMaintenanceInfo + +`func (o *V3ServiceInstancesGuidPatchRequest) GetMaintenanceInfo() Get200ResponseLinksCloudControllerV2Meta` + +GetMaintenanceInfo returns the MaintenanceInfo field if non-nil, zero value otherwise. + +### GetMaintenanceInfoOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetMaintenanceInfoOk() (*Get200ResponseLinksCloudControllerV2Meta, bool)` + +GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenanceInfo + +`func (o *V3ServiceInstancesGuidPatchRequest) SetMaintenanceInfo(v Get200ResponseLinksCloudControllerV2Meta)` + +SetMaintenanceInfo sets MaintenanceInfo field to given value. + +### HasMaintenanceInfo + +`func (o *V3ServiceInstancesGuidPatchRequest) HasMaintenanceInfo() bool` + +HasMaintenanceInfo returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3ServiceInstancesGuidPatchRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3ServiceInstancesGuidPatchRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3ServiceInstancesGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3ServiceInstancesGuidPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3ServiceInstancesGuidPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3ServiceInstancesGuidPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParameters + +`func (o *V3ServiceInstancesGuidPatchRequest) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *V3ServiceInstancesGuidPatchRequest) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *V3ServiceInstancesGuidPatchRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3ServiceInstancesGuidPatchRequest) GetRelationships() ManagedServiceInstanceUpdateRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetRelationshipsOk() (*ManagedServiceInstanceUpdateRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3ServiceInstancesGuidPatchRequest) SetRelationships(v ManagedServiceInstanceUpdateRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *V3ServiceInstancesGuidPatchRequest) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### GetTags + +`func (o *V3ServiceInstancesGuidPatchRequest) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *V3ServiceInstancesGuidPatchRequest) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *V3ServiceInstancesGuidPatchRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCredentials + +`func (o *V3ServiceInstancesGuidPatchRequest) GetCredentials() map[string]interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetCredentialsOk() (*map[string]interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *V3ServiceInstancesGuidPatchRequest) SetCredentials(v map[string]interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *V3ServiceInstancesGuidPatchRequest) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetRouteServiceUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) GetRouteServiceUrl() string` + +GetRouteServiceUrl returns the RouteServiceUrl field if non-nil, zero value otherwise. + +### GetRouteServiceUrlOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetRouteServiceUrlOk() (*string, bool)` + +GetRouteServiceUrlOk returns a tuple with the RouteServiceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRouteServiceUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) SetRouteServiceUrl(v string)` + +SetRouteServiceUrl sets RouteServiceUrl field to given value. + +### HasRouteServiceUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) HasRouteServiceUrl() bool` + +HasRouteServiceUrl returns a boolean if a field has been set. + +### GetSyslogDrainUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) GetSyslogDrainUrl() string` + +GetSyslogDrainUrl returns the SyslogDrainUrl field if non-nil, zero value otherwise. + +### GetSyslogDrainUrlOk + +`func (o *V3ServiceInstancesGuidPatchRequest) GetSyslogDrainUrlOk() (*string, bool)` + +GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyslogDrainUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) SetSyslogDrainUrl(v string)` + +SetSyslogDrainUrl sets SyslogDrainUrl field to given value. + +### HasSyslogDrainUrl + +`func (o *V3ServiceInstancesGuidPatchRequest) HasSyslogDrainUrl() bool` + +HasSyslogDrainUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md b/docs/V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md new file mode 100644 index 0000000..ed0bf02 --- /dev/null +++ b/docs/V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest.md @@ -0,0 +1,56 @@ +# V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]Space**](Space.md) | | [optional] + +## Methods + +### NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + +`func NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest() *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest` + +NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest instantiates a new V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequestWithDefaults + +`func NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequestWithDefaults() *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest` + +NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequestWithDefaults instantiates a new V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) GetData() []Space` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) GetDataOk() (*[]Space, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) SetData(v []Space)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceRouteBindingsGet200Response.md b/docs/V3ServiceRouteBindingsGet200Response.md new file mode 100644 index 0000000..7d20d7d --- /dev/null +++ b/docs/V3ServiceRouteBindingsGet200Response.md @@ -0,0 +1,82 @@ +# V3ServiceRouteBindingsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]ServiceRouteBinding**](ServiceRouteBinding.md) | | [optional] + +## Methods + +### NewV3ServiceRouteBindingsGet200Response + +`func NewV3ServiceRouteBindingsGet200Response() *V3ServiceRouteBindingsGet200Response` + +NewV3ServiceRouteBindingsGet200Response instantiates a new V3ServiceRouteBindingsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceRouteBindingsGet200ResponseWithDefaults + +`func NewV3ServiceRouteBindingsGet200ResponseWithDefaults() *V3ServiceRouteBindingsGet200Response` + +NewV3ServiceRouteBindingsGet200ResponseWithDefaults instantiates a new V3ServiceRouteBindingsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3ServiceRouteBindingsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3ServiceRouteBindingsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3ServiceRouteBindingsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3ServiceRouteBindingsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3ServiceRouteBindingsGet200Response) GetResources() []ServiceRouteBinding` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3ServiceRouteBindingsGet200Response) GetResourcesOk() (*[]ServiceRouteBinding, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3ServiceRouteBindingsGet200Response) SetResources(v []ServiceRouteBinding)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3ServiceRouteBindingsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceRouteBindingsGuidPatchRequest.md b/docs/V3ServiceRouteBindingsGuidPatchRequest.md new file mode 100644 index 0000000..553ba8b --- /dev/null +++ b/docs/V3ServiceRouteBindingsGuidPatchRequest.md @@ -0,0 +1,56 @@ +# V3ServiceRouteBindingsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional] + +## Methods + +### NewV3ServiceRouteBindingsGuidPatchRequest + +`func NewV3ServiceRouteBindingsGuidPatchRequest() *V3ServiceRouteBindingsGuidPatchRequest` + +NewV3ServiceRouteBindingsGuidPatchRequest instantiates a new V3ServiceRouteBindingsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceRouteBindingsGuidPatchRequestWithDefaults + +`func NewV3ServiceRouteBindingsGuidPatchRequestWithDefaults() *V3ServiceRouteBindingsGuidPatchRequest` + +NewV3ServiceRouteBindingsGuidPatchRequestWithDefaults instantiates a new V3ServiceRouteBindingsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3ServiceRouteBindingsGuidPatchRequest) GetMetadata() Metadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3ServiceRouteBindingsGuidPatchRequest) GetMetadataOk() (*Metadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3ServiceRouteBindingsGuidPatchRequest) SetMetadata(v Metadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3ServiceRouteBindingsGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceRouteBindingsPostRequest.md b/docs/V3ServiceRouteBindingsPostRequest.md new file mode 100644 index 0000000..94f8c5a --- /dev/null +++ b/docs/V3ServiceRouteBindingsPostRequest.md @@ -0,0 +1,103 @@ +# V3ServiceRouteBindingsPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional] +**Parameters** | Pointer to **map[string]interface{}** | | [optional] +**Relationships** | [**ServiceRouteBindingRelationships**](ServiceRouteBindingRelationships.md) | | + +## Methods + +### NewV3ServiceRouteBindingsPostRequest + +`func NewV3ServiceRouteBindingsPostRequest(relationships ServiceRouteBindingRelationships, ) *V3ServiceRouteBindingsPostRequest` + +NewV3ServiceRouteBindingsPostRequest instantiates a new V3ServiceRouteBindingsPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceRouteBindingsPostRequestWithDefaults + +`func NewV3ServiceRouteBindingsPostRequestWithDefaults() *V3ServiceRouteBindingsPostRequest` + +NewV3ServiceRouteBindingsPostRequestWithDefaults instantiates a new V3ServiceRouteBindingsPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3ServiceRouteBindingsPostRequest) GetMetadata() Metadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3ServiceRouteBindingsPostRequest) GetMetadataOk() (*Metadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3ServiceRouteBindingsPostRequest) SetMetadata(v Metadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3ServiceRouteBindingsPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetParameters + +`func (o *V3ServiceRouteBindingsPostRequest) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *V3ServiceRouteBindingsPostRequest) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *V3ServiceRouteBindingsPostRequest) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *V3ServiceRouteBindingsPostRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetRelationships + +`func (o *V3ServiceRouteBindingsPostRequest) GetRelationships() ServiceRouteBindingRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3ServiceRouteBindingsPostRequest) GetRelationshipsOk() (*ServiceRouteBindingRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3ServiceRouteBindingsPostRequest) SetRelationships(v ServiceRouteBindingRelationships)` + +SetRelationships sets Relationships field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3ServiceUsageEventsGet200Response.md b/docs/V3ServiceUsageEventsGet200Response.md new file mode 100644 index 0000000..c8d32ff --- /dev/null +++ b/docs/V3ServiceUsageEventsGet200Response.md @@ -0,0 +1,82 @@ +# V3ServiceUsageEventsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]ServiceUsageEvent**](ServiceUsageEvent.md) | | [optional] + +## Methods + +### NewV3ServiceUsageEventsGet200Response + +`func NewV3ServiceUsageEventsGet200Response() *V3ServiceUsageEventsGet200Response` + +NewV3ServiceUsageEventsGet200Response instantiates a new V3ServiceUsageEventsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3ServiceUsageEventsGet200ResponseWithDefaults + +`func NewV3ServiceUsageEventsGet200ResponseWithDefaults() *V3ServiceUsageEventsGet200Response` + +NewV3ServiceUsageEventsGet200ResponseWithDefaults instantiates a new V3ServiceUsageEventsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3ServiceUsageEventsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3ServiceUsageEventsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3ServiceUsageEventsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3ServiceUsageEventsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3ServiceUsageEventsGet200Response) GetResources() []ServiceUsageEvent` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3ServiceUsageEventsGet200Response) GetResourcesOk() (*[]ServiceUsageEvent, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3ServiceUsageEventsGet200Response) SetResources(v []ServiceUsageEvent)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3ServiceUsageEventsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SidecarsGuidPatchRequest.md b/docs/V3SidecarsGuidPatchRequest.md new file mode 100644 index 0000000..33f35f9 --- /dev/null +++ b/docs/V3SidecarsGuidPatchRequest.md @@ -0,0 +1,134 @@ +# V3SidecarsGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **string** | | [optional] +**MemoryInMb** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProcessTypes** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV3SidecarsGuidPatchRequest + +`func NewV3SidecarsGuidPatchRequest() *V3SidecarsGuidPatchRequest` + +NewV3SidecarsGuidPatchRequest instantiates a new V3SidecarsGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SidecarsGuidPatchRequestWithDefaults + +`func NewV3SidecarsGuidPatchRequestWithDefaults() *V3SidecarsGuidPatchRequest` + +NewV3SidecarsGuidPatchRequestWithDefaults instantiates a new V3SidecarsGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *V3SidecarsGuidPatchRequest) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *V3SidecarsGuidPatchRequest) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *V3SidecarsGuidPatchRequest) SetCommand(v string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *V3SidecarsGuidPatchRequest) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### GetMemoryInMb + +`func (o *V3SidecarsGuidPatchRequest) GetMemoryInMb() int32` + +GetMemoryInMb returns the MemoryInMb field if non-nil, zero value otherwise. + +### GetMemoryInMbOk + +`func (o *V3SidecarsGuidPatchRequest) GetMemoryInMbOk() (*int32, bool)` + +GetMemoryInMbOk returns a tuple with the MemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryInMb + +`func (o *V3SidecarsGuidPatchRequest) SetMemoryInMb(v int32)` + +SetMemoryInMb sets MemoryInMb field to given value. + +### HasMemoryInMb + +`func (o *V3SidecarsGuidPatchRequest) HasMemoryInMb() bool` + +HasMemoryInMb returns a boolean if a field has been set. + +### GetName + +`func (o *V3SidecarsGuidPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3SidecarsGuidPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3SidecarsGuidPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3SidecarsGuidPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProcessTypes + +`func (o *V3SidecarsGuidPatchRequest) GetProcessTypes() []string` + +GetProcessTypes returns the ProcessTypes field if non-nil, zero value otherwise. + +### GetProcessTypesOk + +`func (o *V3SidecarsGuidPatchRequest) GetProcessTypesOk() (*[]string, bool)` + +GetProcessTypesOk returns a tuple with the ProcessTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessTypes + +`func (o *V3SidecarsGuidPatchRequest) SetProcessTypes(v []string)` + +SetProcessTypes sets ProcessTypes field to given value. + +### HasProcessTypes + +`func (o *V3SidecarsGuidPatchRequest) HasProcessTypes() bool` + +HasProcessTypes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasGet200Response.md b/docs/V3SpaceQuotasGet200Response.md new file mode 100644 index 0000000..17b28d7 --- /dev/null +++ b/docs/V3SpaceQuotasGet200Response.md @@ -0,0 +1,82 @@ +# V3SpaceQuotasGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]SpaceQuota**](SpaceQuota.md) | | [optional] + +## Methods + +### NewV3SpaceQuotasGet200Response + +`func NewV3SpaceQuotasGet200Response() *V3SpaceQuotasGet200Response` + +NewV3SpaceQuotasGet200Response instantiates a new V3SpaceQuotasGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasGet200ResponseWithDefaults + +`func NewV3SpaceQuotasGet200ResponseWithDefaults() *V3SpaceQuotasGet200Response` + +NewV3SpaceQuotasGet200ResponseWithDefaults instantiates a new V3SpaceQuotasGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3SpaceQuotasGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3SpaceQuotasGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3SpaceQuotasGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3SpaceQuotasGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3SpaceQuotasGet200Response) GetResources() []SpaceQuota` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3SpaceQuotasGet200Response) GetResourcesOk() (*[]SpaceQuota, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3SpaceQuotasGet200Response) SetResources(v []SpaceQuota)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3SpaceQuotasGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasGuidPatchRequest.md b/docs/V3SpaceQuotasGuidPatchRequest.md new file mode 100644 index 0000000..747679e --- /dev/null +++ b/docs/V3SpaceQuotasGuidPatchRequest.md @@ -0,0 +1,134 @@ +# V3SpaceQuotasGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**V3SpaceQuotasPostRequestApps**](V3SpaceQuotasPostRequestApps.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Routes** | Pointer to [**V3SpaceQuotasPostRequestRoutes**](V3SpaceQuotasPostRequestRoutes.md) | | [optional] +**Services** | Pointer to [**V3SpaceQuotasPostRequestServices**](V3SpaceQuotasPostRequestServices.md) | | [optional] + +## Methods + +### NewV3SpaceQuotasGuidPatchRequest + +`func NewV3SpaceQuotasGuidPatchRequest() *V3SpaceQuotasGuidPatchRequest` + +NewV3SpaceQuotasGuidPatchRequest instantiates a new V3SpaceQuotasGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasGuidPatchRequestWithDefaults + +`func NewV3SpaceQuotasGuidPatchRequestWithDefaults() *V3SpaceQuotasGuidPatchRequest` + +NewV3SpaceQuotasGuidPatchRequestWithDefaults instantiates a new V3SpaceQuotasGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *V3SpaceQuotasGuidPatchRequest) GetApps() V3SpaceQuotasPostRequestApps` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *V3SpaceQuotasGuidPatchRequest) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *V3SpaceQuotasGuidPatchRequest) SetApps(v V3SpaceQuotasPostRequestApps)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *V3SpaceQuotasGuidPatchRequest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetName + +`func (o *V3SpaceQuotasGuidPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3SpaceQuotasGuidPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3SpaceQuotasGuidPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3SpaceQuotasGuidPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRoutes + +`func (o *V3SpaceQuotasGuidPatchRequest) GetRoutes() V3SpaceQuotasPostRequestRoutes` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *V3SpaceQuotasGuidPatchRequest) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *V3SpaceQuotasGuidPatchRequest) SetRoutes(v V3SpaceQuotasPostRequestRoutes)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *V3SpaceQuotasGuidPatchRequest) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *V3SpaceQuotasGuidPatchRequest) GetServices() V3SpaceQuotasPostRequestServices` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *V3SpaceQuotasGuidPatchRequest) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *V3SpaceQuotasGuidPatchRequest) SetServices(v V3SpaceQuotasPostRequestServices)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *V3SpaceQuotasGuidPatchRequest) HasServices() bool` + +HasServices returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasPostRequest.md b/docs/V3SpaceQuotasPostRequest.md new file mode 100644 index 0000000..e65b710 --- /dev/null +++ b/docs/V3SpaceQuotasPostRequest.md @@ -0,0 +1,150 @@ +# V3SpaceQuotasPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**V3SpaceQuotasPostRequestApps**](V3SpaceQuotasPostRequestApps.md) | | [optional] +**Name** | **string** | | +**Relationships** | [**V3SpaceQuotasPostRequestRelationships**](V3SpaceQuotasPostRequestRelationships.md) | | +**Routes** | Pointer to [**V3SpaceQuotasPostRequestRoutes**](V3SpaceQuotasPostRequestRoutes.md) | | [optional] +**Services** | Pointer to [**V3SpaceQuotasPostRequestServices**](V3SpaceQuotasPostRequestServices.md) | | [optional] + +## Methods + +### NewV3SpaceQuotasPostRequest + +`func NewV3SpaceQuotasPostRequest(name string, relationships V3SpaceQuotasPostRequestRelationships, ) *V3SpaceQuotasPostRequest` + +NewV3SpaceQuotasPostRequest instantiates a new V3SpaceQuotasPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasPostRequestWithDefaults + +`func NewV3SpaceQuotasPostRequestWithDefaults() *V3SpaceQuotasPostRequest` + +NewV3SpaceQuotasPostRequestWithDefaults instantiates a new V3SpaceQuotasPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApps + +`func (o *V3SpaceQuotasPostRequest) GetApps() V3SpaceQuotasPostRequestApps` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *V3SpaceQuotasPostRequest) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool)` + +GetAppsOk returns a tuple with the Apps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApps + +`func (o *V3SpaceQuotasPostRequest) SetApps(v V3SpaceQuotasPostRequestApps)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *V3SpaceQuotasPostRequest) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetName + +`func (o *V3SpaceQuotasPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3SpaceQuotasPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3SpaceQuotasPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelationships + +`func (o *V3SpaceQuotasPostRequest) GetRelationships() V3SpaceQuotasPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3SpaceQuotasPostRequest) GetRelationshipsOk() (*V3SpaceQuotasPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3SpaceQuotasPostRequest) SetRelationships(v V3SpaceQuotasPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + + +### GetRoutes + +`func (o *V3SpaceQuotasPostRequest) GetRoutes() V3SpaceQuotasPostRequestRoutes` + +GetRoutes returns the Routes field if non-nil, zero value otherwise. + +### GetRoutesOk + +`func (o *V3SpaceQuotasPostRequest) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool)` + +GetRoutesOk returns a tuple with the Routes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutes + +`func (o *V3SpaceQuotasPostRequest) SetRoutes(v V3SpaceQuotasPostRequestRoutes)` + +SetRoutes sets Routes field to given value. + +### HasRoutes + +`func (o *V3SpaceQuotasPostRequest) HasRoutes() bool` + +HasRoutes returns a boolean if a field has been set. + +### GetServices + +`func (o *V3SpaceQuotasPostRequest) GetServices() V3SpaceQuotasPostRequestServices` + +GetServices returns the Services field if non-nil, zero value otherwise. + +### GetServicesOk + +`func (o *V3SpaceQuotasPostRequest) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool)` + +GetServicesOk returns a tuple with the Services field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServices + +`func (o *V3SpaceQuotasPostRequest) SetServices(v V3SpaceQuotasPostRequestServices)` + +SetServices sets Services field to given value. + +### HasServices + +`func (o *V3SpaceQuotasPostRequest) HasServices() bool` + +HasServices returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasPostRequestApps.md b/docs/V3SpaceQuotasPostRequestApps.md new file mode 100644 index 0000000..c276a97 --- /dev/null +++ b/docs/V3SpaceQuotasPostRequestApps.md @@ -0,0 +1,210 @@ +# V3SpaceQuotasPostRequestApps + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogRateLimitInBytesPerSecond** | Pointer to **NullableInt32** | | [optional] +**PerAppTasks** | Pointer to **NullableInt32** | | [optional] +**PerProcessMemoryInMb** | Pointer to **NullableInt32** | | [optional] +**TotalInstances** | Pointer to **NullableInt32** | | [optional] +**TotalMemoryInMb** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewV3SpaceQuotasPostRequestApps + +`func NewV3SpaceQuotasPostRequestApps() *V3SpaceQuotasPostRequestApps` + +NewV3SpaceQuotasPostRequestApps instantiates a new V3SpaceQuotasPostRequestApps object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasPostRequestAppsWithDefaults + +`func NewV3SpaceQuotasPostRequestAppsWithDefaults() *V3SpaceQuotasPostRequestApps` + +NewV3SpaceQuotasPostRequestAppsWithDefaults instantiates a new V3SpaceQuotasPostRequestApps object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogRateLimitInBytesPerSecond + +`func (o *V3SpaceQuotasPostRequestApps) GetLogRateLimitInBytesPerSecond() int32` + +GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field if non-nil, zero value otherwise. + +### GetLogRateLimitInBytesPerSecondOk + +`func (o *V3SpaceQuotasPostRequestApps) GetLogRateLimitInBytesPerSecondOk() (*int32, bool)` + +GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogRateLimitInBytesPerSecond + +`func (o *V3SpaceQuotasPostRequestApps) SetLogRateLimitInBytesPerSecond(v int32)` + +SetLogRateLimitInBytesPerSecond sets LogRateLimitInBytesPerSecond field to given value. + +### HasLogRateLimitInBytesPerSecond + +`func (o *V3SpaceQuotasPostRequestApps) HasLogRateLimitInBytesPerSecond() bool` + +HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. + +### SetLogRateLimitInBytesPerSecondNil + +`func (o *V3SpaceQuotasPostRequestApps) SetLogRateLimitInBytesPerSecondNil(b bool)` + + SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil + +### UnsetLogRateLimitInBytesPerSecond +`func (o *V3SpaceQuotasPostRequestApps) UnsetLogRateLimitInBytesPerSecond()` + +UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +### GetPerAppTasks + +`func (o *V3SpaceQuotasPostRequestApps) GetPerAppTasks() int32` + +GetPerAppTasks returns the PerAppTasks field if non-nil, zero value otherwise. + +### GetPerAppTasksOk + +`func (o *V3SpaceQuotasPostRequestApps) GetPerAppTasksOk() (*int32, bool)` + +GetPerAppTasksOk returns a tuple with the PerAppTasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerAppTasks + +`func (o *V3SpaceQuotasPostRequestApps) SetPerAppTasks(v int32)` + +SetPerAppTasks sets PerAppTasks field to given value. + +### HasPerAppTasks + +`func (o *V3SpaceQuotasPostRequestApps) HasPerAppTasks() bool` + +HasPerAppTasks returns a boolean if a field has been set. + +### SetPerAppTasksNil + +`func (o *V3SpaceQuotasPostRequestApps) SetPerAppTasksNil(b bool)` + + SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil + +### UnsetPerAppTasks +`func (o *V3SpaceQuotasPostRequestApps) UnsetPerAppTasks()` + +UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +### GetPerProcessMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) GetPerProcessMemoryInMb() int32` + +GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field if non-nil, zero value otherwise. + +### GetPerProcessMemoryInMbOk + +`func (o *V3SpaceQuotasPostRequestApps) GetPerProcessMemoryInMbOk() (*int32, bool)` + +GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPerProcessMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) SetPerProcessMemoryInMb(v int32)` + +SetPerProcessMemoryInMb sets PerProcessMemoryInMb field to given value. + +### HasPerProcessMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) HasPerProcessMemoryInMb() bool` + +HasPerProcessMemoryInMb returns a boolean if a field has been set. + +### SetPerProcessMemoryInMbNil + +`func (o *V3SpaceQuotasPostRequestApps) SetPerProcessMemoryInMbNil(b bool)` + + SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil + +### UnsetPerProcessMemoryInMb +`func (o *V3SpaceQuotasPostRequestApps) UnsetPerProcessMemoryInMb()` + +UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +### GetTotalInstances + +`func (o *V3SpaceQuotasPostRequestApps) GetTotalInstances() int32` + +GetTotalInstances returns the TotalInstances field if non-nil, zero value otherwise. + +### GetTotalInstancesOk + +`func (o *V3SpaceQuotasPostRequestApps) GetTotalInstancesOk() (*int32, bool)` + +GetTotalInstancesOk returns a tuple with the TotalInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalInstances + +`func (o *V3SpaceQuotasPostRequestApps) SetTotalInstances(v int32)` + +SetTotalInstances sets TotalInstances field to given value. + +### HasTotalInstances + +`func (o *V3SpaceQuotasPostRequestApps) HasTotalInstances() bool` + +HasTotalInstances returns a boolean if a field has been set. + +### SetTotalInstancesNil + +`func (o *V3SpaceQuotasPostRequestApps) SetTotalInstancesNil(b bool)` + + SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil + +### UnsetTotalInstances +`func (o *V3SpaceQuotasPostRequestApps) UnsetTotalInstances()` + +UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +### GetTotalMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) GetTotalMemoryInMb() int32` + +GetTotalMemoryInMb returns the TotalMemoryInMb field if non-nil, zero value otherwise. + +### GetTotalMemoryInMbOk + +`func (o *V3SpaceQuotasPostRequestApps) GetTotalMemoryInMbOk() (*int32, bool)` + +GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) SetTotalMemoryInMb(v int32)` + +SetTotalMemoryInMb sets TotalMemoryInMb field to given value. + +### HasTotalMemoryInMb + +`func (o *V3SpaceQuotasPostRequestApps) HasTotalMemoryInMb() bool` + +HasTotalMemoryInMb returns a boolean if a field has been set. + +### SetTotalMemoryInMbNil + +`func (o *V3SpaceQuotasPostRequestApps) SetTotalMemoryInMbNil(b bool)` + + SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil + +### UnsetTotalMemoryInMb +`func (o *V3SpaceQuotasPostRequestApps) UnsetTotalMemoryInMb()` + +UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasPostRequestRelationships.md b/docs/V3SpaceQuotasPostRequestRelationships.md new file mode 100644 index 0000000..6a5b154 --- /dev/null +++ b/docs/V3SpaceQuotasPostRequestRelationships.md @@ -0,0 +1,56 @@ +# V3SpaceQuotasPostRequestRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Organization** | Pointer to [**V3AppsPostRequestRelationshipsSpace**](V3AppsPostRequestRelationshipsSpace.md) | | [optional] + +## Methods + +### NewV3SpaceQuotasPostRequestRelationships + +`func NewV3SpaceQuotasPostRequestRelationships() *V3SpaceQuotasPostRequestRelationships` + +NewV3SpaceQuotasPostRequestRelationships instantiates a new V3SpaceQuotasPostRequestRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasPostRequestRelationshipsWithDefaults + +`func NewV3SpaceQuotasPostRequestRelationshipsWithDefaults() *V3SpaceQuotasPostRequestRelationships` + +NewV3SpaceQuotasPostRequestRelationshipsWithDefaults instantiates a new V3SpaceQuotasPostRequestRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrganization + +`func (o *V3SpaceQuotasPostRequestRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *V3SpaceQuotasPostRequestRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *V3SpaceQuotasPostRequestRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *V3SpaceQuotasPostRequestRelationships) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasPostRequestRoutes.md b/docs/V3SpaceQuotasPostRequestRoutes.md new file mode 100644 index 0000000..1e0b852 --- /dev/null +++ b/docs/V3SpaceQuotasPostRequestRoutes.md @@ -0,0 +1,102 @@ +# V3SpaceQuotasPostRequestRoutes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalReservedPorts** | Pointer to **NullableInt32** | | [optional] +**TotalRoutes** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewV3SpaceQuotasPostRequestRoutes + +`func NewV3SpaceQuotasPostRequestRoutes() *V3SpaceQuotasPostRequestRoutes` + +NewV3SpaceQuotasPostRequestRoutes instantiates a new V3SpaceQuotasPostRequestRoutes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasPostRequestRoutesWithDefaults + +`func NewV3SpaceQuotasPostRequestRoutesWithDefaults() *V3SpaceQuotasPostRequestRoutes` + +NewV3SpaceQuotasPostRequestRoutesWithDefaults instantiates a new V3SpaceQuotasPostRequestRoutes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotalReservedPorts + +`func (o *V3SpaceQuotasPostRequestRoutes) GetTotalReservedPorts() int32` + +GetTotalReservedPorts returns the TotalReservedPorts field if non-nil, zero value otherwise. + +### GetTotalReservedPortsOk + +`func (o *V3SpaceQuotasPostRequestRoutes) GetTotalReservedPortsOk() (*int32, bool)` + +GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalReservedPorts + +`func (o *V3SpaceQuotasPostRequestRoutes) SetTotalReservedPorts(v int32)` + +SetTotalReservedPorts sets TotalReservedPorts field to given value. + +### HasTotalReservedPorts + +`func (o *V3SpaceQuotasPostRequestRoutes) HasTotalReservedPorts() bool` + +HasTotalReservedPorts returns a boolean if a field has been set. + +### SetTotalReservedPortsNil + +`func (o *V3SpaceQuotasPostRequestRoutes) SetTotalReservedPortsNil(b bool)` + + SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil + +### UnsetTotalReservedPorts +`func (o *V3SpaceQuotasPostRequestRoutes) UnsetTotalReservedPorts()` + +UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +### GetTotalRoutes + +`func (o *V3SpaceQuotasPostRequestRoutes) GetTotalRoutes() int32` + +GetTotalRoutes returns the TotalRoutes field if non-nil, zero value otherwise. + +### GetTotalRoutesOk + +`func (o *V3SpaceQuotasPostRequestRoutes) GetTotalRoutesOk() (*int32, bool)` + +GetTotalRoutesOk returns a tuple with the TotalRoutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalRoutes + +`func (o *V3SpaceQuotasPostRequestRoutes) SetTotalRoutes(v int32)` + +SetTotalRoutes sets TotalRoutes field to given value. + +### HasTotalRoutes + +`func (o *V3SpaceQuotasPostRequestRoutes) HasTotalRoutes() bool` + +HasTotalRoutes returns a boolean if a field has been set. + +### SetTotalRoutesNil + +`func (o *V3SpaceQuotasPostRequestRoutes) SetTotalRoutesNil(b bool)` + + SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil + +### UnsetTotalRoutes +`func (o *V3SpaceQuotasPostRequestRoutes) UnsetTotalRoutes()` + +UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasPostRequestServices.md b/docs/V3SpaceQuotasPostRequestServices.md new file mode 100644 index 0000000..389635b --- /dev/null +++ b/docs/V3SpaceQuotasPostRequestServices.md @@ -0,0 +1,128 @@ +# V3SpaceQuotasPostRequestServices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PaidServicesAllowed** | Pointer to **bool** | | [optional] +**TotalServiceInstances** | Pointer to **NullableInt32** | | [optional] +**TotalServiceKeys** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewV3SpaceQuotasPostRequestServices + +`func NewV3SpaceQuotasPostRequestServices() *V3SpaceQuotasPostRequestServices` + +NewV3SpaceQuotasPostRequestServices instantiates a new V3SpaceQuotasPostRequestServices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasPostRequestServicesWithDefaults + +`func NewV3SpaceQuotasPostRequestServicesWithDefaults() *V3SpaceQuotasPostRequestServices` + +NewV3SpaceQuotasPostRequestServicesWithDefaults instantiates a new V3SpaceQuotasPostRequestServices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPaidServicesAllowed + +`func (o *V3SpaceQuotasPostRequestServices) GetPaidServicesAllowed() bool` + +GetPaidServicesAllowed returns the PaidServicesAllowed field if non-nil, zero value otherwise. + +### GetPaidServicesAllowedOk + +`func (o *V3SpaceQuotasPostRequestServices) GetPaidServicesAllowedOk() (*bool, bool)` + +GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaidServicesAllowed + +`func (o *V3SpaceQuotasPostRequestServices) SetPaidServicesAllowed(v bool)` + +SetPaidServicesAllowed sets PaidServicesAllowed field to given value. + +### HasPaidServicesAllowed + +`func (o *V3SpaceQuotasPostRequestServices) HasPaidServicesAllowed() bool` + +HasPaidServicesAllowed returns a boolean if a field has been set. + +### GetTotalServiceInstances + +`func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceInstances() int32` + +GetTotalServiceInstances returns the TotalServiceInstances field if non-nil, zero value otherwise. + +### GetTotalServiceInstancesOk + +`func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceInstancesOk() (*int32, bool)` + +GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceInstances + +`func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceInstances(v int32)` + +SetTotalServiceInstances sets TotalServiceInstances field to given value. + +### HasTotalServiceInstances + +`func (o *V3SpaceQuotasPostRequestServices) HasTotalServiceInstances() bool` + +HasTotalServiceInstances returns a boolean if a field has been set. + +### SetTotalServiceInstancesNil + +`func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceInstancesNil(b bool)` + + SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil + +### UnsetTotalServiceInstances +`func (o *V3SpaceQuotasPostRequestServices) UnsetTotalServiceInstances()` + +UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +### GetTotalServiceKeys + +`func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceKeys() int32` + +GetTotalServiceKeys returns the TotalServiceKeys field if non-nil, zero value otherwise. + +### GetTotalServiceKeysOk + +`func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceKeysOk() (*int32, bool)` + +GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalServiceKeys + +`func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceKeys(v int32)` + +SetTotalServiceKeys sets TotalServiceKeys field to given value. + +### HasTotalServiceKeys + +`func (o *V3SpaceQuotasPostRequestServices) HasTotalServiceKeys() bool` + +HasTotalServiceKeys returns a boolean if a field has been set. + +### SetTotalServiceKeysNil + +`func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceKeysNil(b bool)` + + SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil + +### UnsetTotalServiceKeys +`func (o *V3SpaceQuotasPostRequestServices) UnsetTotalServiceKeys()` + +UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md b/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md new file mode 100644 index 0000000..518fd3a --- /dev/null +++ b/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response.md @@ -0,0 +1,82 @@ +# V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V3AppsPostRequestRelationshipsSpaceData**](V3AppsPostRequestRelationshipsSpaceData.md) | | [optional] +**Links** | Pointer to [**V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks**](V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md) | | [optional] + +## Methods + +### NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + +`func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response` + +NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseWithDefaults + +`func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseWithDefaults() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response` + +NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseWithDefaults instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetDataOk() (*[]V3AppsPostRequestRelationshipsSpaceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLinks + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetLinks() V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetLinksOk() (*V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) SetLinks(v V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md b/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md new file mode 100644 index 0000000..f269419 --- /dev/null +++ b/docs/V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks.md @@ -0,0 +1,56 @@ +# V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Self** | Pointer to **string** | | [optional] + +## Methods + +### NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks + +`func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks` + +NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinksWithDefaults + +`func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinksWithDefaults() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks` + +NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinksWithDefaults instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelf + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) GetSelf() string` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) GetSelfOk() (*string, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) SetSelf(v string)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesGet200Response.md b/docs/V3SpacesGet200Response.md new file mode 100644 index 0000000..1a7690c --- /dev/null +++ b/docs/V3SpacesGet200Response.md @@ -0,0 +1,82 @@ +# V3SpacesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Space**](Space.md) | | [optional] + +## Methods + +### NewV3SpacesGet200Response + +`func NewV3SpacesGet200Response() *V3SpacesGet200Response` + +NewV3SpacesGet200Response instantiates a new V3SpacesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesGet200ResponseWithDefaults + +`func NewV3SpacesGet200ResponseWithDefaults() *V3SpacesGet200Response` + +NewV3SpacesGet200ResponseWithDefaults instantiates a new V3SpacesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3SpacesGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3SpacesGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3SpacesGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3SpacesGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3SpacesGet200Response) GetResources() []Space` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3SpacesGet200Response) GetResourcesOk() (*[]Space, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3SpacesGet200Response) SetResources(v []Space)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3SpacesGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesGuidFeaturesGet200Response.md b/docs/V3SpacesGuidFeaturesGet200Response.md new file mode 100644 index 0000000..eda6781 --- /dev/null +++ b/docs/V3SpacesGuidFeaturesGet200Response.md @@ -0,0 +1,56 @@ +# V3SpacesGuidFeaturesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resources** | Pointer to [**[]SpaceFeature**](SpaceFeature.md) | | [optional] + +## Methods + +### NewV3SpacesGuidFeaturesGet200Response + +`func NewV3SpacesGuidFeaturesGet200Response() *V3SpacesGuidFeaturesGet200Response` + +NewV3SpacesGuidFeaturesGet200Response instantiates a new V3SpacesGuidFeaturesGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesGuidFeaturesGet200ResponseWithDefaults + +`func NewV3SpacesGuidFeaturesGet200ResponseWithDefaults() *V3SpacesGuidFeaturesGet200Response` + +NewV3SpacesGuidFeaturesGet200ResponseWithDefaults instantiates a new V3SpacesGuidFeaturesGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResources + +`func (o *V3SpacesGuidFeaturesGet200Response) GetResources() []SpaceFeature` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3SpacesGuidFeaturesGet200Response) GetResourcesOk() (*[]SpaceFeature, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3SpacesGuidFeaturesGet200Response) SetResources(v []SpaceFeature)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3SpacesGuidFeaturesGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesGuidFeaturesPatchRequest.md b/docs/V3SpacesGuidFeaturesPatchRequest.md new file mode 100644 index 0000000..c5129be --- /dev/null +++ b/docs/V3SpacesGuidFeaturesPatchRequest.md @@ -0,0 +1,56 @@ +# V3SpacesGuidFeaturesPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewV3SpacesGuidFeaturesPatchRequest + +`func NewV3SpacesGuidFeaturesPatchRequest() *V3SpacesGuidFeaturesPatchRequest` + +NewV3SpacesGuidFeaturesPatchRequest instantiates a new V3SpacesGuidFeaturesPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesGuidFeaturesPatchRequestWithDefaults + +`func NewV3SpacesGuidFeaturesPatchRequestWithDefaults() *V3SpacesGuidFeaturesPatchRequest` + +NewV3SpacesGuidFeaturesPatchRequestWithDefaults instantiates a new V3SpacesGuidFeaturesPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *V3SpacesGuidFeaturesPatchRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *V3SpacesGuidFeaturesPatchRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *V3SpacesGuidFeaturesPatchRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *V3SpacesGuidFeaturesPatchRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesGuidPatchRequest.md b/docs/V3SpacesGuidPatchRequest.md new file mode 100644 index 0000000..fa572fc --- /dev/null +++ b/docs/V3SpacesGuidPatchRequest.md @@ -0,0 +1,82 @@ +# V3SpacesGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewV3SpacesGuidPatchRequest + +`func NewV3SpacesGuidPatchRequest() *V3SpacesGuidPatchRequest` + +NewV3SpacesGuidPatchRequest instantiates a new V3SpacesGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesGuidPatchRequestWithDefaults + +`func NewV3SpacesGuidPatchRequestWithDefaults() *V3SpacesGuidPatchRequest` + +NewV3SpacesGuidPatchRequestWithDefaults instantiates a new V3SpacesGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3SpacesGuidPatchRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3SpacesGuidPatchRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3SpacesGuidPatchRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3SpacesGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3SpacesGuidPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3SpacesGuidPatchRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3SpacesGuidPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V3SpacesGuidPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesGuidUsersGet200Response.md b/docs/V3SpacesGuidUsersGet200Response.md new file mode 100644 index 0000000..f2698a0 --- /dev/null +++ b/docs/V3SpacesGuidUsersGet200Response.md @@ -0,0 +1,82 @@ +# V3SpacesGuidUsersGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]User**](User.md) | | [optional] + +## Methods + +### NewV3SpacesGuidUsersGet200Response + +`func NewV3SpacesGuidUsersGet200Response() *V3SpacesGuidUsersGet200Response` + +NewV3SpacesGuidUsersGet200Response instantiates a new V3SpacesGuidUsersGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesGuidUsersGet200ResponseWithDefaults + +`func NewV3SpacesGuidUsersGet200ResponseWithDefaults() *V3SpacesGuidUsersGet200Response` + +NewV3SpacesGuidUsersGet200ResponseWithDefaults instantiates a new V3SpacesGuidUsersGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3SpacesGuidUsersGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3SpacesGuidUsersGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3SpacesGuidUsersGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3SpacesGuidUsersGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3SpacesGuidUsersGet200Response) GetResources() []User` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3SpacesGuidUsersGet200Response) GetResourcesOk() (*[]User, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3SpacesGuidUsersGet200Response) SetResources(v []User)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3SpacesGuidUsersGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3SpacesPostRequest.md b/docs/V3SpacesPostRequest.md new file mode 100644 index 0000000..bcc6186 --- /dev/null +++ b/docs/V3SpacesPostRequest.md @@ -0,0 +1,98 @@ +# V3SpacesPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3AppsGuidDropletsCurrentGet200ResponseMetadata**](V3AppsGuidDropletsCurrentGet200ResponseMetadata.md) | | [optional] +**Name** | **string** | | +**Relationships** | [**V3SpaceQuotasPostRequestRelationships**](V3SpaceQuotasPostRequestRelationships.md) | | + +## Methods + +### NewV3SpacesPostRequest + +`func NewV3SpacesPostRequest(name string, relationships V3SpaceQuotasPostRequestRelationships, ) *V3SpacesPostRequest` + +NewV3SpacesPostRequest instantiates a new V3SpacesPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3SpacesPostRequestWithDefaults + +`func NewV3SpacesPostRequestWithDefaults() *V3SpacesPostRequest` + +NewV3SpacesPostRequestWithDefaults instantiates a new V3SpacesPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3SpacesPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3SpacesPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3SpacesPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3SpacesPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3SpacesPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3SpacesPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3SpacesPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRelationships + +`func (o *V3SpacesPostRequest) GetRelationships() V3SpaceQuotasPostRequestRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *V3SpacesPostRequest) GetRelationshipsOk() (*V3SpaceQuotasPostRequestRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *V3SpacesPostRequest) SetRelationships(v V3SpaceQuotasPostRequestRelationships)` + +SetRelationships sets Relationships field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3StacksGet200Response.md b/docs/V3StacksGet200Response.md new file mode 100644 index 0000000..a8d19d8 --- /dev/null +++ b/docs/V3StacksGet200Response.md @@ -0,0 +1,82 @@ +# V3StacksGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Stack**](Stack.md) | | [optional] + +## Methods + +### NewV3StacksGet200Response + +`func NewV3StacksGet200Response() *V3StacksGet200Response` + +NewV3StacksGet200Response instantiates a new V3StacksGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3StacksGet200ResponseWithDefaults + +`func NewV3StacksGet200ResponseWithDefaults() *V3StacksGet200Response` + +NewV3StacksGet200ResponseWithDefaults instantiates a new V3StacksGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3StacksGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3StacksGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3StacksGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3StacksGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3StacksGet200Response) GetResources() []Stack` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3StacksGet200Response) GetResourcesOk() (*[]Stack, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3StacksGet200Response) SetResources(v []Stack)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3StacksGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3StacksGuidAppsGet200Response.md b/docs/V3StacksGuidAppsGet200Response.md new file mode 100644 index 0000000..f222e27 --- /dev/null +++ b/docs/V3StacksGuidAppsGet200Response.md @@ -0,0 +1,82 @@ +# V3StacksGuidAppsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]App**](App.md) | | [optional] + +## Methods + +### NewV3StacksGuidAppsGet200Response + +`func NewV3StacksGuidAppsGet200Response() *V3StacksGuidAppsGet200Response` + +NewV3StacksGuidAppsGet200Response instantiates a new V3StacksGuidAppsGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3StacksGuidAppsGet200ResponseWithDefaults + +`func NewV3StacksGuidAppsGet200ResponseWithDefaults() *V3StacksGuidAppsGet200Response` + +NewV3StacksGuidAppsGet200ResponseWithDefaults instantiates a new V3StacksGuidAppsGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3StacksGuidAppsGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3StacksGuidAppsGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3StacksGuidAppsGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3StacksGuidAppsGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3StacksGuidAppsGet200Response) GetResources() []App` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3StacksGuidAppsGet200Response) GetResourcesOk() (*[]App, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3StacksGuidAppsGet200Response) SetResources(v []App)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3StacksGuidAppsGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3StacksPostRequest.md b/docs/V3StacksPostRequest.md new file mode 100644 index 0000000..44a43ab --- /dev/null +++ b/docs/V3StacksPostRequest.md @@ -0,0 +1,103 @@ +# V3StacksPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | Description of the stack; must be no longer than 250 characters | [optional] +**Metadata** | Pointer to [**V3AppsGuidTasksPostRequestMetadata**](V3AppsGuidTasksPostRequestMetadata.md) | | [optional] +**Name** | **string** | Name of the stack; must be unique and no longer than 250 characters | + +## Methods + +### NewV3StacksPostRequest + +`func NewV3StacksPostRequest(name string, ) *V3StacksPostRequest` + +NewV3StacksPostRequest instantiates a new V3StacksPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3StacksPostRequestWithDefaults + +`func NewV3StacksPostRequestWithDefaults() *V3StacksPostRequest` + +NewV3StacksPostRequestWithDefaults instantiates a new V3StacksPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *V3StacksPostRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *V3StacksPostRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *V3StacksPostRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *V3StacksPostRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3StacksPostRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3StacksPostRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3StacksPostRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3StacksPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetName + +`func (o *V3StacksPostRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V3StacksPostRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V3StacksPostRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3TasksGet200Response.md b/docs/V3TasksGet200Response.md new file mode 100644 index 0000000..7195a0a --- /dev/null +++ b/docs/V3TasksGet200Response.md @@ -0,0 +1,82 @@ +# V3TasksGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**Resources** | Pointer to [**[]Task**](Task.md) | | [optional] + +## Methods + +### NewV3TasksGet200Response + +`func NewV3TasksGet200Response() *V3TasksGet200Response` + +NewV3TasksGet200Response instantiates a new V3TasksGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3TasksGet200ResponseWithDefaults + +`func NewV3TasksGet200ResponseWithDefaults() *V3TasksGet200Response` + +NewV3TasksGet200ResponseWithDefaults instantiates a new V3TasksGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3TasksGet200Response) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3TasksGet200Response) GetPaginationOk() (*Pagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3TasksGet200Response) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3TasksGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3TasksGet200Response) GetResources() []Task` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3TasksGet200Response) GetResourcesOk() (*[]Task, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3TasksGet200Response) SetResources(v []Task)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3TasksGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3UsersGet200Response.md b/docs/V3UsersGet200Response.md new file mode 100644 index 0000000..0334996 --- /dev/null +++ b/docs/V3UsersGet200Response.md @@ -0,0 +1,82 @@ +# V3UsersGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Pagination** | Pointer to [**V3RoutesGet200ResponsePagination**](V3RoutesGet200ResponsePagination.md) | | [optional] +**Resources** | Pointer to [**[]User**](User.md) | | [optional] + +## Methods + +### NewV3UsersGet200Response + +`func NewV3UsersGet200Response() *V3UsersGet200Response` + +NewV3UsersGet200Response instantiates a new V3UsersGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3UsersGet200ResponseWithDefaults + +`func NewV3UsersGet200ResponseWithDefaults() *V3UsersGet200Response` + +NewV3UsersGet200ResponseWithDefaults instantiates a new V3UsersGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPagination + +`func (o *V3UsersGet200Response) GetPagination() V3RoutesGet200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *V3UsersGet200Response) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *V3UsersGet200Response) SetPagination(v V3RoutesGet200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *V3UsersGet200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetResources + +`func (o *V3UsersGet200Response) GetResources() []User` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V3UsersGet200Response) GetResourcesOk() (*[]User, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V3UsersGet200Response) SetResources(v []User)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *V3UsersGet200Response) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3UsersGuidPatchRequest.md b/docs/V3UsersGuidPatchRequest.md new file mode 100644 index 0000000..69dd871 --- /dev/null +++ b/docs/V3UsersGuidPatchRequest.md @@ -0,0 +1,56 @@ +# V3UsersGuidPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**V3UsersPostRequestMetadata**](V3UsersPostRequestMetadata.md) | | [optional] + +## Methods + +### NewV3UsersGuidPatchRequest + +`func NewV3UsersGuidPatchRequest() *V3UsersGuidPatchRequest` + +NewV3UsersGuidPatchRequest instantiates a new V3UsersGuidPatchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3UsersGuidPatchRequestWithDefaults + +`func NewV3UsersGuidPatchRequestWithDefaults() *V3UsersGuidPatchRequest` + +NewV3UsersGuidPatchRequestWithDefaults instantiates a new V3UsersGuidPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *V3UsersGuidPatchRequest) GetMetadata() V3UsersPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3UsersGuidPatchRequest) GetMetadataOk() (*V3UsersPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3UsersGuidPatchRequest) SetMetadata(v V3UsersPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3UsersGuidPatchRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3UsersPostRequest.md b/docs/V3UsersPostRequest.md new file mode 100644 index 0000000..12b8125 --- /dev/null +++ b/docs/V3UsersPostRequest.md @@ -0,0 +1,82 @@ +# V3UsersPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Guid** | Pointer to **string** | Unique identifier for the user. For UAA users this will match the user ID of an existing UAA user’s GUID; in the case of UAA clients, this will match the UAA client ID | [optional] +**Metadata** | Pointer to [**V3UsersPostRequestMetadata**](V3UsersPostRequestMetadata.md) | | [optional] + +## Methods + +### NewV3UsersPostRequest + +`func NewV3UsersPostRequest() *V3UsersPostRequest` + +NewV3UsersPostRequest instantiates a new V3UsersPostRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3UsersPostRequestWithDefaults + +`func NewV3UsersPostRequestWithDefaults() *V3UsersPostRequest` + +NewV3UsersPostRequestWithDefaults instantiates a new V3UsersPostRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGuid + +`func (o *V3UsersPostRequest) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *V3UsersPostRequest) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *V3UsersPostRequest) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *V3UsersPostRequest) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V3UsersPostRequest) GetMetadata() V3UsersPostRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V3UsersPostRequest) GetMetadataOk() (*V3UsersPostRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V3UsersPostRequest) SetMetadata(v V3UsersPostRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V3UsersPostRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V3UsersPostRequestMetadata.md b/docs/V3UsersPostRequestMetadata.md new file mode 100644 index 0000000..a82e7b9 --- /dev/null +++ b/docs/V3UsersPostRequestMetadata.md @@ -0,0 +1,82 @@ +# V3UsersPostRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]interface{}** | Annotations added to the user | [optional] +**Labels** | Pointer to **map[string]interface{}** | Labels applied to the user | [optional] + +## Methods + +### NewV3UsersPostRequestMetadata + +`func NewV3UsersPostRequestMetadata() *V3UsersPostRequestMetadata` + +NewV3UsersPostRequestMetadata instantiates a new V3UsersPostRequestMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV3UsersPostRequestMetadataWithDefaults + +`func NewV3UsersPostRequestMetadataWithDefaults() *V3UsersPostRequestMetadata` + +NewV3UsersPostRequestMetadataWithDefaults instantiates a new V3UsersPostRequestMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V3UsersPostRequestMetadata) GetAnnotations() map[string]interface{}` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V3UsersPostRequestMetadata) GetAnnotationsOk() (*map[string]interface{}, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V3UsersPostRequestMetadata) SetAnnotations(v map[string]interface{})` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V3UsersPostRequestMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *V3UsersPostRequestMetadata) GetLabels() map[string]interface{}` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V3UsersPostRequestMetadata) GetLabelsOk() (*map[string]interface{}, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V3UsersPostRequestMetadata) SetLabels(v map[string]interface{})` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V3UsersPostRequestMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6b767d9 --- /dev/null +++ b/go.mod @@ -0,0 +1,6 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID/capiclient + +go 1.18 + +require ( +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..c966c8d --- /dev/null +++ b/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/model___get_200_response.go b/model___get_200_response.go new file mode 100644 index 0000000..cc62bd6 --- /dev/null +++ b/model___get_200_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200Response{} + +// Get200Response struct for Get200Response +type Get200Response struct { + Links *Get200ResponseLinks `json:"links,omitempty"` +} + +// NewGet200Response instantiates a new Get200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200Response() *Get200Response { + this := Get200Response{} + return &this +} + +// NewGet200ResponseWithDefaults instantiates a new Get200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseWithDefaults() *Get200Response { + this := Get200Response{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Get200Response) GetLinks() Get200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret Get200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200Response) GetLinksOk() (*Get200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Get200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given Get200ResponseLinks and assigns it to the Links field. +func (o *Get200Response) SetLinks(v Get200ResponseLinks) { + o.Links = &v +} + +func (o Get200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableGet200Response struct { + value *Get200Response + isSet bool +} + +func (v NullableGet200Response) Get() *Get200Response { + return v.value +} + +func (v *NullableGet200Response) Set(val *Get200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200Response(val *Get200Response) *NullableGet200Response { + return &NullableGet200Response{value: val, isSet: true} +} + +func (v NullableGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links.go b/model___get_200_response_links.go new file mode 100644 index 0000000..0bb824c --- /dev/null +++ b/model___get_200_response_links.go @@ -0,0 +1,559 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinks{} + +// Get200ResponseLinks struct for Get200ResponseLinks +type Get200ResponseLinks struct { + AppSsh *Get200ResponseLinksAppSsh `json:"app_ssh,omitempty"` + CloudControllerV2 *Get200ResponseLinksCloudControllerV2 `json:"cloud_controller_v2,omitempty"` + CloudControllerV3 *Get200ResponseLinksCloudControllerV2 `json:"cloud_controller_v3,omitempty"` + Credhub map[string]interface{} `json:"credhub,omitempty"` + LogCache *Get200ResponseLinksLogCache `json:"log_cache,omitempty"` + LogStream *Get200ResponseLinksLogCache `json:"log_stream,omitempty"` + Logging *Get200ResponseLinksLogCache `json:"logging,omitempty"` + Login *Get200ResponseLinksLogCache `json:"login,omitempty"` + NetworkPolicyV0 *Get200ResponseLinksLogCache `json:"network_policy_v0,omitempty"` + NetworkPolicyV1 *Get200ResponseLinksLogCache `json:"network_policy_v1,omitempty"` + Routing *Get200ResponseLinksLogCache `json:"routing,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + Uaa *Get200ResponseLinksLogCache `json:"uaa,omitempty"` +} + +// NewGet200ResponseLinks instantiates a new Get200ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinks() *Get200ResponseLinks { + this := Get200ResponseLinks{} + return &this +} + +// NewGet200ResponseLinksWithDefaults instantiates a new Get200ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksWithDefaults() *Get200ResponseLinks { + this := Get200ResponseLinks{} + return &this +} + +// GetAppSsh returns the AppSsh field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetAppSsh() Get200ResponseLinksAppSsh { + if o == nil || IsNil(o.AppSsh) { + var ret Get200ResponseLinksAppSsh + return ret + } + return *o.AppSsh +} + +// GetAppSshOk returns a tuple with the AppSsh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetAppSshOk() (*Get200ResponseLinksAppSsh, bool) { + if o == nil || IsNil(o.AppSsh) { + return nil, false + } + return o.AppSsh, true +} + +// HasAppSsh returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasAppSsh() bool { + if o != nil && !IsNil(o.AppSsh) { + return true + } + + return false +} + +// SetAppSsh gets a reference to the given Get200ResponseLinksAppSsh and assigns it to the AppSsh field. +func (o *Get200ResponseLinks) SetAppSsh(v Get200ResponseLinksAppSsh) { + o.AppSsh = &v +} + +// GetCloudControllerV2 returns the CloudControllerV2 field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetCloudControllerV2() Get200ResponseLinksCloudControllerV2 { + if o == nil || IsNil(o.CloudControllerV2) { + var ret Get200ResponseLinksCloudControllerV2 + return ret + } + return *o.CloudControllerV2 +} + +// GetCloudControllerV2Ok returns a tuple with the CloudControllerV2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetCloudControllerV2Ok() (*Get200ResponseLinksCloudControllerV2, bool) { + if o == nil || IsNil(o.CloudControllerV2) { + return nil, false + } + return o.CloudControllerV2, true +} + +// HasCloudControllerV2 returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasCloudControllerV2() bool { + if o != nil && !IsNil(o.CloudControllerV2) { + return true + } + + return false +} + +// SetCloudControllerV2 gets a reference to the given Get200ResponseLinksCloudControllerV2 and assigns it to the CloudControllerV2 field. +func (o *Get200ResponseLinks) SetCloudControllerV2(v Get200ResponseLinksCloudControllerV2) { + o.CloudControllerV2 = &v +} + +// GetCloudControllerV3 returns the CloudControllerV3 field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetCloudControllerV3() Get200ResponseLinksCloudControllerV2 { + if o == nil || IsNil(o.CloudControllerV3) { + var ret Get200ResponseLinksCloudControllerV2 + return ret + } + return *o.CloudControllerV3 +} + +// GetCloudControllerV3Ok returns a tuple with the CloudControllerV3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetCloudControllerV3Ok() (*Get200ResponseLinksCloudControllerV2, bool) { + if o == nil || IsNil(o.CloudControllerV3) { + return nil, false + } + return o.CloudControllerV3, true +} + +// HasCloudControllerV3 returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasCloudControllerV3() bool { + if o != nil && !IsNil(o.CloudControllerV3) { + return true + } + + return false +} + +// SetCloudControllerV3 gets a reference to the given Get200ResponseLinksCloudControllerV2 and assigns it to the CloudControllerV3 field. +func (o *Get200ResponseLinks) SetCloudControllerV3(v Get200ResponseLinksCloudControllerV2) { + o.CloudControllerV3 = &v +} + +// GetCredhub returns the Credhub field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Get200ResponseLinks) GetCredhub() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Credhub +} + +// GetCredhubOk returns a tuple with the Credhub field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Get200ResponseLinks) GetCredhubOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Credhub) { + return map[string]interface{}{}, false + } + return o.Credhub, true +} + +// HasCredhub returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasCredhub() bool { + if o != nil && !IsNil(o.Credhub) { + return true + } + + return false +} + +// SetCredhub gets a reference to the given map[string]interface{} and assigns it to the Credhub field. +func (o *Get200ResponseLinks) SetCredhub(v map[string]interface{}) { + o.Credhub = v +} + +// GetLogCache returns the LogCache field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetLogCache() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.LogCache) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.LogCache +} + +// GetLogCacheOk returns a tuple with the LogCache field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetLogCacheOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.LogCache) { + return nil, false + } + return o.LogCache, true +} + +// HasLogCache returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasLogCache() bool { + if o != nil && !IsNil(o.LogCache) { + return true + } + + return false +} + +// SetLogCache gets a reference to the given Get200ResponseLinksLogCache and assigns it to the LogCache field. +func (o *Get200ResponseLinks) SetLogCache(v Get200ResponseLinksLogCache) { + o.LogCache = &v +} + +// GetLogStream returns the LogStream field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetLogStream() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.LogStream) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.LogStream +} + +// GetLogStreamOk returns a tuple with the LogStream field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetLogStreamOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.LogStream) { + return nil, false + } + return o.LogStream, true +} + +// HasLogStream returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasLogStream() bool { + if o != nil && !IsNil(o.LogStream) { + return true + } + + return false +} + +// SetLogStream gets a reference to the given Get200ResponseLinksLogCache and assigns it to the LogStream field. +func (o *Get200ResponseLinks) SetLogStream(v Get200ResponseLinksLogCache) { + o.LogStream = &v +} + +// GetLogging returns the Logging field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetLogging() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Logging) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Logging +} + +// GetLoggingOk returns a tuple with the Logging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetLoggingOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Logging) { + return nil, false + } + return o.Logging, true +} + +// HasLogging returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasLogging() bool { + if o != nil && !IsNil(o.Logging) { + return true + } + + return false +} + +// SetLogging gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Logging field. +func (o *Get200ResponseLinks) SetLogging(v Get200ResponseLinksLogCache) { + o.Logging = &v +} + +// GetLogin returns the Login field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetLogin() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Login) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Login +} + +// GetLoginOk returns a tuple with the Login field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetLoginOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Login) { + return nil, false + } + return o.Login, true +} + +// HasLogin returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasLogin() bool { + if o != nil && !IsNil(o.Login) { + return true + } + + return false +} + +// SetLogin gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Login field. +func (o *Get200ResponseLinks) SetLogin(v Get200ResponseLinksLogCache) { + o.Login = &v +} + +// GetNetworkPolicyV0 returns the NetworkPolicyV0 field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetNetworkPolicyV0() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.NetworkPolicyV0) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.NetworkPolicyV0 +} + +// GetNetworkPolicyV0Ok returns a tuple with the NetworkPolicyV0 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetNetworkPolicyV0Ok() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.NetworkPolicyV0) { + return nil, false + } + return o.NetworkPolicyV0, true +} + +// HasNetworkPolicyV0 returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasNetworkPolicyV0() bool { + if o != nil && !IsNil(o.NetworkPolicyV0) { + return true + } + + return false +} + +// SetNetworkPolicyV0 gets a reference to the given Get200ResponseLinksLogCache and assigns it to the NetworkPolicyV0 field. +func (o *Get200ResponseLinks) SetNetworkPolicyV0(v Get200ResponseLinksLogCache) { + o.NetworkPolicyV0 = &v +} + +// GetNetworkPolicyV1 returns the NetworkPolicyV1 field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetNetworkPolicyV1() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.NetworkPolicyV1) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.NetworkPolicyV1 +} + +// GetNetworkPolicyV1Ok returns a tuple with the NetworkPolicyV1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetNetworkPolicyV1Ok() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.NetworkPolicyV1) { + return nil, false + } + return o.NetworkPolicyV1, true +} + +// HasNetworkPolicyV1 returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasNetworkPolicyV1() bool { + if o != nil && !IsNil(o.NetworkPolicyV1) { + return true + } + + return false +} + +// SetNetworkPolicyV1 gets a reference to the given Get200ResponseLinksLogCache and assigns it to the NetworkPolicyV1 field. +func (o *Get200ResponseLinks) SetNetworkPolicyV1(v Get200ResponseLinksLogCache) { + o.NetworkPolicyV1 = &v +} + +// GetRouting returns the Routing field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetRouting() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Routing) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Routing +} + +// GetRoutingOk returns a tuple with the Routing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetRoutingOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Routing) { + return nil, false + } + return o.Routing, true +} + +// HasRouting returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasRouting() bool { + if o != nil && !IsNil(o.Routing) { + return true + } + + return false +} + +// SetRouting gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Routing field. +func (o *Get200ResponseLinks) SetRouting(v Get200ResponseLinksLogCache) { + o.Routing = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *Get200ResponseLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetUaa returns the Uaa field value if set, zero value otherwise. +func (o *Get200ResponseLinks) GetUaa() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Uaa) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Uaa +} + +// GetUaaOk returns a tuple with the Uaa field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinks) GetUaaOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Uaa) { + return nil, false + } + return o.Uaa, true +} + +// HasUaa returns a boolean if a field has been set. +func (o *Get200ResponseLinks) HasUaa() bool { + if o != nil && !IsNil(o.Uaa) { + return true + } + + return false +} + +// SetUaa gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Uaa field. +func (o *Get200ResponseLinks) SetUaa(v Get200ResponseLinksLogCache) { + o.Uaa = &v +} + +func (o Get200ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AppSsh) { + toSerialize["app_ssh"] = o.AppSsh + } + if !IsNil(o.CloudControllerV2) { + toSerialize["cloud_controller_v2"] = o.CloudControllerV2 + } + if !IsNil(o.CloudControllerV3) { + toSerialize["cloud_controller_v3"] = o.CloudControllerV3 + } + if o.Credhub != nil { + toSerialize["credhub"] = o.Credhub + } + if !IsNil(o.LogCache) { + toSerialize["log_cache"] = o.LogCache + } + if !IsNil(o.LogStream) { + toSerialize["log_stream"] = o.LogStream + } + if !IsNil(o.Logging) { + toSerialize["logging"] = o.Logging + } + if !IsNil(o.Login) { + toSerialize["login"] = o.Login + } + if !IsNil(o.NetworkPolicyV0) { + toSerialize["network_policy_v0"] = o.NetworkPolicyV0 + } + if !IsNil(o.NetworkPolicyV1) { + toSerialize["network_policy_v1"] = o.NetworkPolicyV1 + } + if !IsNil(o.Routing) { + toSerialize["routing"] = o.Routing + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Uaa) { + toSerialize["uaa"] = o.Uaa + } + return toSerialize, nil +} + +type NullableGet200ResponseLinks struct { + value *Get200ResponseLinks + isSet bool +} + +func (v NullableGet200ResponseLinks) Get() *Get200ResponseLinks { + return v.value +} + +func (v *NullableGet200ResponseLinks) Set(val *Get200ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinks(val *Get200ResponseLinks) *NullableGet200ResponseLinks { + return &NullableGet200ResponseLinks{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links_app_ssh.go b/model___get_200_response_links_app_ssh.go new file mode 100644 index 0000000..5b8c386 --- /dev/null +++ b/model___get_200_response_links_app_ssh.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinksAppSsh type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinksAppSsh{} + +// Get200ResponseLinksAppSsh struct for Get200ResponseLinksAppSsh +type Get200ResponseLinksAppSsh struct { + Href *string `json:"href,omitempty"` + Meta *Get200ResponseLinksAppSshMeta `json:"meta,omitempty"` +} + +// NewGet200ResponseLinksAppSsh instantiates a new Get200ResponseLinksAppSsh object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinksAppSsh() *Get200ResponseLinksAppSsh { + this := Get200ResponseLinksAppSsh{} + return &this +} + +// NewGet200ResponseLinksAppSshWithDefaults instantiates a new Get200ResponseLinksAppSsh object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksAppSshWithDefaults() *Get200ResponseLinksAppSsh { + this := Get200ResponseLinksAppSsh{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Get200ResponseLinksAppSsh) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksAppSsh) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Get200ResponseLinksAppSsh) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Get200ResponseLinksAppSsh) SetHref(v string) { + o.Href = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *Get200ResponseLinksAppSsh) GetMeta() Get200ResponseLinksAppSshMeta { + if o == nil || IsNil(o.Meta) { + var ret Get200ResponseLinksAppSshMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksAppSsh) GetMetaOk() (*Get200ResponseLinksAppSshMeta, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *Get200ResponseLinksAppSsh) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given Get200ResponseLinksAppSshMeta and assigns it to the Meta field. +func (o *Get200ResponseLinksAppSsh) SetMeta(v Get200ResponseLinksAppSshMeta) { + o.Meta = &v +} + +func (o Get200ResponseLinksAppSsh) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinksAppSsh) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + return toSerialize, nil +} + +type NullableGet200ResponseLinksAppSsh struct { + value *Get200ResponseLinksAppSsh + isSet bool +} + +func (v NullableGet200ResponseLinksAppSsh) Get() *Get200ResponseLinksAppSsh { + return v.value +} + +func (v *NullableGet200ResponseLinksAppSsh) Set(val *Get200ResponseLinksAppSsh) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinksAppSsh) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinksAppSsh) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinksAppSsh(val *Get200ResponseLinksAppSsh) *NullableGet200ResponseLinksAppSsh { + return &NullableGet200ResponseLinksAppSsh{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinksAppSsh) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinksAppSsh) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links_app_ssh_meta.go b/model___get_200_response_links_app_ssh_meta.go new file mode 100644 index 0000000..74fe955 --- /dev/null +++ b/model___get_200_response_links_app_ssh_meta.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinksAppSshMeta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinksAppSshMeta{} + +// Get200ResponseLinksAppSshMeta struct for Get200ResponseLinksAppSshMeta +type Get200ResponseLinksAppSshMeta struct { + HostKeyFingerprint *string `json:"host_key_fingerprint,omitempty"` + OauthClient *string `json:"oauth_client,omitempty"` +} + +// NewGet200ResponseLinksAppSshMeta instantiates a new Get200ResponseLinksAppSshMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinksAppSshMeta() *Get200ResponseLinksAppSshMeta { + this := Get200ResponseLinksAppSshMeta{} + return &this +} + +// NewGet200ResponseLinksAppSshMetaWithDefaults instantiates a new Get200ResponseLinksAppSshMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksAppSshMetaWithDefaults() *Get200ResponseLinksAppSshMeta { + this := Get200ResponseLinksAppSshMeta{} + return &this +} + +// GetHostKeyFingerprint returns the HostKeyFingerprint field value if set, zero value otherwise. +func (o *Get200ResponseLinksAppSshMeta) GetHostKeyFingerprint() string { + if o == nil || IsNil(o.HostKeyFingerprint) { + var ret string + return ret + } + return *o.HostKeyFingerprint +} + +// GetHostKeyFingerprintOk returns a tuple with the HostKeyFingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksAppSshMeta) GetHostKeyFingerprintOk() (*string, bool) { + if o == nil || IsNil(o.HostKeyFingerprint) { + return nil, false + } + return o.HostKeyFingerprint, true +} + +// HasHostKeyFingerprint returns a boolean if a field has been set. +func (o *Get200ResponseLinksAppSshMeta) HasHostKeyFingerprint() bool { + if o != nil && !IsNil(o.HostKeyFingerprint) { + return true + } + + return false +} + +// SetHostKeyFingerprint gets a reference to the given string and assigns it to the HostKeyFingerprint field. +func (o *Get200ResponseLinksAppSshMeta) SetHostKeyFingerprint(v string) { + o.HostKeyFingerprint = &v +} + +// GetOauthClient returns the OauthClient field value if set, zero value otherwise. +func (o *Get200ResponseLinksAppSshMeta) GetOauthClient() string { + if o == nil || IsNil(o.OauthClient) { + var ret string + return ret + } + return *o.OauthClient +} + +// GetOauthClientOk returns a tuple with the OauthClient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksAppSshMeta) GetOauthClientOk() (*string, bool) { + if o == nil || IsNil(o.OauthClient) { + return nil, false + } + return o.OauthClient, true +} + +// HasOauthClient returns a boolean if a field has been set. +func (o *Get200ResponseLinksAppSshMeta) HasOauthClient() bool { + if o != nil && !IsNil(o.OauthClient) { + return true + } + + return false +} + +// SetOauthClient gets a reference to the given string and assigns it to the OauthClient field. +func (o *Get200ResponseLinksAppSshMeta) SetOauthClient(v string) { + o.OauthClient = &v +} + +func (o Get200ResponseLinksAppSshMeta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinksAppSshMeta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.HostKeyFingerprint) { + toSerialize["host_key_fingerprint"] = o.HostKeyFingerprint + } + if !IsNil(o.OauthClient) { + toSerialize["oauth_client"] = o.OauthClient + } + return toSerialize, nil +} + +type NullableGet200ResponseLinksAppSshMeta struct { + value *Get200ResponseLinksAppSshMeta + isSet bool +} + +func (v NullableGet200ResponseLinksAppSshMeta) Get() *Get200ResponseLinksAppSshMeta { + return v.value +} + +func (v *NullableGet200ResponseLinksAppSshMeta) Set(val *Get200ResponseLinksAppSshMeta) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinksAppSshMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinksAppSshMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinksAppSshMeta(val *Get200ResponseLinksAppSshMeta) *NullableGet200ResponseLinksAppSshMeta { + return &NullableGet200ResponseLinksAppSshMeta{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinksAppSshMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinksAppSshMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links_cloud_controller_v2.go b/model___get_200_response_links_cloud_controller_v2.go new file mode 100644 index 0000000..44fb392 --- /dev/null +++ b/model___get_200_response_links_cloud_controller_v2.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinksCloudControllerV2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinksCloudControllerV2{} + +// Get200ResponseLinksCloudControllerV2 struct for Get200ResponseLinksCloudControllerV2 +type Get200ResponseLinksCloudControllerV2 struct { + Href *string `json:"href,omitempty"` + Meta *Get200ResponseLinksCloudControllerV2Meta `json:"meta,omitempty"` +} + +// NewGet200ResponseLinksCloudControllerV2 instantiates a new Get200ResponseLinksCloudControllerV2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinksCloudControllerV2() *Get200ResponseLinksCloudControllerV2 { + this := Get200ResponseLinksCloudControllerV2{} + return &this +} + +// NewGet200ResponseLinksCloudControllerV2WithDefaults instantiates a new Get200ResponseLinksCloudControllerV2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksCloudControllerV2WithDefaults() *Get200ResponseLinksCloudControllerV2 { + this := Get200ResponseLinksCloudControllerV2{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Get200ResponseLinksCloudControllerV2) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksCloudControllerV2) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Get200ResponseLinksCloudControllerV2) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Get200ResponseLinksCloudControllerV2) SetHref(v string) { + o.Href = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *Get200ResponseLinksCloudControllerV2) GetMeta() Get200ResponseLinksCloudControllerV2Meta { + if o == nil || IsNil(o.Meta) { + var ret Get200ResponseLinksCloudControllerV2Meta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksCloudControllerV2) GetMetaOk() (*Get200ResponseLinksCloudControllerV2Meta, bool) { + if o == nil || IsNil(o.Meta) { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *Get200ResponseLinksCloudControllerV2) HasMeta() bool { + if o != nil && !IsNil(o.Meta) { + return true + } + + return false +} + +// SetMeta gets a reference to the given Get200ResponseLinksCloudControllerV2Meta and assigns it to the Meta field. +func (o *Get200ResponseLinksCloudControllerV2) SetMeta(v Get200ResponseLinksCloudControllerV2Meta) { + o.Meta = &v +} + +func (o Get200ResponseLinksCloudControllerV2) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinksCloudControllerV2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Meta) { + toSerialize["meta"] = o.Meta + } + return toSerialize, nil +} + +type NullableGet200ResponseLinksCloudControllerV2 struct { + value *Get200ResponseLinksCloudControllerV2 + isSet bool +} + +func (v NullableGet200ResponseLinksCloudControllerV2) Get() *Get200ResponseLinksCloudControllerV2 { + return v.value +} + +func (v *NullableGet200ResponseLinksCloudControllerV2) Set(val *Get200ResponseLinksCloudControllerV2) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinksCloudControllerV2) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinksCloudControllerV2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinksCloudControllerV2(val *Get200ResponseLinksCloudControllerV2) *NullableGet200ResponseLinksCloudControllerV2 { + return &NullableGet200ResponseLinksCloudControllerV2{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinksCloudControllerV2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinksCloudControllerV2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links_cloud_controller_v2_meta.go b/model___get_200_response_links_cloud_controller_v2_meta.go new file mode 100644 index 0000000..1563982 --- /dev/null +++ b/model___get_200_response_links_cloud_controller_v2_meta.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinksCloudControllerV2Meta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinksCloudControllerV2Meta{} + +// Get200ResponseLinksCloudControllerV2Meta struct for Get200ResponseLinksCloudControllerV2Meta +type Get200ResponseLinksCloudControllerV2Meta struct { + Version *string `json:"version,omitempty"` +} + +// NewGet200ResponseLinksCloudControllerV2Meta instantiates a new Get200ResponseLinksCloudControllerV2Meta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinksCloudControllerV2Meta() *Get200ResponseLinksCloudControllerV2Meta { + this := Get200ResponseLinksCloudControllerV2Meta{} + return &this +} + +// NewGet200ResponseLinksCloudControllerV2MetaWithDefaults instantiates a new Get200ResponseLinksCloudControllerV2Meta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksCloudControllerV2MetaWithDefaults() *Get200ResponseLinksCloudControllerV2Meta { + this := Get200ResponseLinksCloudControllerV2Meta{} + return &this +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *Get200ResponseLinksCloudControllerV2Meta) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksCloudControllerV2Meta) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *Get200ResponseLinksCloudControllerV2Meta) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *Get200ResponseLinksCloudControllerV2Meta) SetVersion(v string) { + o.Version = &v +} + +func (o Get200ResponseLinksCloudControllerV2Meta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinksCloudControllerV2Meta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableGet200ResponseLinksCloudControllerV2Meta struct { + value *Get200ResponseLinksCloudControllerV2Meta + isSet bool +} + +func (v NullableGet200ResponseLinksCloudControllerV2Meta) Get() *Get200ResponseLinksCloudControllerV2Meta { + return v.value +} + +func (v *NullableGet200ResponseLinksCloudControllerV2Meta) Set(val *Get200ResponseLinksCloudControllerV2Meta) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinksCloudControllerV2Meta) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinksCloudControllerV2Meta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinksCloudControllerV2Meta(val *Get200ResponseLinksCloudControllerV2Meta) *NullableGet200ResponseLinksCloudControllerV2Meta { + return &NullableGet200ResponseLinksCloudControllerV2Meta{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinksCloudControllerV2Meta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinksCloudControllerV2Meta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model___get_200_response_links_log_cache.go b/model___get_200_response_links_log_cache.go new file mode 100644 index 0000000..6fa3627 --- /dev/null +++ b/model___get_200_response_links_log_cache.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Get200ResponseLinksLogCache type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Get200ResponseLinksLogCache{} + +// Get200ResponseLinksLogCache struct for Get200ResponseLinksLogCache +type Get200ResponseLinksLogCache struct { + Href *string `json:"href,omitempty"` +} + +// NewGet200ResponseLinksLogCache instantiates a new Get200ResponseLinksLogCache object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGet200ResponseLinksLogCache() *Get200ResponseLinksLogCache { + this := Get200ResponseLinksLogCache{} + return &this +} + +// NewGet200ResponseLinksLogCacheWithDefaults instantiates a new Get200ResponseLinksLogCache object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGet200ResponseLinksLogCacheWithDefaults() *Get200ResponseLinksLogCache { + this := Get200ResponseLinksLogCache{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Get200ResponseLinksLogCache) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Get200ResponseLinksLogCache) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Get200ResponseLinksLogCache) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Get200ResponseLinksLogCache) SetHref(v string) { + o.Href = &v +} + +func (o Get200ResponseLinksLogCache) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Get200ResponseLinksLogCache) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableGet200ResponseLinksLogCache struct { + value *Get200ResponseLinksLogCache + isSet bool +} + +func (v NullableGet200ResponseLinksLogCache) Get() *Get200ResponseLinksLogCache { + return v.value +} + +func (v *NullableGet200ResponseLinksLogCache) Set(val *Get200ResponseLinksLogCache) { + v.value = val + v.isSet = true +} + +func (v NullableGet200ResponseLinksLogCache) IsSet() bool { + return v.isSet +} + +func (v *NullableGet200ResponseLinksLogCache) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGet200ResponseLinksLogCache(val *Get200ResponseLinksLogCache) *NullableGet200ResponseLinksLogCache { + return &NullableGet200ResponseLinksLogCache{value: val, isSet: true} +} + +func (v NullableGet200ResponseLinksLogCache) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGet200ResponseLinksLogCache) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__actions_restart_post_200_response.go b/model__v3_apps__guid__actions_restart_post_200_response.go new file mode 100644 index 0000000..8a233fa --- /dev/null +++ b/model__v3_apps__guid__actions_restart_post_200_response.go @@ -0,0 +1,379 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the V3AppsGuidActionsRestartPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidActionsRestartPost200Response{} + +// V3AppsGuidActionsRestartPost200Response struct for V3AppsGuidActionsRestartPost200Response +type V3AppsGuidActionsRestartPost200Response struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Lifecycle *V3AppsGuidActionsRestartPost200ResponseLifecycle `json:"lifecycle,omitempty"` + Links *map[string]Get200ResponseLinksLogCache `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *V3AppsGuidActionsRestartPost200ResponseRelationships `json:"relationships,omitempty"` + State *string `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewV3AppsGuidActionsRestartPost200Response instantiates a new V3AppsGuidActionsRestartPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidActionsRestartPost200Response() *V3AppsGuidActionsRestartPost200Response { + this := V3AppsGuidActionsRestartPost200Response{} + return &this +} + +// NewV3AppsGuidActionsRestartPost200ResponseWithDefaults instantiates a new V3AppsGuidActionsRestartPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidActionsRestartPost200ResponseWithDefaults() *V3AppsGuidActionsRestartPost200Response { + this := V3AppsGuidActionsRestartPost200Response{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *V3AppsGuidActionsRestartPost200Response) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3AppsGuidActionsRestartPost200Response) SetGuid(v string) { + o.Guid = &v +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetLifecycle() V3AppsGuidActionsRestartPost200ResponseLifecycle { + if o == nil || IsNil(o.Lifecycle) { + var ret V3AppsGuidActionsRestartPost200ResponseLifecycle + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetLifecycleOk() (*V3AppsGuidActionsRestartPost200ResponseLifecycle, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given V3AppsGuidActionsRestartPost200ResponseLifecycle and assigns it to the Lifecycle field. +func (o *V3AppsGuidActionsRestartPost200Response) SetLifecycle(v V3AppsGuidActionsRestartPost200ResponseLifecycle) { + o.Lifecycle = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetLinks() map[string]Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Links) { + var ret map[string]Get200ResponseLinksLogCache + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given map[string]Get200ResponseLinksLogCache and assigns it to the Links field. +func (o *V3AppsGuidActionsRestartPost200Response) SetLinks(v map[string]Get200ResponseLinksLogCache) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidActionsRestartPost200Response) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetRelationships() V3AppsGuidActionsRestartPost200ResponseRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsGuidActionsRestartPost200ResponseRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetRelationshipsOk() (*V3AppsGuidActionsRestartPost200ResponseRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsGuidActionsRestartPost200ResponseRelationships and assigns it to the Relationships field. +func (o *V3AppsGuidActionsRestartPost200Response) SetRelationships(v V3AppsGuidActionsRestartPost200ResponseRelationships) { + o.Relationships = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *V3AppsGuidActionsRestartPost200Response) SetState(v string) { + o.State = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200Response) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200Response) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200Response) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *V3AppsGuidActionsRestartPost200Response) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o V3AppsGuidActionsRestartPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidActionsRestartPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableV3AppsGuidActionsRestartPost200Response struct { + value *V3AppsGuidActionsRestartPost200Response + isSet bool +} + +func (v NullableV3AppsGuidActionsRestartPost200Response) Get() *V3AppsGuidActionsRestartPost200Response { + return v.value +} + +func (v *NullableV3AppsGuidActionsRestartPost200Response) Set(val *V3AppsGuidActionsRestartPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidActionsRestartPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidActionsRestartPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidActionsRestartPost200Response(val *V3AppsGuidActionsRestartPost200Response) *NullableV3AppsGuidActionsRestartPost200Response { + return &NullableV3AppsGuidActionsRestartPost200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidActionsRestartPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidActionsRestartPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__actions_restart_post_200_response_lifecycle.go b/model__v3_apps__guid__actions_restart_post_200_response_lifecycle.go new file mode 100644 index 0000000..bb0db5d --- /dev/null +++ b/model__v3_apps__guid__actions_restart_post_200_response_lifecycle.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidActionsRestartPost200ResponseLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidActionsRestartPost200ResponseLifecycle{} + +// V3AppsGuidActionsRestartPost200ResponseLifecycle struct for V3AppsGuidActionsRestartPost200ResponseLifecycle +type V3AppsGuidActionsRestartPost200ResponseLifecycle struct { + Data *V3AppsGuidPatchRequestLifecycleData `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewV3AppsGuidActionsRestartPost200ResponseLifecycle instantiates a new V3AppsGuidActionsRestartPost200ResponseLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidActionsRestartPost200ResponseLifecycle() *V3AppsGuidActionsRestartPost200ResponseLifecycle { + this := V3AppsGuidActionsRestartPost200ResponseLifecycle{} + return &this +} + +// NewV3AppsGuidActionsRestartPost200ResponseLifecycleWithDefaults instantiates a new V3AppsGuidActionsRestartPost200ResponseLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidActionsRestartPost200ResponseLifecycleWithDefaults() *V3AppsGuidActionsRestartPost200ResponseLifecycle { + this := V3AppsGuidActionsRestartPost200ResponseLifecycle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData { + if o == nil || IsNil(o.Data) { + var ret V3AppsGuidPatchRequestLifecycleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsGuidPatchRequestLifecycleData and assigns it to the Data field. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData) { + o.Data = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3AppsGuidActionsRestartPost200ResponseLifecycle) SetType(v string) { + o.Type = &v +} + +func (o V3AppsGuidActionsRestartPost200ResponseLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidActionsRestartPost200ResponseLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3AppsGuidActionsRestartPost200ResponseLifecycle struct { + value *V3AppsGuidActionsRestartPost200ResponseLifecycle + isSet bool +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) Get() *V3AppsGuidActionsRestartPost200ResponseLifecycle { + return v.value +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) Set(val *V3AppsGuidActionsRestartPost200ResponseLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidActionsRestartPost200ResponseLifecycle(val *V3AppsGuidActionsRestartPost200ResponseLifecycle) *NullableV3AppsGuidActionsRestartPost200ResponseLifecycle { + return &NullableV3AppsGuidActionsRestartPost200ResponseLifecycle{value: val, isSet: true} +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__actions_restart_post_200_response_relationships.go b/model__v3_apps__guid__actions_restart_post_200_response_relationships.go new file mode 100644 index 0000000..a5eefeb --- /dev/null +++ b/model__v3_apps__guid__actions_restart_post_200_response_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidActionsRestartPost200ResponseRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidActionsRestartPost200ResponseRelationships{} + +// V3AppsGuidActionsRestartPost200ResponseRelationships struct for V3AppsGuidActionsRestartPost200ResponseRelationships +type V3AppsGuidActionsRestartPost200ResponseRelationships struct { + CurrentDroplet *V3AppsPostRequestRelationshipsSpace `json:"current_droplet,omitempty"` + Space *V3AppsPostRequestRelationshipsSpace `json:"space,omitempty"` +} + +// NewV3AppsGuidActionsRestartPost200ResponseRelationships instantiates a new V3AppsGuidActionsRestartPost200ResponseRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidActionsRestartPost200ResponseRelationships() *V3AppsGuidActionsRestartPost200ResponseRelationships { + this := V3AppsGuidActionsRestartPost200ResponseRelationships{} + return &this +} + +// NewV3AppsGuidActionsRestartPost200ResponseRelationshipsWithDefaults instantiates a new V3AppsGuidActionsRestartPost200ResponseRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidActionsRestartPost200ResponseRelationshipsWithDefaults() *V3AppsGuidActionsRestartPost200ResponseRelationships { + this := V3AppsGuidActionsRestartPost200ResponseRelationships{} + return &this +} + +// GetCurrentDroplet returns the CurrentDroplet field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetCurrentDroplet() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.CurrentDroplet) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.CurrentDroplet +} + +// GetCurrentDropletOk returns a tuple with the CurrentDroplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetCurrentDropletOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.CurrentDroplet) { + return nil, false + } + return o.CurrentDroplet, true +} + +// HasCurrentDroplet returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) HasCurrentDroplet() bool { + if o != nil && !IsNil(o.CurrentDroplet) { + return true + } + + return false +} + +// SetCurrentDroplet gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the CurrentDroplet field. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) SetCurrentDroplet(v V3AppsPostRequestRelationshipsSpace) { + o.CurrentDroplet = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Space field. +func (o *V3AppsGuidActionsRestartPost200ResponseRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace) { + o.Space = &v +} + +func (o V3AppsGuidActionsRestartPost200ResponseRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidActionsRestartPost200ResponseRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CurrentDroplet) { + toSerialize["current_droplet"] = o.CurrentDroplet + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableV3AppsGuidActionsRestartPost200ResponseRelationships struct { + value *V3AppsGuidActionsRestartPost200ResponseRelationships + isSet bool +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseRelationships) Get() *V3AppsGuidActionsRestartPost200ResponseRelationships { + return v.value +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseRelationships) Set(val *V3AppsGuidActionsRestartPost200ResponseRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidActionsRestartPost200ResponseRelationships(val *V3AppsGuidActionsRestartPost200ResponseRelationships) *NullableV3AppsGuidActionsRestartPost200ResponseRelationships { + return &NullableV3AppsGuidActionsRestartPost200ResponseRelationships{value: val, isSet: true} +} + +func (v NullableV3AppsGuidActionsRestartPost200ResponseRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidActionsRestartPost200ResponseRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response.go b/model__v3_apps__guid__droplets_current_get_200_response.go new file mode 100644 index 0000000..43630d6 --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response.go @@ -0,0 +1,651 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the V3AppsGuidDropletsCurrentGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200Response{} + +// V3AppsGuidDropletsCurrentGet200Response struct for V3AppsGuidDropletsCurrentGet200Response +type V3AppsGuidDropletsCurrentGet200Response struct { + Buildpacks []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner `json:"buildpacks,omitempty"` + Checksum *V3AppsGuidDropletsCurrentGet200ResponseChecksum `json:"checksum,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Error NullableString `json:"error,omitempty"` + ExecutionMetadata *string `json:"execution_metadata,omitempty"` + Guid *string `json:"guid,omitempty"` + Image NullableString `json:"image,omitempty"` + Lifecycle *V3AppsGuidDropletsCurrentGet200ResponseLifecycle `json:"lifecycle,omitempty"` + Links *map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + ProcessTypes *map[string]string `json:"process_types,omitempty"` + Relationships *V3AppsGuidDropletsCurrentGet200ResponseRelationships `json:"relationships,omitempty"` + Stack *string `json:"stack,omitempty"` + State *string `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200Response instantiates a new V3AppsGuidDropletsCurrentGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200Response() *V3AppsGuidDropletsCurrentGet200Response { + this := V3AppsGuidDropletsCurrentGet200Response{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseWithDefaults() *V3AppsGuidDropletsCurrentGet200Response { + this := V3AppsGuidDropletsCurrentGet200Response{} + return &this +} + +// GetBuildpacks returns the Buildpacks field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetBuildpacks() []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner { + if o == nil || IsNil(o.Buildpacks) { + var ret []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner + return ret + } + return o.Buildpacks +} + +// GetBuildpacksOk returns a tuple with the Buildpacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetBuildpacksOk() ([]V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner, bool) { + if o == nil || IsNil(o.Buildpacks) { + return nil, false + } + return o.Buildpacks, true +} + +// HasBuildpacks returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasBuildpacks() bool { + if o != nil && !IsNil(o.Buildpacks) { + return true + } + + return false +} + +// SetBuildpacks gets a reference to the given []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner and assigns it to the Buildpacks field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetBuildpacks(v []V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) { + o.Buildpacks = v +} + +// GetChecksum returns the Checksum field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetChecksum() V3AppsGuidDropletsCurrentGet200ResponseChecksum { + if o == nil || IsNil(o.Checksum) { + var ret V3AppsGuidDropletsCurrentGet200ResponseChecksum + return ret + } + return *o.Checksum +} + +// GetChecksumOk returns a tuple with the Checksum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetChecksumOk() (*V3AppsGuidDropletsCurrentGet200ResponseChecksum, bool) { + if o == nil || IsNil(o.Checksum) { + return nil, false + } + return o.Checksum, true +} + +// HasChecksum returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasChecksum() bool { + if o != nil && !IsNil(o.Checksum) { + return true + } + + return false +} + +// SetChecksum gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseChecksum and assigns it to the Checksum field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetChecksum(v V3AppsGuidDropletsCurrentGet200ResponseChecksum) { + o.Checksum = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3AppsGuidDropletsCurrentGet200Response) GetError() string { + if o == nil || IsNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3AppsGuidDropletsCurrentGet200Response) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetError(v string) { + o.Error.Set(&v) +} +// SetErrorNil sets the value for Error to be an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200Response) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200Response) UnsetError() { + o.Error.Unset() +} + +// GetExecutionMetadata returns the ExecutionMetadata field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetExecutionMetadata() string { + if o == nil || IsNil(o.ExecutionMetadata) { + var ret string + return ret + } + return *o.ExecutionMetadata +} + +// GetExecutionMetadataOk returns a tuple with the ExecutionMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetExecutionMetadataOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionMetadata) { + return nil, false + } + return o.ExecutionMetadata, true +} + +// HasExecutionMetadata returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasExecutionMetadata() bool { + if o != nil && !IsNil(o.ExecutionMetadata) { + return true + } + + return false +} + +// SetExecutionMetadata gets a reference to the given string and assigns it to the ExecutionMetadata field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetExecutionMetadata(v string) { + o.ExecutionMetadata = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetGuid(v string) { + o.Guid = &v +} + +// GetImage returns the Image field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3AppsGuidDropletsCurrentGet200Response) GetImage() string { + if o == nil || IsNil(o.Image.Get()) { + var ret string + return ret + } + return *o.Image.Get() +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3AppsGuidDropletsCurrentGet200Response) GetImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Image.Get(), o.Image.IsSet() +} + +// HasImage returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasImage() bool { + if o != nil && o.Image.IsSet() { + return true + } + + return false +} + +// SetImage gets a reference to the given NullableString and assigns it to the Image field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetImage(v string) { + o.Image.Set(&v) +} +// SetImageNil sets the value for Image to be an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200Response) SetImageNil() { + o.Image.Set(nil) +} + +// UnsetImage ensures that no value is present for Image, not even an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200Response) UnsetImage() { + o.Image.Unset() +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetLifecycle() V3AppsGuidDropletsCurrentGet200ResponseLifecycle { + if o == nil || IsNil(o.Lifecycle) { + var ret V3AppsGuidDropletsCurrentGet200ResponseLifecycle + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetLifecycleOk() (*V3AppsGuidDropletsCurrentGet200ResponseLifecycle, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseLifecycle and assigns it to the Lifecycle field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetLifecycle(v V3AppsGuidDropletsCurrentGet200ResponseLifecycle) { + o.Lifecycle = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetLinks() map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue { + if o == nil || IsNil(o.Links) { + var ret map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetLinksOk() (*map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue and assigns it to the Links field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetLinks(v map[string]V3AppsGuidDropletsCurrentGet200ResponseLinksValue) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetProcessTypes returns the ProcessTypes field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetProcessTypes() map[string]string { + if o == nil || IsNil(o.ProcessTypes) { + var ret map[string]string + return ret + } + return *o.ProcessTypes +} + +// GetProcessTypesOk returns a tuple with the ProcessTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetProcessTypesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ProcessTypes) { + return nil, false + } + return o.ProcessTypes, true +} + +// HasProcessTypes returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasProcessTypes() bool { + if o != nil && !IsNil(o.ProcessTypes) { + return true + } + + return false +} + +// SetProcessTypes gets a reference to the given map[string]string and assigns it to the ProcessTypes field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetProcessTypes(v map[string]string) { + o.ProcessTypes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsGuidDropletsCurrentGet200ResponseRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseRelationships and assigns it to the Relationships field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships) { + o.Relationships = &v +} + +// GetStack returns the Stack field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetStack() string { + if o == nil || IsNil(o.Stack) { + var ret string + return ret + } + return *o.Stack +} + +// GetStackOk returns a tuple with the Stack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetStackOk() (*string, bool) { + if o == nil || IsNil(o.Stack) { + return nil, false + } + return o.Stack, true +} + +// HasStack returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasStack() bool { + if o != nil && !IsNil(o.Stack) { + return true + } + + return false +} + +// SetStack gets a reference to the given string and assigns it to the Stack field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetStack(v string) { + o.Stack = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetState(v string) { + o.State = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200Response) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *V3AppsGuidDropletsCurrentGet200Response) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o V3AppsGuidDropletsCurrentGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Buildpacks) { + toSerialize["buildpacks"] = o.Buildpacks + } + if !IsNil(o.Checksum) { + toSerialize["checksum"] = o.Checksum + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + if !IsNil(o.ExecutionMetadata) { + toSerialize["execution_metadata"] = o.ExecutionMetadata + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if o.Image.IsSet() { + toSerialize["image"] = o.Image.Get() + } + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.ProcessTypes) { + toSerialize["process_types"] = o.ProcessTypes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Stack) { + toSerialize["stack"] = o.Stack + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200Response struct { + value *V3AppsGuidDropletsCurrentGet200Response + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200Response) Get() *V3AppsGuidDropletsCurrentGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200Response) Set(val *V3AppsGuidDropletsCurrentGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200Response(val *V3AppsGuidDropletsCurrentGet200Response) *NullableV3AppsGuidDropletsCurrentGet200Response { + return &NullableV3AppsGuidDropletsCurrentGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_buildpacks_inner.go b/model__v3_apps__guid__droplets_current_get_200_response_buildpacks_inner.go new file mode 100644 index 0000000..f3efc89 --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_buildpacks_inner.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner{} + +// V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner struct for V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner +type V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner struct { + BuildpackName *string `json:"buildpack_name,omitempty"` + DetectOutput *string `json:"detect_output,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner instantiates a new V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner() *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner { + this := V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInnerWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInnerWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner { + this := V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner{} + return &this +} + +// GetBuildpackName returns the BuildpackName field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetBuildpackName() string { + if o == nil || IsNil(o.BuildpackName) { + var ret string + return ret + } + return *o.BuildpackName +} + +// GetBuildpackNameOk returns a tuple with the BuildpackName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetBuildpackNameOk() (*string, bool) { + if o == nil || IsNil(o.BuildpackName) { + return nil, false + } + return o.BuildpackName, true +} + +// HasBuildpackName returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasBuildpackName() bool { + if o != nil && !IsNil(o.BuildpackName) { + return true + } + + return false +} + +// SetBuildpackName gets a reference to the given string and assigns it to the BuildpackName field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetBuildpackName(v string) { + o.BuildpackName = &v +} + +// GetDetectOutput returns the DetectOutput field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetDetectOutput() string { + if o == nil || IsNil(o.DetectOutput) { + var ret string + return ret + } + return *o.DetectOutput +} + +// GetDetectOutputOk returns a tuple with the DetectOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetDetectOutputOk() (*string, bool) { + if o == nil || IsNil(o.DetectOutput) { + return nil, false + } + return o.DetectOutput, true +} + +// HasDetectOutput returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasDetectOutput() bool { + if o != nil && !IsNil(o.DetectOutput) { + return true + } + + return false +} + +// SetDetectOutput gets a reference to the given string and assigns it to the DetectOutput field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetDetectOutput(v string) { + o.DetectOutput = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) SetVersion(v string) { + o.Version = &v +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildpackName) { + toSerialize["buildpack_name"] = o.BuildpackName + } + if !IsNil(o.DetectOutput) { + toSerialize["detect_output"] = o.DetectOutput + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner struct { + value *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) Get() *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) Set(val *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner(val *V3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) *NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseBuildpacksInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_checksum.go b/model__v3_apps__guid__droplets_current_get_200_response_checksum.go new file mode 100644 index 0000000..651fcb6 --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_checksum.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseChecksum type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseChecksum{} + +// V3AppsGuidDropletsCurrentGet200ResponseChecksum struct for V3AppsGuidDropletsCurrentGet200ResponseChecksum +type V3AppsGuidDropletsCurrentGet200ResponseChecksum struct { + Type *string `json:"type,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseChecksum instantiates a new V3AppsGuidDropletsCurrentGet200ResponseChecksum object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseChecksum() *V3AppsGuidDropletsCurrentGet200ResponseChecksum { + this := V3AppsGuidDropletsCurrentGet200ResponseChecksum{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseChecksumWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseChecksum object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseChecksumWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseChecksum { + this := V3AppsGuidDropletsCurrentGet200ResponseChecksum{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) SetType(v string) { + o.Type = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseChecksum) SetValue(v string) { + o.Value = &v +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseChecksum) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseChecksum) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum struct { + value *V3AppsGuidDropletsCurrentGet200ResponseChecksum + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) Get() *V3AppsGuidDropletsCurrentGet200ResponseChecksum { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) Set(val *V3AppsGuidDropletsCurrentGet200ResponseChecksum) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseChecksum(val *V3AppsGuidDropletsCurrentGet200ResponseChecksum) *NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseChecksum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_lifecycle.go b/model__v3_apps__guid__droplets_current_get_200_response_lifecycle.go new file mode 100644 index 0000000..312983f --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_lifecycle.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseLifecycle{} + +// V3AppsGuidDropletsCurrentGet200ResponseLifecycle struct for V3AppsGuidDropletsCurrentGet200ResponseLifecycle +type V3AppsGuidDropletsCurrentGet200ResponseLifecycle struct { + Data map[string]interface{} `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseLifecycle instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseLifecycle() *V3AppsGuidDropletsCurrentGet200ResponseLifecycle { + this := V3AppsGuidDropletsCurrentGet200ResponseLifecycle{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseLifecycleWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseLifecycleWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseLifecycle { + this := V3AppsGuidDropletsCurrentGet200ResponseLifecycle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetData() map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) SetType(v string) { + o.Type = &v +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle struct { + value *V3AppsGuidDropletsCurrentGet200ResponseLifecycle + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) Get() *V3AppsGuidDropletsCurrentGet200ResponseLifecycle { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) Set(val *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle(val *V3AppsGuidDropletsCurrentGet200ResponseLifecycle) *NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_links_value.go b/model__v3_apps__guid__droplets_current_get_200_response_links_value.go new file mode 100644 index 0000000..a02152e --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_links_value.go @@ -0,0 +1,172 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseLinksValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseLinksValue{} + +// V3AppsGuidDropletsCurrentGet200ResponseLinksValue struct for V3AppsGuidDropletsCurrentGet200ResponseLinksValue +type V3AppsGuidDropletsCurrentGet200ResponseLinksValue struct { + Href *string `json:"href,omitempty"` + Method NullableString `json:"method,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseLinksValue instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLinksValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseLinksValue() *V3AppsGuidDropletsCurrentGet200ResponseLinksValue { + this := V3AppsGuidDropletsCurrentGet200ResponseLinksValue{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseLinksValueWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseLinksValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseLinksValueWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseLinksValue { + this := V3AppsGuidDropletsCurrentGet200ResponseLinksValue{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetHref(v string) { + o.Href = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetMethod() string { + if o == nil || IsNil(o.Method.Get()) { + var ret string + return ret + } + return *o.Method.Get() +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) GetMethodOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Method.Get(), o.Method.IsSet() +} + +// HasMethod returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) HasMethod() bool { + if o != nil && o.Method.IsSet() { + return true + } + + return false +} + +// SetMethod gets a reference to the given NullableString and assigns it to the Method field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetMethod(v string) { + o.Method.Set(&v) +} +// SetMethodNil sets the value for Method to be an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) SetMethodNil() { + o.Method.Set(nil) +} + +// UnsetMethod ensures that no value is present for Method, not even an explicit nil +func (o *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) UnsetMethod() { + o.Method.Unset() +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseLinksValue) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseLinksValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if o.Method.IsSet() { + toSerialize["method"] = o.Method.Get() + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue struct { + value *V3AppsGuidDropletsCurrentGet200ResponseLinksValue + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) Get() *V3AppsGuidDropletsCurrentGet200ResponseLinksValue { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) Set(val *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue(val *V3AppsGuidDropletsCurrentGet200ResponseLinksValue) *NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseLinksValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_metadata.go b/model__v3_apps__guid__droplets_current_get_200_response_metadata.go new file mode 100644 index 0000000..f1ea63e --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_metadata.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseMetadata{} + +// V3AppsGuidDropletsCurrentGet200ResponseMetadata struct for V3AppsGuidDropletsCurrentGet200ResponseMetadata +type V3AppsGuidDropletsCurrentGet200ResponseMetadata struct { + Annotations map[string]interface{} `json:"annotations,omitempty"` + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseMetadata instantiates a new V3AppsGuidDropletsCurrentGet200ResponseMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseMetadata() *V3AppsGuidDropletsCurrentGet200ResponseMetadata { + this := V3AppsGuidDropletsCurrentGet200ResponseMetadata{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseMetadataWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseMetadataWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseMetadata { + this := V3AppsGuidDropletsCurrentGet200ResponseMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseMetadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata struct { + value *V3AppsGuidDropletsCurrentGet200ResponseMetadata + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) Get() *V3AppsGuidDropletsCurrentGet200ResponseMetadata { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) Set(val *V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseMetadata(val *V3AppsGuidDropletsCurrentGet200ResponseMetadata) *NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_current_get_200_response_relationships.go b/model__v3_apps__guid__droplets_current_get_200_response_relationships.go new file mode 100644 index 0000000..00f23b4 --- /dev/null +++ b/model__v3_apps__guid__droplets_current_get_200_response_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsCurrentGet200ResponseRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsCurrentGet200ResponseRelationships{} + +// V3AppsGuidDropletsCurrentGet200ResponseRelationships struct for V3AppsGuidDropletsCurrentGet200ResponseRelationships +type V3AppsGuidDropletsCurrentGet200ResponseRelationships struct { + App *V3AppsPostRequestRelationshipsSpace `json:"app,omitempty"` +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseRelationships instantiates a new V3AppsGuidDropletsCurrentGet200ResponseRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsCurrentGet200ResponseRelationships() *V3AppsGuidDropletsCurrentGet200ResponseRelationships { + this := V3AppsGuidDropletsCurrentGet200ResponseRelationships{} + return &this +} + +// NewV3AppsGuidDropletsCurrentGet200ResponseRelationshipsWithDefaults instantiates a new V3AppsGuidDropletsCurrentGet200ResponseRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsCurrentGet200ResponseRelationshipsWithDefaults() *V3AppsGuidDropletsCurrentGet200ResponseRelationships { + this := V3AppsGuidDropletsCurrentGet200ResponseRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) GetApp() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.App) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the App field. +func (o *V3AppsGuidDropletsCurrentGet200ResponseRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace) { + o.App = &v +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsCurrentGet200ResponseRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships struct { + value *V3AppsGuidDropletsCurrentGet200ResponseRelationships + isSet bool +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) Get() *V3AppsGuidDropletsCurrentGet200ResponseRelationships { + return v.value +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) Set(val *V3AppsGuidDropletsCurrentGet200ResponseRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsCurrentGet200ResponseRelationships(val *V3AppsGuidDropletsCurrentGet200ResponseRelationships) *NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships { + return &NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsCurrentGet200ResponseRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__droplets_get_200_response.go b/model__v3_apps__guid__droplets_get_200_response.go new file mode 100644 index 0000000..26fb3b7 --- /dev/null +++ b/model__v3_apps__guid__droplets_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidDropletsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidDropletsGet200Response{} + +// V3AppsGuidDropletsGet200Response struct for V3AppsGuidDropletsGet200Response +type V3AppsGuidDropletsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Droplet `json:"resources,omitempty"` +} + +// NewV3AppsGuidDropletsGet200Response instantiates a new V3AppsGuidDropletsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidDropletsGet200Response() *V3AppsGuidDropletsGet200Response { + this := V3AppsGuidDropletsGet200Response{} + return &this +} + +// NewV3AppsGuidDropletsGet200ResponseWithDefaults instantiates a new V3AppsGuidDropletsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidDropletsGet200ResponseWithDefaults() *V3AppsGuidDropletsGet200Response { + this := V3AppsGuidDropletsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3AppsGuidDropletsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3AppsGuidDropletsGet200Response) GetResources() []Droplet { + if o == nil || IsNil(o.Resources) { + var ret []Droplet + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidDropletsGet200Response) GetResourcesOk() ([]Droplet, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3AppsGuidDropletsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Droplet and assigns it to the Resources field. +func (o *V3AppsGuidDropletsGet200Response) SetResources(v []Droplet) { + o.Resources = v +} + +func (o V3AppsGuidDropletsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidDropletsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3AppsGuidDropletsGet200Response struct { + value *V3AppsGuidDropletsGet200Response + isSet bool +} + +func (v NullableV3AppsGuidDropletsGet200Response) Get() *V3AppsGuidDropletsGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidDropletsGet200Response) Set(val *V3AppsGuidDropletsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidDropletsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidDropletsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidDropletsGet200Response(val *V3AppsGuidDropletsGet200Response) *NullableV3AppsGuidDropletsGet200Response { + return &NullableV3AppsGuidDropletsGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidDropletsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidDropletsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response.go b/model__v3_apps__guid__env_get_200_response.go new file mode 100644 index 0000000..f1f5d5a --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200Response{} + +// V3AppsGuidEnvGet200Response struct for V3AppsGuidEnvGet200Response +type V3AppsGuidEnvGet200Response struct { + ApplicationEnvJson *V3AppsGuidEnvGet200ResponseApplicationEnvJson `json:"application_env_json,omitempty"` + EnvironmentVariables *map[string]string `json:"environment_variables,omitempty"` + RunningEnvJson *map[string]string `json:"running_env_json,omitempty"` + StagingEnvJson *map[string]string `json:"staging_env_json,omitempty"` + SystemEnvJson *V3AppsGuidEnvGet200ResponseSystemEnvJson `json:"system_env_json,omitempty"` +} + +// NewV3AppsGuidEnvGet200Response instantiates a new V3AppsGuidEnvGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200Response() *V3AppsGuidEnvGet200Response { + this := V3AppsGuidEnvGet200Response{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseWithDefaults instantiates a new V3AppsGuidEnvGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseWithDefaults() *V3AppsGuidEnvGet200Response { + this := V3AppsGuidEnvGet200Response{} + return &this +} + +// GetApplicationEnvJson returns the ApplicationEnvJson field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200Response) GetApplicationEnvJson() V3AppsGuidEnvGet200ResponseApplicationEnvJson { + if o == nil || IsNil(o.ApplicationEnvJson) { + var ret V3AppsGuidEnvGet200ResponseApplicationEnvJson + return ret + } + return *o.ApplicationEnvJson +} + +// GetApplicationEnvJsonOk returns a tuple with the ApplicationEnvJson field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200Response) GetApplicationEnvJsonOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJson, bool) { + if o == nil || IsNil(o.ApplicationEnvJson) { + return nil, false + } + return o.ApplicationEnvJson, true +} + +// HasApplicationEnvJson returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200Response) HasApplicationEnvJson() bool { + if o != nil && !IsNil(o.ApplicationEnvJson) { + return true + } + + return false +} + +// SetApplicationEnvJson gets a reference to the given V3AppsGuidEnvGet200ResponseApplicationEnvJson and assigns it to the ApplicationEnvJson field. +func (o *V3AppsGuidEnvGet200Response) SetApplicationEnvJson(v V3AppsGuidEnvGet200ResponseApplicationEnvJson) { + o.ApplicationEnvJson = &v +} + +// GetEnvironmentVariables returns the EnvironmentVariables field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200Response) GetEnvironmentVariables() map[string]string { + if o == nil || IsNil(o.EnvironmentVariables) { + var ret map[string]string + return ret + } + return *o.EnvironmentVariables +} + +// GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200Response) GetEnvironmentVariablesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.EnvironmentVariables) { + return nil, false + } + return o.EnvironmentVariables, true +} + +// HasEnvironmentVariables returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200Response) HasEnvironmentVariables() bool { + if o != nil && !IsNil(o.EnvironmentVariables) { + return true + } + + return false +} + +// SetEnvironmentVariables gets a reference to the given map[string]string and assigns it to the EnvironmentVariables field. +func (o *V3AppsGuidEnvGet200Response) SetEnvironmentVariables(v map[string]string) { + o.EnvironmentVariables = &v +} + +// GetRunningEnvJson returns the RunningEnvJson field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200Response) GetRunningEnvJson() map[string]string { + if o == nil || IsNil(o.RunningEnvJson) { + var ret map[string]string + return ret + } + return *o.RunningEnvJson +} + +// GetRunningEnvJsonOk returns a tuple with the RunningEnvJson field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200Response) GetRunningEnvJsonOk() (*map[string]string, bool) { + if o == nil || IsNil(o.RunningEnvJson) { + return nil, false + } + return o.RunningEnvJson, true +} + +// HasRunningEnvJson returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200Response) HasRunningEnvJson() bool { + if o != nil && !IsNil(o.RunningEnvJson) { + return true + } + + return false +} + +// SetRunningEnvJson gets a reference to the given map[string]string and assigns it to the RunningEnvJson field. +func (o *V3AppsGuidEnvGet200Response) SetRunningEnvJson(v map[string]string) { + o.RunningEnvJson = &v +} + +// GetStagingEnvJson returns the StagingEnvJson field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200Response) GetStagingEnvJson() map[string]string { + if o == nil || IsNil(o.StagingEnvJson) { + var ret map[string]string + return ret + } + return *o.StagingEnvJson +} + +// GetStagingEnvJsonOk returns a tuple with the StagingEnvJson field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200Response) GetStagingEnvJsonOk() (*map[string]string, bool) { + if o == nil || IsNil(o.StagingEnvJson) { + return nil, false + } + return o.StagingEnvJson, true +} + +// HasStagingEnvJson returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200Response) HasStagingEnvJson() bool { + if o != nil && !IsNil(o.StagingEnvJson) { + return true + } + + return false +} + +// SetStagingEnvJson gets a reference to the given map[string]string and assigns it to the StagingEnvJson field. +func (o *V3AppsGuidEnvGet200Response) SetStagingEnvJson(v map[string]string) { + o.StagingEnvJson = &v +} + +// GetSystemEnvJson returns the SystemEnvJson field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200Response) GetSystemEnvJson() V3AppsGuidEnvGet200ResponseSystemEnvJson { + if o == nil || IsNil(o.SystemEnvJson) { + var ret V3AppsGuidEnvGet200ResponseSystemEnvJson + return ret + } + return *o.SystemEnvJson +} + +// GetSystemEnvJsonOk returns a tuple with the SystemEnvJson field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200Response) GetSystemEnvJsonOk() (*V3AppsGuidEnvGet200ResponseSystemEnvJson, bool) { + if o == nil || IsNil(o.SystemEnvJson) { + return nil, false + } + return o.SystemEnvJson, true +} + +// HasSystemEnvJson returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200Response) HasSystemEnvJson() bool { + if o != nil && !IsNil(o.SystemEnvJson) { + return true + } + + return false +} + +// SetSystemEnvJson gets a reference to the given V3AppsGuidEnvGet200ResponseSystemEnvJson and assigns it to the SystemEnvJson field. +func (o *V3AppsGuidEnvGet200Response) SetSystemEnvJson(v V3AppsGuidEnvGet200ResponseSystemEnvJson) { + o.SystemEnvJson = &v +} + +func (o V3AppsGuidEnvGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApplicationEnvJson) { + toSerialize["application_env_json"] = o.ApplicationEnvJson + } + if !IsNil(o.EnvironmentVariables) { + toSerialize["environment_variables"] = o.EnvironmentVariables + } + if !IsNil(o.RunningEnvJson) { + toSerialize["running_env_json"] = o.RunningEnvJson + } + if !IsNil(o.StagingEnvJson) { + toSerialize["staging_env_json"] = o.StagingEnvJson + } + if !IsNil(o.SystemEnvJson) { + toSerialize["system_env_json"] = o.SystemEnvJson + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200Response struct { + value *V3AppsGuidEnvGet200Response + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200Response) Get() *V3AppsGuidEnvGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200Response) Set(val *V3AppsGuidEnvGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200Response(val *V3AppsGuidEnvGet200Response) *NullableV3AppsGuidEnvGet200Response { + return &NullableV3AppsGuidEnvGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response_application_env_json.go b/model__v3_apps__guid__env_get_200_response_application_env_json.go new file mode 100644 index 0000000..1db9da1 --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response_application_env_json.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200ResponseApplicationEnvJson type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200ResponseApplicationEnvJson{} + +// V3AppsGuidEnvGet200ResponseApplicationEnvJson struct for V3AppsGuidEnvGet200ResponseApplicationEnvJson +type V3AppsGuidEnvGet200ResponseApplicationEnvJson struct { + VCAP_APPLICATION *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION `json:"VCAP_APPLICATION,omitempty"` +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJson instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJson object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJson() *V3AppsGuidEnvGet200ResponseApplicationEnvJson { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJson{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJson object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJson { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJson{} + return &this +} + +// GetVCAP_APPLICATION returns the VCAP_APPLICATION field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) GetVCAP_APPLICATION() V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION { + if o == nil || IsNil(o.VCAP_APPLICATION) { + var ret V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION + return ret + } + return *o.VCAP_APPLICATION +} + +// GetVCAP_APPLICATIONOk returns a tuple with the VCAP_APPLICATION field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) GetVCAP_APPLICATIONOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION, bool) { + if o == nil || IsNil(o.VCAP_APPLICATION) { + return nil, false + } + return o.VCAP_APPLICATION, true +} + +// HasVCAP_APPLICATION returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) HasVCAP_APPLICATION() bool { + if o != nil && !IsNil(o.VCAP_APPLICATION) { + return true + } + + return false +} + +// SetVCAP_APPLICATION gets a reference to the given V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION and assigns it to the VCAP_APPLICATION field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJson) SetVCAP_APPLICATION(v V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) { + o.VCAP_APPLICATION = &v +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJson) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJson) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.VCAP_APPLICATION) { + toSerialize["VCAP_APPLICATION"] = o.VCAP_APPLICATION + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson struct { + value *V3AppsGuidEnvGet200ResponseApplicationEnvJson + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) Get() *V3AppsGuidEnvGet200ResponseApplicationEnvJson { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) Set(val *V3AppsGuidEnvGet200ResponseApplicationEnvJson) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200ResponseApplicationEnvJson(val *V3AppsGuidEnvGet200ResponseApplicationEnvJson) *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson { + return &NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJson) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application.go b/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application.go new file mode 100644 index 0000000..8fcd3c0 --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application.go @@ -0,0 +1,388 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION{} + +// V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION struct for V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION +type V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION struct { + ApplicationName *string `json:"application_name,omitempty"` + ApplicationUris []string `json:"application_uris,omitempty"` + Limits *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits `json:"limits,omitempty"` + Name *string `json:"name,omitempty"` + SpaceId *string `json:"space_id,omitempty"` + SpaceName *string `json:"space_name,omitempty"` + Uris []string `json:"uris,omitempty"` + Users NullableString `json:"users,omitempty"` +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION{} + return &this +} + +// GetApplicationName returns the ApplicationName field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationName() string { + if o == nil || IsNil(o.ApplicationName) { + var ret string + return ret + } + return *o.ApplicationName +} + +// GetApplicationNameOk returns a tuple with the ApplicationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationNameOk() (*string, bool) { + if o == nil || IsNil(o.ApplicationName) { + return nil, false + } + return o.ApplicationName, true +} + +// HasApplicationName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasApplicationName() bool { + if o != nil && !IsNil(o.ApplicationName) { + return true + } + + return false +} + +// SetApplicationName gets a reference to the given string and assigns it to the ApplicationName field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetApplicationName(v string) { + o.ApplicationName = &v +} + +// GetApplicationUris returns the ApplicationUris field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationUris() []string { + if o == nil || IsNil(o.ApplicationUris) { + var ret []string + return ret + } + return o.ApplicationUris +} + +// GetApplicationUrisOk returns a tuple with the ApplicationUris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetApplicationUrisOk() ([]string, bool) { + if o == nil || IsNil(o.ApplicationUris) { + return nil, false + } + return o.ApplicationUris, true +} + +// HasApplicationUris returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasApplicationUris() bool { + if o != nil && !IsNil(o.ApplicationUris) { + return true + } + + return false +} + +// SetApplicationUris gets a reference to the given []string and assigns it to the ApplicationUris field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetApplicationUris(v []string) { + o.ApplicationUris = v +} + +// GetLimits returns the Limits field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetLimits() V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits { + if o == nil || IsNil(o.Limits) { + var ret V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits + return ret + } + return *o.Limits +} + +// GetLimitsOk returns a tuple with the Limits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetLimitsOk() (*V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits, bool) { + if o == nil || IsNil(o.Limits) { + return nil, false + } + return o.Limits, true +} + +// HasLimits returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasLimits() bool { + if o != nil && !IsNil(o.Limits) { + return true + } + + return false +} + +// SetLimits gets a reference to the given V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits and assigns it to the Limits field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetLimits(v V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) { + o.Limits = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetName(v string) { + o.Name = &v +} + +// GetSpaceId returns the SpaceId field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceId() string { + if o == nil || IsNil(o.SpaceId) { + var ret string + return ret + } + return *o.SpaceId +} + +// GetSpaceIdOk returns a tuple with the SpaceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceIdOk() (*string, bool) { + if o == nil || IsNil(o.SpaceId) { + return nil, false + } + return o.SpaceId, true +} + +// HasSpaceId returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasSpaceId() bool { + if o != nil && !IsNil(o.SpaceId) { + return true + } + + return false +} + +// SetSpaceId gets a reference to the given string and assigns it to the SpaceId field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetSpaceId(v string) { + o.SpaceId = &v +} + +// GetSpaceName returns the SpaceName field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceName() string { + if o == nil || IsNil(o.SpaceName) { + var ret string + return ret + } + return *o.SpaceName +} + +// GetSpaceNameOk returns a tuple with the SpaceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetSpaceNameOk() (*string, bool) { + if o == nil || IsNil(o.SpaceName) { + return nil, false + } + return o.SpaceName, true +} + +// HasSpaceName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasSpaceName() bool { + if o != nil && !IsNil(o.SpaceName) { + return true + } + + return false +} + +// SetSpaceName gets a reference to the given string and assigns it to the SpaceName field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetSpaceName(v string) { + o.SpaceName = &v +} + +// GetUris returns the Uris field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUris() []string { + if o == nil || IsNil(o.Uris) { + var ret []string + return ret + } + return o.Uris +} + +// GetUrisOk returns a tuple with the Uris field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUrisOk() ([]string, bool) { + if o == nil || IsNil(o.Uris) { + return nil, false + } + return o.Uris, true +} + +// HasUris returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasUris() bool { + if o != nil && !IsNil(o.Uris) { + return true + } + + return false +} + +// SetUris gets a reference to the given []string and assigns it to the Uris field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUris(v []string) { + o.Uris = v +} + +// GetUsers returns the Users field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUsers() string { + if o == nil || IsNil(o.Users.Get()) { + var ret string + return ret + } + return *o.Users.Get() +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) GetUsersOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Users.Get(), o.Users.IsSet() +} + +// HasUsers returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) HasUsers() bool { + if o != nil && o.Users.IsSet() { + return true + } + + return false +} + +// SetUsers gets a reference to the given NullableString and assigns it to the Users field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUsers(v string) { + o.Users.Set(&v) +} +// SetUsersNil sets the value for Users to be an explicit nil +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) SetUsersNil() { + o.Users.Set(nil) +} + +// UnsetUsers ensures that no value is present for Users, not even an explicit nil +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) UnsetUsers() { + o.Users.Unset() +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApplicationName) { + toSerialize["application_name"] = o.ApplicationName + } + if !IsNil(o.ApplicationUris) { + toSerialize["application_uris"] = o.ApplicationUris + } + if !IsNil(o.Limits) { + toSerialize["limits"] = o.Limits + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SpaceId) { + toSerialize["space_id"] = o.SpaceId + } + if !IsNil(o.SpaceName) { + toSerialize["space_name"] = o.SpaceName + } + if !IsNil(o.Uris) { + toSerialize["uris"] = o.Uris + } + if o.Users.IsSet() { + toSerialize["users"] = o.Users.Get() + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION struct { + value *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) Get() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) Set(val *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION(val *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION { + return &NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATION) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application_limits.go b/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application_limits.go new file mode 100644 index 0000000..2e70cb7 --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response_application_env_json_vcap_application_limits.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits{} + +// V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits struct for V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits +type V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits struct { + Fds *int32 `json:"fds,omitempty"` +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimitsWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimitsWithDefaults() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits { + this := V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits{} + return &this +} + +// GetFds returns the Fds field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) GetFds() int32 { + if o == nil || IsNil(o.Fds) { + var ret int32 + return ret + } + return *o.Fds +} + +// GetFdsOk returns a tuple with the Fds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) GetFdsOk() (*int32, bool) { + if o == nil || IsNil(o.Fds) { + return nil, false + } + return o.Fds, true +} + +// HasFds returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) HasFds() bool { + if o != nil && !IsNil(o.Fds) { + return true + } + + return false +} + +// SetFds gets a reference to the given int32 and assigns it to the Fds field. +func (o *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) SetFds(v int32) { + o.Fds = &v +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Fds) { + toSerialize["fds"] = o.Fds + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits struct { + value *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) Get() *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) Set(val *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits(val *V3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits { + return &NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200ResponseApplicationEnvJsonVCAPAPPLICATIONLimits) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response_system_env_json.go b/model__v3_apps__guid__env_get_200_response_system_env_json.go new file mode 100644 index 0000000..36c8a9d --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response_system_env_json.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200ResponseSystemEnvJson type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200ResponseSystemEnvJson{} + +// V3AppsGuidEnvGet200ResponseSystemEnvJson struct for V3AppsGuidEnvGet200ResponseSystemEnvJson +type V3AppsGuidEnvGet200ResponseSystemEnvJson struct { + VCAP_SERVICES *map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner `json:"VCAP_SERVICES,omitempty"` +} + +// NewV3AppsGuidEnvGet200ResponseSystemEnvJson instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJson object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200ResponseSystemEnvJson() *V3AppsGuidEnvGet200ResponseSystemEnvJson { + this := V3AppsGuidEnvGet200ResponseSystemEnvJson{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseSystemEnvJsonWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJson object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonWithDefaults() *V3AppsGuidEnvGet200ResponseSystemEnvJson { + this := V3AppsGuidEnvGet200ResponseSystemEnvJson{} + return &this +} + +// GetVCAP_SERVICES returns the VCAP_SERVICES field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) GetVCAP_SERVICES() map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner { + if o == nil || IsNil(o.VCAP_SERVICES) { + var ret map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner + return ret + } + return *o.VCAP_SERVICES +} + +// GetVCAP_SERVICESOk returns a tuple with the VCAP_SERVICES field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) GetVCAP_SERVICESOk() (*map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner, bool) { + if o == nil || IsNil(o.VCAP_SERVICES) { + return nil, false + } + return o.VCAP_SERVICES, true +} + +// HasVCAP_SERVICES returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) HasVCAP_SERVICES() bool { + if o != nil && !IsNil(o.VCAP_SERVICES) { + return true + } + + return false +} + +// SetVCAP_SERVICES gets a reference to the given map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner and assigns it to the VCAP_SERVICES field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJson) SetVCAP_SERVICES(v map[string][]V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) { + o.VCAP_SERVICES = &v +} + +func (o V3AppsGuidEnvGet200ResponseSystemEnvJson) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200ResponseSystemEnvJson) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.VCAP_SERVICES) { + toSerialize["VCAP_SERVICES"] = o.VCAP_SERVICES + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200ResponseSystemEnvJson struct { + value *V3AppsGuidEnvGet200ResponseSystemEnvJson + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) Get() *V3AppsGuidEnvGet200ResponseSystemEnvJson { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) Set(val *V3AppsGuidEnvGet200ResponseSystemEnvJson) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200ResponseSystemEnvJson(val *V3AppsGuidEnvGet200ResponseSystemEnvJson) *NullableV3AppsGuidEnvGet200ResponseSystemEnvJson { + return &NullableV3AppsGuidEnvGet200ResponseSystemEnvJson{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJson) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__env_get_200_response_system_env_json_vcap_services_value_inner.go b/model__v3_apps__guid__env_get_200_response_system_env_json_vcap_services_value_inner.go new file mode 100644 index 0000000..a7dd760 --- /dev/null +++ b/model__v3_apps__guid__env_get_200_response_system_env_json_vcap_services_value_inner.go @@ -0,0 +1,532 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner{} + +// V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner struct for V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner +type V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner struct { + BindingId *string `json:"binding_id,omitempty"` + BindingName *string `json:"binding_name,omitempty"` + Credentials *map[string]string `json:"credentials,omitempty"` + InstanceId *string `json:"instance_id,omitempty"` + InstanceName *string `json:"instance_name,omitempty"` + Label *string `json:"label,omitempty"` + Name *string `json:"name,omitempty"` + Plan *string `json:"plan,omitempty"` + Provider NullableString `json:"provider,omitempty"` + SyslogDrainUrl *string `json:"syslog_drain_url,omitempty"` + Tags []string `json:"tags,omitempty"` + VolumeMounts []string `json:"volume_mounts,omitempty"` +} + +// NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner() *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner { + this := V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner{} + return &this +} + +// NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInnerWithDefaults instantiates a new V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInnerWithDefaults() *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner { + this := V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner{} + return &this +} + +// GetBindingId returns the BindingId field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingId() string { + if o == nil || IsNil(o.BindingId) { + var ret string + return ret + } + return *o.BindingId +} + +// GetBindingIdOk returns a tuple with the BindingId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingIdOk() (*string, bool) { + if o == nil || IsNil(o.BindingId) { + return nil, false + } + return o.BindingId, true +} + +// HasBindingId returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasBindingId() bool { + if o != nil && !IsNil(o.BindingId) { + return true + } + + return false +} + +// SetBindingId gets a reference to the given string and assigns it to the BindingId field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetBindingId(v string) { + o.BindingId = &v +} + +// GetBindingName returns the BindingName field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingName() string { + if o == nil || IsNil(o.BindingName) { + var ret string + return ret + } + return *o.BindingName +} + +// GetBindingNameOk returns a tuple with the BindingName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetBindingNameOk() (*string, bool) { + if o == nil || IsNil(o.BindingName) { + return nil, false + } + return o.BindingName, true +} + +// HasBindingName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasBindingName() bool { + if o != nil && !IsNil(o.BindingName) { + return true + } + + return false +} + +// SetBindingName gets a reference to the given string and assigns it to the BindingName field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetBindingName(v string) { + o.BindingName = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetCredentials() map[string]string { + if o == nil || IsNil(o.Credentials) { + var ret map[string]string + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetCredentialsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given map[string]string and assigns it to the Credentials field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetCredentials(v map[string]string) { + o.Credentials = &v +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceId() string { + if o == nil || IsNil(o.InstanceId) { + var ret string + return ret + } + return *o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceIdOk() (*string, bool) { + if o == nil || IsNil(o.InstanceId) { + return nil, false + } + return o.InstanceId, true +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasInstanceId() bool { + if o != nil && !IsNil(o.InstanceId) { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given string and assigns it to the InstanceId field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetInstanceId(v string) { + o.InstanceId = &v +} + +// GetInstanceName returns the InstanceName field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceName() string { + if o == nil || IsNil(o.InstanceName) { + var ret string + return ret + } + return *o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetInstanceNameOk() (*string, bool) { + if o == nil || IsNil(o.InstanceName) { + return nil, false + } + return o.InstanceName, true +} + +// HasInstanceName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasInstanceName() bool { + if o != nil && !IsNil(o.InstanceName) { + return true + } + + return false +} + +// SetInstanceName gets a reference to the given string and assigns it to the InstanceName field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetInstanceName(v string) { + o.InstanceName = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetLabel(v string) { + o.Label = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetName(v string) { + o.Name = &v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetPlan() string { + if o == nil || IsNil(o.Plan) { + var ret string + return ret + } + return *o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetPlanOk() (*string, bool) { + if o == nil || IsNil(o.Plan) { + return nil, false + } + return o.Plan, true +} + +// HasPlan returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasPlan() bool { + if o != nil && !IsNil(o.Plan) { + return true + } + + return false +} + +// SetPlan gets a reference to the given string and assigns it to the Plan field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetPlan(v string) { + o.Plan = &v +} + +// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetProvider() string { + if o == nil || IsNil(o.Provider.Get()) { + var ret string + return ret + } + return *o.Provider.Get() +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Provider.Get(), o.Provider.IsSet() +} + +// HasProvider returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasProvider() bool { + if o != nil && o.Provider.IsSet() { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullableString and assigns it to the Provider field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetProvider(v string) { + o.Provider.Set(&v) +} +// SetProviderNil sets the value for Provider to be an explicit nil +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetProviderNil() { + o.Provider.Set(nil) +} + +// UnsetProvider ensures that no value is present for Provider, not even an explicit nil +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) UnsetProvider() { + o.Provider.Unset() +} + +// GetSyslogDrainUrl returns the SyslogDrainUrl field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetSyslogDrainUrl() string { + if o == nil || IsNil(o.SyslogDrainUrl) { + var ret string + return ret + } + return *o.SyslogDrainUrl +} + +// GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetSyslogDrainUrlOk() (*string, bool) { + if o == nil || IsNil(o.SyslogDrainUrl) { + return nil, false + } + return o.SyslogDrainUrl, true +} + +// HasSyslogDrainUrl returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasSyslogDrainUrl() bool { + if o != nil && !IsNil(o.SyslogDrainUrl) { + return true + } + + return false +} + +// SetSyslogDrainUrl gets a reference to the given string and assigns it to the SyslogDrainUrl field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetSyslogDrainUrl(v string) { + o.SyslogDrainUrl = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetTags(v []string) { + o.Tags = v +} + +// GetVolumeMounts returns the VolumeMounts field value if set, zero value otherwise. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetVolumeMounts() []string { + if o == nil || IsNil(o.VolumeMounts) { + var ret []string + return ret + } + return o.VolumeMounts +} + +// GetVolumeMountsOk returns a tuple with the VolumeMounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) GetVolumeMountsOk() ([]string, bool) { + if o == nil || IsNil(o.VolumeMounts) { + return nil, false + } + return o.VolumeMounts, true +} + +// HasVolumeMounts returns a boolean if a field has been set. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) HasVolumeMounts() bool { + if o != nil && !IsNil(o.VolumeMounts) { + return true + } + + return false +} + +// SetVolumeMounts gets a reference to the given []string and assigns it to the VolumeMounts field. +func (o *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) SetVolumeMounts(v []string) { + o.VolumeMounts = v +} + +func (o V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BindingId) { + toSerialize["binding_id"] = o.BindingId + } + if !IsNil(o.BindingName) { + toSerialize["binding_name"] = o.BindingName + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.InstanceId) { + toSerialize["instance_id"] = o.InstanceId + } + if !IsNil(o.InstanceName) { + toSerialize["instance_name"] = o.InstanceName + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Plan) { + toSerialize["plan"] = o.Plan + } + if o.Provider.IsSet() { + toSerialize["provider"] = o.Provider.Get() + } + if !IsNil(o.SyslogDrainUrl) { + toSerialize["syslog_drain_url"] = o.SyslogDrainUrl + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.VolumeMounts) { + toSerialize["volume_mounts"] = o.VolumeMounts + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner struct { + value *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner + isSet bool +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) Get() *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner { + return v.value +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) Set(val *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner(val *V3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) *NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner { + return &NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvGet200ResponseSystemEnvJsonVCAPSERVICESValueInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__environment_variables_get_200_response.go b/model__v3_apps__guid__environment_variables_get_200_response.go new file mode 100644 index 0000000..dba9928 --- /dev/null +++ b/model__v3_apps__guid__environment_variables_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvironmentVariablesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvironmentVariablesGet200Response{} + +// V3AppsGuidEnvironmentVariablesGet200Response struct for V3AppsGuidEnvironmentVariablesGet200Response +type V3AppsGuidEnvironmentVariablesGet200Response struct { + Links *map[string]Get200ResponseLinksLogCache `json:"links,omitempty"` + Var *map[string]string `json:"var,omitempty"` +} + +// NewV3AppsGuidEnvironmentVariablesGet200Response instantiates a new V3AppsGuidEnvironmentVariablesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvironmentVariablesGet200Response() *V3AppsGuidEnvironmentVariablesGet200Response { + this := V3AppsGuidEnvironmentVariablesGet200Response{} + return &this +} + +// NewV3AppsGuidEnvironmentVariablesGet200ResponseWithDefaults instantiates a new V3AppsGuidEnvironmentVariablesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvironmentVariablesGet200ResponseWithDefaults() *V3AppsGuidEnvironmentVariablesGet200Response { + this := V3AppsGuidEnvironmentVariablesGet200Response{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetLinks() map[string]Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Links) { + var ret map[string]Get200ResponseLinksLogCache + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given map[string]Get200ResponseLinksLogCache and assigns it to the Links field. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) SetLinks(v map[string]Get200ResponseLinksLogCache) { + o.Links = &v +} + +// GetVar returns the Var field value if set, zero value otherwise. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetVar() map[string]string { + if o == nil || IsNil(o.Var) { + var ret map[string]string + return ret + } + return *o.Var +} + +// GetVarOk returns a tuple with the Var field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) GetVarOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Var) { + return nil, false + } + return o.Var, true +} + +// HasVar returns a boolean if a field has been set. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) HasVar() bool { + if o != nil && !IsNil(o.Var) { + return true + } + + return false +} + +// SetVar gets a reference to the given map[string]string and assigns it to the Var field. +func (o *V3AppsGuidEnvironmentVariablesGet200Response) SetVar(v map[string]string) { + o.Var = &v +} + +func (o V3AppsGuidEnvironmentVariablesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvironmentVariablesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Var) { + toSerialize["var"] = o.Var + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvironmentVariablesGet200Response struct { + value *V3AppsGuidEnvironmentVariablesGet200Response + isSet bool +} + +func (v NullableV3AppsGuidEnvironmentVariablesGet200Response) Get() *V3AppsGuidEnvironmentVariablesGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidEnvironmentVariablesGet200Response) Set(val *V3AppsGuidEnvironmentVariablesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvironmentVariablesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvironmentVariablesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvironmentVariablesGet200Response(val *V3AppsGuidEnvironmentVariablesGet200Response) *NullableV3AppsGuidEnvironmentVariablesGet200Response { + return &NullableV3AppsGuidEnvironmentVariablesGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvironmentVariablesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvironmentVariablesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__environment_variables_patch_request.go b/model__v3_apps__guid__environment_variables_patch_request.go new file mode 100644 index 0000000..83164a6 --- /dev/null +++ b/model__v3_apps__guid__environment_variables_patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidEnvironmentVariablesPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidEnvironmentVariablesPatchRequest{} + +// V3AppsGuidEnvironmentVariablesPatchRequest struct for V3AppsGuidEnvironmentVariablesPatchRequest +type V3AppsGuidEnvironmentVariablesPatchRequest struct { + Var *map[string]string `json:"var,omitempty"` +} + +// NewV3AppsGuidEnvironmentVariablesPatchRequest instantiates a new V3AppsGuidEnvironmentVariablesPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidEnvironmentVariablesPatchRequest() *V3AppsGuidEnvironmentVariablesPatchRequest { + this := V3AppsGuidEnvironmentVariablesPatchRequest{} + return &this +} + +// NewV3AppsGuidEnvironmentVariablesPatchRequestWithDefaults instantiates a new V3AppsGuidEnvironmentVariablesPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidEnvironmentVariablesPatchRequestWithDefaults() *V3AppsGuidEnvironmentVariablesPatchRequest { + this := V3AppsGuidEnvironmentVariablesPatchRequest{} + return &this +} + +// GetVar returns the Var field value if set, zero value otherwise. +func (o *V3AppsGuidEnvironmentVariablesPatchRequest) GetVar() map[string]string { + if o == nil || IsNil(o.Var) { + var ret map[string]string + return ret + } + return *o.Var +} + +// GetVarOk returns a tuple with the Var field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidEnvironmentVariablesPatchRequest) GetVarOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Var) { + return nil, false + } + return o.Var, true +} + +// HasVar returns a boolean if a field has been set. +func (o *V3AppsGuidEnvironmentVariablesPatchRequest) HasVar() bool { + if o != nil && !IsNil(o.Var) { + return true + } + + return false +} + +// SetVar gets a reference to the given map[string]string and assigns it to the Var field. +func (o *V3AppsGuidEnvironmentVariablesPatchRequest) SetVar(v map[string]string) { + o.Var = &v +} + +func (o V3AppsGuidEnvironmentVariablesPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidEnvironmentVariablesPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Var) { + toSerialize["var"] = o.Var + } + return toSerialize, nil +} + +type NullableV3AppsGuidEnvironmentVariablesPatchRequest struct { + value *V3AppsGuidEnvironmentVariablesPatchRequest + isSet bool +} + +func (v NullableV3AppsGuidEnvironmentVariablesPatchRequest) Get() *V3AppsGuidEnvironmentVariablesPatchRequest { + return v.value +} + +func (v *NullableV3AppsGuidEnvironmentVariablesPatchRequest) Set(val *V3AppsGuidEnvironmentVariablesPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidEnvironmentVariablesPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidEnvironmentVariablesPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidEnvironmentVariablesPatchRequest(val *V3AppsGuidEnvironmentVariablesPatchRequest) *NullableV3AppsGuidEnvironmentVariablesPatchRequest { + return &NullableV3AppsGuidEnvironmentVariablesPatchRequest{value: val, isSet: true} +} + +func (v NullableV3AppsGuidEnvironmentVariablesPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidEnvironmentVariablesPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__features__name__patch_request.go b/model__v3_apps__guid__features__name__patch_request.go new file mode 100644 index 0000000..ec9d0ac --- /dev/null +++ b/model__v3_apps__guid__features__name__patch_request.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidFeaturesNamePatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidFeaturesNamePatchRequest{} + +// V3AppsGuidFeaturesNamePatchRequest struct for V3AppsGuidFeaturesNamePatchRequest +type V3AppsGuidFeaturesNamePatchRequest struct { + // Denotes whether or not the app feature should be enabled + Enabled *bool `json:"enabled,omitempty"` +} + +// NewV3AppsGuidFeaturesNamePatchRequest instantiates a new V3AppsGuidFeaturesNamePatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidFeaturesNamePatchRequest() *V3AppsGuidFeaturesNamePatchRequest { + this := V3AppsGuidFeaturesNamePatchRequest{} + return &this +} + +// NewV3AppsGuidFeaturesNamePatchRequestWithDefaults instantiates a new V3AppsGuidFeaturesNamePatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidFeaturesNamePatchRequestWithDefaults() *V3AppsGuidFeaturesNamePatchRequest { + this := V3AppsGuidFeaturesNamePatchRequest{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *V3AppsGuidFeaturesNamePatchRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidFeaturesNamePatchRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *V3AppsGuidFeaturesNamePatchRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *V3AppsGuidFeaturesNamePatchRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o V3AppsGuidFeaturesNamePatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidFeaturesNamePatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableV3AppsGuidFeaturesNamePatchRequest struct { + value *V3AppsGuidFeaturesNamePatchRequest + isSet bool +} + +func (v NullableV3AppsGuidFeaturesNamePatchRequest) Get() *V3AppsGuidFeaturesNamePatchRequest { + return v.value +} + +func (v *NullableV3AppsGuidFeaturesNamePatchRequest) Set(val *V3AppsGuidFeaturesNamePatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidFeaturesNamePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidFeaturesNamePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidFeaturesNamePatchRequest(val *V3AppsGuidFeaturesNamePatchRequest) *NullableV3AppsGuidFeaturesNamePatchRequest { + return &NullableV3AppsGuidFeaturesNamePatchRequest{value: val, isSet: true} +} + +func (v NullableV3AppsGuidFeaturesNamePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidFeaturesNamePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__patch_request.go b/model__v3_apps__guid__patch_request.go new file mode 100644 index 0000000..84a258c --- /dev/null +++ b/model__v3_apps__guid__patch_request.go @@ -0,0 +1,199 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidPatchRequest{} + +// V3AppsGuidPatchRequest struct for V3AppsGuidPatchRequest +type V3AppsGuidPatchRequest struct { + Lifecycle *V3AppsGuidPatchRequestLifecycle `json:"lifecycle,omitempty"` + Metadata *V3AppsGuidPatchRequestMetadata `json:"metadata,omitempty"` + // Name of the app + Name *string `json:"name,omitempty"` +} + +// NewV3AppsGuidPatchRequest instantiates a new V3AppsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidPatchRequest() *V3AppsGuidPatchRequest { + this := V3AppsGuidPatchRequest{} + return &this +} + +// NewV3AppsGuidPatchRequestWithDefaults instantiates a new V3AppsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidPatchRequestWithDefaults() *V3AppsGuidPatchRequest { + this := V3AppsGuidPatchRequest{} + return &this +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequest) GetLifecycle() V3AppsGuidPatchRequestLifecycle { + if o == nil || IsNil(o.Lifecycle) { + var ret V3AppsGuidPatchRequestLifecycle + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequest) GetLifecycleOk() (*V3AppsGuidPatchRequestLifecycle, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequest) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given V3AppsGuidPatchRequestLifecycle and assigns it to the Lifecycle field. +func (o *V3AppsGuidPatchRequest) SetLifecycle(v V3AppsGuidPatchRequestLifecycle) { + o.Lifecycle = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequest) GetMetadata() V3AppsGuidPatchRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidPatchRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidPatchRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidPatchRequestMetadata and assigns it to the Metadata field. +func (o *V3AppsGuidPatchRequest) SetMetadata(v V3AppsGuidPatchRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidPatchRequest) SetName(v string) { + o.Name = &v +} + +func (o V3AppsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableV3AppsGuidPatchRequest struct { + value *V3AppsGuidPatchRequest + isSet bool +} + +func (v NullableV3AppsGuidPatchRequest) Get() *V3AppsGuidPatchRequest { + return v.value +} + +func (v *NullableV3AppsGuidPatchRequest) Set(val *V3AppsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidPatchRequest(val *V3AppsGuidPatchRequest) *NullableV3AppsGuidPatchRequest { + return &NullableV3AppsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3AppsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__patch_request_lifecycle.go b/model__v3_apps__guid__patch_request_lifecycle.go new file mode 100644 index 0000000..98b630f --- /dev/null +++ b/model__v3_apps__guid__patch_request_lifecycle.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidPatchRequestLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidPatchRequestLifecycle{} + +// V3AppsGuidPatchRequestLifecycle Lifecycle to be used when updating the app; note: data is a required field in lifecycle if lifecycle is updated +type V3AppsGuidPatchRequestLifecycle struct { + Data *V3AppsGuidPatchRequestLifecycleData `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewV3AppsGuidPatchRequestLifecycle instantiates a new V3AppsGuidPatchRequestLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidPatchRequestLifecycle() *V3AppsGuidPatchRequestLifecycle { + this := V3AppsGuidPatchRequestLifecycle{} + return &this +} + +// NewV3AppsGuidPatchRequestLifecycleWithDefaults instantiates a new V3AppsGuidPatchRequestLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidPatchRequestLifecycleWithDefaults() *V3AppsGuidPatchRequestLifecycle { + this := V3AppsGuidPatchRequestLifecycle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData { + if o == nil || IsNil(o.Data) { + var ret V3AppsGuidPatchRequestLifecycleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestLifecycle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsGuidPatchRequestLifecycleData and assigns it to the Data field. +func (o *V3AppsGuidPatchRequestLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData) { + o.Data = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestLifecycle) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestLifecycle) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestLifecycle) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3AppsGuidPatchRequestLifecycle) SetType(v string) { + o.Type = &v +} + +func (o V3AppsGuidPatchRequestLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidPatchRequestLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3AppsGuidPatchRequestLifecycle struct { + value *V3AppsGuidPatchRequestLifecycle + isSet bool +} + +func (v NullableV3AppsGuidPatchRequestLifecycle) Get() *V3AppsGuidPatchRequestLifecycle { + return v.value +} + +func (v *NullableV3AppsGuidPatchRequestLifecycle) Set(val *V3AppsGuidPatchRequestLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidPatchRequestLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidPatchRequestLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidPatchRequestLifecycle(val *V3AppsGuidPatchRequestLifecycle) *NullableV3AppsGuidPatchRequestLifecycle { + return &NullableV3AppsGuidPatchRequestLifecycle{value: val, isSet: true} +} + +func (v NullableV3AppsGuidPatchRequestLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidPatchRequestLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__patch_request_lifecycle_data.go b/model__v3_apps__guid__patch_request_lifecycle_data.go new file mode 100644 index 0000000..6d17e21 --- /dev/null +++ b/model__v3_apps__guid__patch_request_lifecycle_data.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidPatchRequestLifecycleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidPatchRequestLifecycleData{} + +// V3AppsGuidPatchRequestLifecycleData struct for V3AppsGuidPatchRequestLifecycleData +type V3AppsGuidPatchRequestLifecycleData struct { + Buildpacks []string `json:"buildpacks,omitempty"` + Stack *string `json:"stack,omitempty"` +} + +// NewV3AppsGuidPatchRequestLifecycleData instantiates a new V3AppsGuidPatchRequestLifecycleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidPatchRequestLifecycleData() *V3AppsGuidPatchRequestLifecycleData { + this := V3AppsGuidPatchRequestLifecycleData{} + return &this +} + +// NewV3AppsGuidPatchRequestLifecycleDataWithDefaults instantiates a new V3AppsGuidPatchRequestLifecycleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidPatchRequestLifecycleDataWithDefaults() *V3AppsGuidPatchRequestLifecycleData { + this := V3AppsGuidPatchRequestLifecycleData{} + return &this +} + +// GetBuildpacks returns the Buildpacks field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestLifecycleData) GetBuildpacks() []string { + if o == nil || IsNil(o.Buildpacks) { + var ret []string + return ret + } + return o.Buildpacks +} + +// GetBuildpacksOk returns a tuple with the Buildpacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestLifecycleData) GetBuildpacksOk() ([]string, bool) { + if o == nil || IsNil(o.Buildpacks) { + return nil, false + } + return o.Buildpacks, true +} + +// HasBuildpacks returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestLifecycleData) HasBuildpacks() bool { + if o != nil && !IsNil(o.Buildpacks) { + return true + } + + return false +} + +// SetBuildpacks gets a reference to the given []string and assigns it to the Buildpacks field. +func (o *V3AppsGuidPatchRequestLifecycleData) SetBuildpacks(v []string) { + o.Buildpacks = v +} + +// GetStack returns the Stack field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestLifecycleData) GetStack() string { + if o == nil || IsNil(o.Stack) { + var ret string + return ret + } + return *o.Stack +} + +// GetStackOk returns a tuple with the Stack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestLifecycleData) GetStackOk() (*string, bool) { + if o == nil || IsNil(o.Stack) { + return nil, false + } + return o.Stack, true +} + +// HasStack returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestLifecycleData) HasStack() bool { + if o != nil && !IsNil(o.Stack) { + return true + } + + return false +} + +// SetStack gets a reference to the given string and assigns it to the Stack field. +func (o *V3AppsGuidPatchRequestLifecycleData) SetStack(v string) { + o.Stack = &v +} + +func (o V3AppsGuidPatchRequestLifecycleData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidPatchRequestLifecycleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Buildpacks) { + toSerialize["buildpacks"] = o.Buildpacks + } + if !IsNil(o.Stack) { + toSerialize["stack"] = o.Stack + } + return toSerialize, nil +} + +type NullableV3AppsGuidPatchRequestLifecycleData struct { + value *V3AppsGuidPatchRequestLifecycleData + isSet bool +} + +func (v NullableV3AppsGuidPatchRequestLifecycleData) Get() *V3AppsGuidPatchRequestLifecycleData { + return v.value +} + +func (v *NullableV3AppsGuidPatchRequestLifecycleData) Set(val *V3AppsGuidPatchRequestLifecycleData) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidPatchRequestLifecycleData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidPatchRequestLifecycleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidPatchRequestLifecycleData(val *V3AppsGuidPatchRequestLifecycleData) *NullableV3AppsGuidPatchRequestLifecycleData { + return &NullableV3AppsGuidPatchRequestLifecycleData{value: val, isSet: true} +} + +func (v NullableV3AppsGuidPatchRequestLifecycleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidPatchRequestLifecycleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__patch_request_metadata.go b/model__v3_apps__guid__patch_request_metadata.go new file mode 100644 index 0000000..b767205 --- /dev/null +++ b/model__v3_apps__guid__patch_request_metadata.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidPatchRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidPatchRequestMetadata{} + +// V3AppsGuidPatchRequestMetadata struct for V3AppsGuidPatchRequestMetadata +type V3AppsGuidPatchRequestMetadata struct { + // Annotations applied to the app + Annotations map[string]interface{} `json:"annotations,omitempty"` + // Labels applied to the app + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewV3AppsGuidPatchRequestMetadata instantiates a new V3AppsGuidPatchRequestMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidPatchRequestMetadata() *V3AppsGuidPatchRequestMetadata { + this := V3AppsGuidPatchRequestMetadata{} + return &this +} + +// NewV3AppsGuidPatchRequestMetadataWithDefaults instantiates a new V3AppsGuidPatchRequestMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidPatchRequestMetadataWithDefaults() *V3AppsGuidPatchRequestMetadata { + this := V3AppsGuidPatchRequestMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *V3AppsGuidPatchRequestMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3AppsGuidPatchRequestMetadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPatchRequestMetadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3AppsGuidPatchRequestMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *V3AppsGuidPatchRequestMetadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o V3AppsGuidPatchRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidPatchRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3AppsGuidPatchRequestMetadata struct { + value *V3AppsGuidPatchRequestMetadata + isSet bool +} + +func (v NullableV3AppsGuidPatchRequestMetadata) Get() *V3AppsGuidPatchRequestMetadata { + return v.value +} + +func (v *NullableV3AppsGuidPatchRequestMetadata) Set(val *V3AppsGuidPatchRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidPatchRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidPatchRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidPatchRequestMetadata(val *V3AppsGuidPatchRequestMetadata) *NullableV3AppsGuidPatchRequestMetadata { + return &NullableV3AppsGuidPatchRequestMetadata{value: val, isSet: true} +} + +func (v NullableV3AppsGuidPatchRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidPatchRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__permissions_get_200_response.go b/model__v3_apps__guid__permissions_get_200_response.go new file mode 100644 index 0000000..8f53594 --- /dev/null +++ b/model__v3_apps__guid__permissions_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidPermissionsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidPermissionsGet200Response{} + +// V3AppsGuidPermissionsGet200Response struct for V3AppsGuidPermissionsGet200Response +type V3AppsGuidPermissionsGet200Response struct { + ReadBasicData *bool `json:"read_basic_data,omitempty"` + ReadSensitiveData *bool `json:"read_sensitive_data,omitempty"` +} + +// NewV3AppsGuidPermissionsGet200Response instantiates a new V3AppsGuidPermissionsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidPermissionsGet200Response() *V3AppsGuidPermissionsGet200Response { + this := V3AppsGuidPermissionsGet200Response{} + return &this +} + +// NewV3AppsGuidPermissionsGet200ResponseWithDefaults instantiates a new V3AppsGuidPermissionsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidPermissionsGet200ResponseWithDefaults() *V3AppsGuidPermissionsGet200Response { + this := V3AppsGuidPermissionsGet200Response{} + return &this +} + +// GetReadBasicData returns the ReadBasicData field value if set, zero value otherwise. +func (o *V3AppsGuidPermissionsGet200Response) GetReadBasicData() bool { + if o == nil || IsNil(o.ReadBasicData) { + var ret bool + return ret + } + return *o.ReadBasicData +} + +// GetReadBasicDataOk returns a tuple with the ReadBasicData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPermissionsGet200Response) GetReadBasicDataOk() (*bool, bool) { + if o == nil || IsNil(o.ReadBasicData) { + return nil, false + } + return o.ReadBasicData, true +} + +// HasReadBasicData returns a boolean if a field has been set. +func (o *V3AppsGuidPermissionsGet200Response) HasReadBasicData() bool { + if o != nil && !IsNil(o.ReadBasicData) { + return true + } + + return false +} + +// SetReadBasicData gets a reference to the given bool and assigns it to the ReadBasicData field. +func (o *V3AppsGuidPermissionsGet200Response) SetReadBasicData(v bool) { + o.ReadBasicData = &v +} + +// GetReadSensitiveData returns the ReadSensitiveData field value if set, zero value otherwise. +func (o *V3AppsGuidPermissionsGet200Response) GetReadSensitiveData() bool { + if o == nil || IsNil(o.ReadSensitiveData) { + var ret bool + return ret + } + return *o.ReadSensitiveData +} + +// GetReadSensitiveDataOk returns a tuple with the ReadSensitiveData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidPermissionsGet200Response) GetReadSensitiveDataOk() (*bool, bool) { + if o == nil || IsNil(o.ReadSensitiveData) { + return nil, false + } + return o.ReadSensitiveData, true +} + +// HasReadSensitiveData returns a boolean if a field has been set. +func (o *V3AppsGuidPermissionsGet200Response) HasReadSensitiveData() bool { + if o != nil && !IsNil(o.ReadSensitiveData) { + return true + } + + return false +} + +// SetReadSensitiveData gets a reference to the given bool and assigns it to the ReadSensitiveData field. +func (o *V3AppsGuidPermissionsGet200Response) SetReadSensitiveData(v bool) { + o.ReadSensitiveData = &v +} + +func (o V3AppsGuidPermissionsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidPermissionsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ReadBasicData) { + toSerialize["read_basic_data"] = o.ReadBasicData + } + if !IsNil(o.ReadSensitiveData) { + toSerialize["read_sensitive_data"] = o.ReadSensitiveData + } + return toSerialize, nil +} + +type NullableV3AppsGuidPermissionsGet200Response struct { + value *V3AppsGuidPermissionsGet200Response + isSet bool +} + +func (v NullableV3AppsGuidPermissionsGet200Response) Get() *V3AppsGuidPermissionsGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidPermissionsGet200Response) Set(val *V3AppsGuidPermissionsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidPermissionsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidPermissionsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidPermissionsGet200Response(val *V3AppsGuidPermissionsGet200Response) *NullableV3AppsGuidPermissionsGet200Response { + return &NullableV3AppsGuidPermissionsGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidPermissionsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidPermissionsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__relationships_current_droplet_get_200_response.go b/model__v3_apps__guid__relationships_current_droplet_get_200_response.go new file mode 100644 index 0000000..dbf3499 --- /dev/null +++ b/model__v3_apps__guid__relationships_current_droplet_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidRelationshipsCurrentDropletGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidRelationshipsCurrentDropletGet200Response{} + +// V3AppsGuidRelationshipsCurrentDropletGet200Response struct for V3AppsGuidRelationshipsCurrentDropletGet200Response +type V3AppsGuidRelationshipsCurrentDropletGet200Response struct { + Data *V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` + Links *map[string]Get200ResponseLinksLogCache `json:"links,omitempty"` +} + +// NewV3AppsGuidRelationshipsCurrentDropletGet200Response instantiates a new V3AppsGuidRelationshipsCurrentDropletGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidRelationshipsCurrentDropletGet200Response() *V3AppsGuidRelationshipsCurrentDropletGet200Response { + this := V3AppsGuidRelationshipsCurrentDropletGet200Response{} + return &this +} + +// NewV3AppsGuidRelationshipsCurrentDropletGet200ResponseWithDefaults instantiates a new V3AppsGuidRelationshipsCurrentDropletGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidRelationshipsCurrentDropletGet200ResponseWithDefaults() *V3AppsGuidRelationshipsCurrentDropletGet200Response { + this := V3AppsGuidRelationshipsCurrentDropletGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetData() V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret V3AppsPostRequestRelationshipsSpaceData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) SetData(v V3AppsPostRequestRelationshipsSpaceData) { + o.Data = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetLinks() map[string]Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Links) { + var ret map[string]Get200ResponseLinksLogCache + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) GetLinksOk() (*map[string]Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given map[string]Get200ResponseLinksLogCache and assigns it to the Links field. +func (o *V3AppsGuidRelationshipsCurrentDropletGet200Response) SetLinks(v map[string]Get200ResponseLinksLogCache) { + o.Links = &v +} + +func (o V3AppsGuidRelationshipsCurrentDropletGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidRelationshipsCurrentDropletGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableV3AppsGuidRelationshipsCurrentDropletGet200Response struct { + value *V3AppsGuidRelationshipsCurrentDropletGet200Response + isSet bool +} + +func (v NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) Get() *V3AppsGuidRelationshipsCurrentDropletGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) Set(val *V3AppsGuidRelationshipsCurrentDropletGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidRelationshipsCurrentDropletGet200Response(val *V3AppsGuidRelationshipsCurrentDropletGet200Response) *NullableV3AppsGuidRelationshipsCurrentDropletGet200Response { + return &NullableV3AppsGuidRelationshipsCurrentDropletGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidRelationshipsCurrentDropletGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__sidecars_get_200_response.go b/model__v3_apps__guid__sidecars_get_200_response.go new file mode 100644 index 0000000..6e65d0a --- /dev/null +++ b/model__v3_apps__guid__sidecars_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidSidecarsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidSidecarsGet200Response{} + +// V3AppsGuidSidecarsGet200Response struct for V3AppsGuidSidecarsGet200Response +type V3AppsGuidSidecarsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Sidecar `json:"resources,omitempty"` +} + +// NewV3AppsGuidSidecarsGet200Response instantiates a new V3AppsGuidSidecarsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidSidecarsGet200Response() *V3AppsGuidSidecarsGet200Response { + this := V3AppsGuidSidecarsGet200Response{} + return &this +} + +// NewV3AppsGuidSidecarsGet200ResponseWithDefaults instantiates a new V3AppsGuidSidecarsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidSidecarsGet200ResponseWithDefaults() *V3AppsGuidSidecarsGet200Response { + this := V3AppsGuidSidecarsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3AppsGuidSidecarsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3AppsGuidSidecarsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3AppsGuidSidecarsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3AppsGuidSidecarsGet200Response) GetResources() []Sidecar { + if o == nil || IsNil(o.Resources) { + var ret []Sidecar + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsGet200Response) GetResourcesOk() ([]Sidecar, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3AppsGuidSidecarsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Sidecar and assigns it to the Resources field. +func (o *V3AppsGuidSidecarsGet200Response) SetResources(v []Sidecar) { + o.Resources = v +} + +func (o V3AppsGuidSidecarsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidSidecarsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3AppsGuidSidecarsGet200Response struct { + value *V3AppsGuidSidecarsGet200Response + isSet bool +} + +func (v NullableV3AppsGuidSidecarsGet200Response) Get() *V3AppsGuidSidecarsGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidSidecarsGet200Response) Set(val *V3AppsGuidSidecarsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidSidecarsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidSidecarsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidSidecarsGet200Response(val *V3AppsGuidSidecarsGet200Response) *NullableV3AppsGuidSidecarsGet200Response { + return &NullableV3AppsGuidSidecarsGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidSidecarsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidSidecarsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__sidecars_post_request.go b/model__v3_apps__guid__sidecars_post_request.go new file mode 100644 index 0000000..d7b98c6 --- /dev/null +++ b/model__v3_apps__guid__sidecars_post_request.go @@ -0,0 +1,250 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3AppsGuidSidecarsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidSidecarsPostRequest{} + +// V3AppsGuidSidecarsPostRequest struct for V3AppsGuidSidecarsPostRequest +type V3AppsGuidSidecarsPostRequest struct { + Command string `json:"command"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Name string `json:"name"` + ProcessTypes []string `json:"process_types"` +} + +type _V3AppsGuidSidecarsPostRequest V3AppsGuidSidecarsPostRequest + +// NewV3AppsGuidSidecarsPostRequest instantiates a new V3AppsGuidSidecarsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidSidecarsPostRequest(command string, name string, processTypes []string) *V3AppsGuidSidecarsPostRequest { + this := V3AppsGuidSidecarsPostRequest{} + this.Command = command + this.Name = name + this.ProcessTypes = processTypes + return &this +} + +// NewV3AppsGuidSidecarsPostRequestWithDefaults instantiates a new V3AppsGuidSidecarsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidSidecarsPostRequestWithDefaults() *V3AppsGuidSidecarsPostRequest { + this := V3AppsGuidSidecarsPostRequest{} + return &this +} + +// GetCommand returns the Command field value +func (o *V3AppsGuidSidecarsPostRequest) GetCommand() string { + if o == nil { + var ret string + return ret + } + + return o.Command +} + +// GetCommandOk returns a tuple with the Command field value +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsPostRequest) GetCommandOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Command, true +} + +// SetCommand sets field value +func (o *V3AppsGuidSidecarsPostRequest) SetCommand(v string) { + o.Command = v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *V3AppsGuidSidecarsPostRequest) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsPostRequest) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *V3AppsGuidSidecarsPostRequest) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *V3AppsGuidSidecarsPostRequest) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetName returns the Name field value +func (o *V3AppsGuidSidecarsPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V3AppsGuidSidecarsPostRequest) SetName(v string) { + o.Name = v +} + +// GetProcessTypes returns the ProcessTypes field value +func (o *V3AppsGuidSidecarsPostRequest) GetProcessTypes() []string { + if o == nil { + var ret []string + return ret + } + + return o.ProcessTypes +} + +// GetProcessTypesOk returns a tuple with the ProcessTypes field value +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSidecarsPostRequest) GetProcessTypesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ProcessTypes, true +} + +// SetProcessTypes sets field value +func (o *V3AppsGuidSidecarsPostRequest) SetProcessTypes(v []string) { + o.ProcessTypes = v +} + +func (o V3AppsGuidSidecarsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidSidecarsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["command"] = o.Command + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + toSerialize["name"] = o.Name + toSerialize["process_types"] = o.ProcessTypes + return toSerialize, nil +} + +func (o *V3AppsGuidSidecarsPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "command", + "name", + "process_types", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3AppsGuidSidecarsPostRequest := _V3AppsGuidSidecarsPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3AppsGuidSidecarsPostRequest) + + if err != nil { + return err + } + + *o = V3AppsGuidSidecarsPostRequest(varV3AppsGuidSidecarsPostRequest) + + return err +} + +type NullableV3AppsGuidSidecarsPostRequest struct { + value *V3AppsGuidSidecarsPostRequest + isSet bool +} + +func (v NullableV3AppsGuidSidecarsPostRequest) Get() *V3AppsGuidSidecarsPostRequest { + return v.value +} + +func (v *NullableV3AppsGuidSidecarsPostRequest) Set(val *V3AppsGuidSidecarsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidSidecarsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidSidecarsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidSidecarsPostRequest(val *V3AppsGuidSidecarsPostRequest) *NullableV3AppsGuidSidecarsPostRequest { + return &NullableV3AppsGuidSidecarsPostRequest{value: val, isSet: true} +} + +func (v NullableV3AppsGuidSidecarsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidSidecarsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__ssh_enabled_get_200_response.go b/model__v3_apps__guid__ssh_enabled_get_200_response.go new file mode 100644 index 0000000..a95556d --- /dev/null +++ b/model__v3_apps__guid__ssh_enabled_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidSshEnabledGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidSshEnabledGet200Response{} + +// V3AppsGuidSshEnabledGet200Response struct for V3AppsGuidSshEnabledGet200Response +type V3AppsGuidSshEnabledGet200Response struct { + Enabled *bool `json:"enabled,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// NewV3AppsGuidSshEnabledGet200Response instantiates a new V3AppsGuidSshEnabledGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidSshEnabledGet200Response() *V3AppsGuidSshEnabledGet200Response { + this := V3AppsGuidSshEnabledGet200Response{} + return &this +} + +// NewV3AppsGuidSshEnabledGet200ResponseWithDefaults instantiates a new V3AppsGuidSshEnabledGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidSshEnabledGet200ResponseWithDefaults() *V3AppsGuidSshEnabledGet200Response { + this := V3AppsGuidSshEnabledGet200Response{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *V3AppsGuidSshEnabledGet200Response) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSshEnabledGet200Response) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *V3AppsGuidSshEnabledGet200Response) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *V3AppsGuidSshEnabledGet200Response) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *V3AppsGuidSshEnabledGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidSshEnabledGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *V3AppsGuidSshEnabledGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *V3AppsGuidSshEnabledGet200Response) SetReason(v string) { + o.Reason = &v +} + +func (o V3AppsGuidSshEnabledGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidSshEnabledGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +type NullableV3AppsGuidSshEnabledGet200Response struct { + value *V3AppsGuidSshEnabledGet200Response + isSet bool +} + +func (v NullableV3AppsGuidSshEnabledGet200Response) Get() *V3AppsGuidSshEnabledGet200Response { + return v.value +} + +func (v *NullableV3AppsGuidSshEnabledGet200Response) Set(val *V3AppsGuidSshEnabledGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidSshEnabledGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidSshEnabledGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidSshEnabledGet200Response(val *V3AppsGuidSshEnabledGet200Response) *NullableV3AppsGuidSshEnabledGet200Response { + return &NullableV3AppsGuidSshEnabledGet200Response{value: val, isSet: true} +} + +func (v NullableV3AppsGuidSshEnabledGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidSshEnabledGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__tasks_post_request.go b/model__v3_apps__guid__tasks_post_request.go new file mode 100644 index 0000000..73bcf11 --- /dev/null +++ b/model__v3_apps__guid__tasks_post_request.go @@ -0,0 +1,384 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidTasksPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidTasksPostRequest{} + +// V3AppsGuidTasksPostRequest struct for V3AppsGuidTasksPostRequest +type V3AppsGuidTasksPostRequest struct { + // Command that will be executed; optional if a template.process.guid is provided + Command *string `json:"command,omitempty"` + // Amount of disk to allocate for the task in MB + DiskInMb *int32 `json:"disk_in_mb,omitempty"` + // The guid of the droplet that will be used to run the command + DropletGuid *string `json:"droplet_guid,omitempty"` + // Amount of log rate to allocate for the task in bytes + LogRateLimitInBytesPerSecond *int32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + // Amount of memory to allocate for the task in MB + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + // Name of the task; auto-generated if not provided + Name *string `json:"name,omitempty"` + Template *V3AppsGuidTasksPostRequestTemplate `json:"template,omitempty"` +} + +// NewV3AppsGuidTasksPostRequest instantiates a new V3AppsGuidTasksPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidTasksPostRequest() *V3AppsGuidTasksPostRequest { + this := V3AppsGuidTasksPostRequest{} + return &this +} + +// NewV3AppsGuidTasksPostRequestWithDefaults instantiates a new V3AppsGuidTasksPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidTasksPostRequestWithDefaults() *V3AppsGuidTasksPostRequest { + this := V3AppsGuidTasksPostRequest{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetCommand() string { + if o == nil || IsNil(o.Command) { + var ret string + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetCommandOk() (*string, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given string and assigns it to the Command field. +func (o *V3AppsGuidTasksPostRequest) SetCommand(v string) { + o.Command = &v +} + +// GetDiskInMb returns the DiskInMb field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetDiskInMb() int32 { + if o == nil || IsNil(o.DiskInMb) { + var ret int32 + return ret + } + return *o.DiskInMb +} + +// GetDiskInMbOk returns a tuple with the DiskInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetDiskInMbOk() (*int32, bool) { + if o == nil || IsNil(o.DiskInMb) { + return nil, false + } + return o.DiskInMb, true +} + +// HasDiskInMb returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasDiskInMb() bool { + if o != nil && !IsNil(o.DiskInMb) { + return true + } + + return false +} + +// SetDiskInMb gets a reference to the given int32 and assigns it to the DiskInMb field. +func (o *V3AppsGuidTasksPostRequest) SetDiskInMb(v int32) { + o.DiskInMb = &v +} + +// GetDropletGuid returns the DropletGuid field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetDropletGuid() string { + if o == nil || IsNil(o.DropletGuid) { + var ret string + return ret + } + return *o.DropletGuid +} + +// GetDropletGuidOk returns a tuple with the DropletGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetDropletGuidOk() (*string, bool) { + if o == nil || IsNil(o.DropletGuid) { + return nil, false + } + return o.DropletGuid, true +} + +// HasDropletGuid returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasDropletGuid() bool { + if o != nil && !IsNil(o.DropletGuid) { + return true + } + + return false +} + +// SetDropletGuid gets a reference to the given string and assigns it to the DropletGuid field. +func (o *V3AppsGuidTasksPostRequest) SetDropletGuid(v string) { + o.DropletGuid = &v +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + return nil, false + } + return o.LogRateLimitInBytesPerSecond, true +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && !IsNil(o.LogRateLimitInBytesPerSecond) { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given int32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *V3AppsGuidTasksPostRequest) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *V3AppsGuidTasksPostRequest) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *V3AppsGuidTasksPostRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3AppsGuidTasksPostRequest) SetName(v string) { + o.Name = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequest) GetTemplate() V3AppsGuidTasksPostRequestTemplate { + if o == nil || IsNil(o.Template) { + var ret V3AppsGuidTasksPostRequestTemplate + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequest) GetTemplateOk() (*V3AppsGuidTasksPostRequestTemplate, bool) { + if o == nil || IsNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequest) HasTemplate() bool { + if o != nil && !IsNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given V3AppsGuidTasksPostRequestTemplate and assigns it to the Template field. +func (o *V3AppsGuidTasksPostRequest) SetTemplate(v V3AppsGuidTasksPostRequestTemplate) { + o.Template = &v +} + +func (o V3AppsGuidTasksPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidTasksPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + if !IsNil(o.DiskInMb) { + toSerialize["disk_in_mb"] = o.DiskInMb + } + if !IsNil(o.DropletGuid) { + toSerialize["droplet_guid"] = o.DropletGuid + } + if !IsNil(o.LogRateLimitInBytesPerSecond) { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Template) { + toSerialize["template"] = o.Template + } + return toSerialize, nil +} + +type NullableV3AppsGuidTasksPostRequest struct { + value *V3AppsGuidTasksPostRequest + isSet bool +} + +func (v NullableV3AppsGuidTasksPostRequest) Get() *V3AppsGuidTasksPostRequest { + return v.value +} + +func (v *NullableV3AppsGuidTasksPostRequest) Set(val *V3AppsGuidTasksPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidTasksPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidTasksPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidTasksPostRequest(val *V3AppsGuidTasksPostRequest) *NullableV3AppsGuidTasksPostRequest { + return &NullableV3AppsGuidTasksPostRequest{value: val, isSet: true} +} + +func (v NullableV3AppsGuidTasksPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidTasksPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__tasks_post_request_metadata.go b/model__v3_apps__guid__tasks_post_request_metadata.go new file mode 100644 index 0000000..2209c72 --- /dev/null +++ b/model__v3_apps__guid__tasks_post_request_metadata.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidTasksPostRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidTasksPostRequestMetadata{} + +// V3AppsGuidTasksPostRequestMetadata struct for V3AppsGuidTasksPostRequestMetadata +type V3AppsGuidTasksPostRequestMetadata struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` +} + +// NewV3AppsGuidTasksPostRequestMetadata instantiates a new V3AppsGuidTasksPostRequestMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidTasksPostRequestMetadata() *V3AppsGuidTasksPostRequestMetadata { + this := V3AppsGuidTasksPostRequestMetadata{} + return &this +} + +// NewV3AppsGuidTasksPostRequestMetadataWithDefaults instantiates a new V3AppsGuidTasksPostRequestMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidTasksPostRequestMetadataWithDefaults() *V3AppsGuidTasksPostRequestMetadata { + this := V3AppsGuidTasksPostRequestMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequestMetadata) GetAnnotations() map[string]string { + if o == nil || IsNil(o.Annotations) { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequestMetadata) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Annotations) { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequestMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *V3AppsGuidTasksPostRequestMetadata) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequestMetadata) GetLabels() map[string]string { + if o == nil || IsNil(o.Labels) { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequestMetadata) GetLabelsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Labels) { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequestMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *V3AppsGuidTasksPostRequestMetadata) SetLabels(v map[string]string) { + o.Labels = &v +} + +func (o V3AppsGuidTasksPostRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidTasksPostRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3AppsGuidTasksPostRequestMetadata struct { + value *V3AppsGuidTasksPostRequestMetadata + isSet bool +} + +func (v NullableV3AppsGuidTasksPostRequestMetadata) Get() *V3AppsGuidTasksPostRequestMetadata { + return v.value +} + +func (v *NullableV3AppsGuidTasksPostRequestMetadata) Set(val *V3AppsGuidTasksPostRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidTasksPostRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidTasksPostRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidTasksPostRequestMetadata(val *V3AppsGuidTasksPostRequestMetadata) *NullableV3AppsGuidTasksPostRequestMetadata { + return &NullableV3AppsGuidTasksPostRequestMetadata{value: val, isSet: true} +} + +func (v NullableV3AppsGuidTasksPostRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidTasksPostRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__tasks_post_request_template.go b/model__v3_apps__guid__tasks_post_request_template.go new file mode 100644 index 0000000..d8b7a2d --- /dev/null +++ b/model__v3_apps__guid__tasks_post_request_template.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidTasksPostRequestTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidTasksPostRequestTemplate{} + +// V3AppsGuidTasksPostRequestTemplate struct for V3AppsGuidTasksPostRequestTemplate +type V3AppsGuidTasksPostRequestTemplate struct { + Process *V3AppsGuidTasksPostRequestTemplateProcess `json:"process,omitempty"` +} + +// NewV3AppsGuidTasksPostRequestTemplate instantiates a new V3AppsGuidTasksPostRequestTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidTasksPostRequestTemplate() *V3AppsGuidTasksPostRequestTemplate { + this := V3AppsGuidTasksPostRequestTemplate{} + return &this +} + +// NewV3AppsGuidTasksPostRequestTemplateWithDefaults instantiates a new V3AppsGuidTasksPostRequestTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidTasksPostRequestTemplateWithDefaults() *V3AppsGuidTasksPostRequestTemplate { + this := V3AppsGuidTasksPostRequestTemplate{} + return &this +} + +// GetProcess returns the Process field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequestTemplate) GetProcess() V3AppsGuidTasksPostRequestTemplateProcess { + if o == nil || IsNil(o.Process) { + var ret V3AppsGuidTasksPostRequestTemplateProcess + return ret + } + return *o.Process +} + +// GetProcessOk returns a tuple with the Process field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequestTemplate) GetProcessOk() (*V3AppsGuidTasksPostRequestTemplateProcess, bool) { + if o == nil || IsNil(o.Process) { + return nil, false + } + return o.Process, true +} + +// HasProcess returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequestTemplate) HasProcess() bool { + if o != nil && !IsNil(o.Process) { + return true + } + + return false +} + +// SetProcess gets a reference to the given V3AppsGuidTasksPostRequestTemplateProcess and assigns it to the Process field. +func (o *V3AppsGuidTasksPostRequestTemplate) SetProcess(v V3AppsGuidTasksPostRequestTemplateProcess) { + o.Process = &v +} + +func (o V3AppsGuidTasksPostRequestTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidTasksPostRequestTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Process) { + toSerialize["process"] = o.Process + } + return toSerialize, nil +} + +type NullableV3AppsGuidTasksPostRequestTemplate struct { + value *V3AppsGuidTasksPostRequestTemplate + isSet bool +} + +func (v NullableV3AppsGuidTasksPostRequestTemplate) Get() *V3AppsGuidTasksPostRequestTemplate { + return v.value +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplate) Set(val *V3AppsGuidTasksPostRequestTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidTasksPostRequestTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidTasksPostRequestTemplate(val *V3AppsGuidTasksPostRequestTemplate) *NullableV3AppsGuidTasksPostRequestTemplate { + return &NullableV3AppsGuidTasksPostRequestTemplate{value: val, isSet: true} +} + +func (v NullableV3AppsGuidTasksPostRequestTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps__guid__tasks_post_request_template_process.go b/model__v3_apps__guid__tasks_post_request_template_process.go new file mode 100644 index 0000000..a39c675 --- /dev/null +++ b/model__v3_apps__guid__tasks_post_request_template_process.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsGuidTasksPostRequestTemplateProcess type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsGuidTasksPostRequestTemplateProcess{} + +// V3AppsGuidTasksPostRequestTemplateProcess struct for V3AppsGuidTasksPostRequestTemplateProcess +type V3AppsGuidTasksPostRequestTemplateProcess struct { + // The guid of the process that will be used as a template + Guid *string `json:"guid,omitempty"` +} + +// NewV3AppsGuidTasksPostRequestTemplateProcess instantiates a new V3AppsGuidTasksPostRequestTemplateProcess object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsGuidTasksPostRequestTemplateProcess() *V3AppsGuidTasksPostRequestTemplateProcess { + this := V3AppsGuidTasksPostRequestTemplateProcess{} + return &this +} + +// NewV3AppsGuidTasksPostRequestTemplateProcessWithDefaults instantiates a new V3AppsGuidTasksPostRequestTemplateProcess object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsGuidTasksPostRequestTemplateProcessWithDefaults() *V3AppsGuidTasksPostRequestTemplateProcess { + this := V3AppsGuidTasksPostRequestTemplateProcess{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3AppsGuidTasksPostRequestTemplateProcess) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsGuidTasksPostRequestTemplateProcess) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3AppsGuidTasksPostRequestTemplateProcess) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3AppsGuidTasksPostRequestTemplateProcess) SetGuid(v string) { + o.Guid = &v +} + +func (o V3AppsGuidTasksPostRequestTemplateProcess) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsGuidTasksPostRequestTemplateProcess) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3AppsGuidTasksPostRequestTemplateProcess struct { + value *V3AppsGuidTasksPostRequestTemplateProcess + isSet bool +} + +func (v NullableV3AppsGuidTasksPostRequestTemplateProcess) Get() *V3AppsGuidTasksPostRequestTemplateProcess { + return v.value +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplateProcess) Set(val *V3AppsGuidTasksPostRequestTemplateProcess) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsGuidTasksPostRequestTemplateProcess) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplateProcess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsGuidTasksPostRequestTemplateProcess(val *V3AppsGuidTasksPostRequestTemplateProcess) *NullableV3AppsGuidTasksPostRequestTemplateProcess { + return &NullableV3AppsGuidTasksPostRequestTemplateProcess{value: val, isSet: true} +} + +func (v NullableV3AppsGuidTasksPostRequestTemplateProcess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsGuidTasksPostRequestTemplateProcess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request.go b/model__v3_apps_post_request.go new file mode 100644 index 0000000..7502cf4 --- /dev/null +++ b/model__v3_apps_post_request.go @@ -0,0 +1,371 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3AppsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequest{} + +// V3AppsPostRequest struct for V3AppsPostRequest +type V3AppsPostRequest struct { + // Environment variables for the app. + EnvironmentVariables map[string]interface{} `json:"environment_variables,omitempty"` + Lifecycle *V3AppsPostRequestLifecycle `json:"lifecycle,omitempty"` + // Metadata of the app. + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Name of the app. + Name string `json:"name"` + Relationships *V3AppsPostRequestRelationships `json:"relationships,omitempty"` + // GUID of the space. + SpaceGuid string `json:"space_guid"` + // Desired state of the app. + State *string `json:"state,omitempty"` +} + +type _V3AppsPostRequest V3AppsPostRequest + +// NewV3AppsPostRequest instantiates a new V3AppsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequest(name string, spaceGuid string) *V3AppsPostRequest { + this := V3AppsPostRequest{} + this.Name = name + this.SpaceGuid = spaceGuid + return &this +} + +// NewV3AppsPostRequestWithDefaults instantiates a new V3AppsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestWithDefaults() *V3AppsPostRequest { + this := V3AppsPostRequest{} + return &this +} + +// GetEnvironmentVariables returns the EnvironmentVariables field value if set, zero value otherwise. +func (o *V3AppsPostRequest) GetEnvironmentVariables() map[string]interface{} { + if o == nil || IsNil(o.EnvironmentVariables) { + var ret map[string]interface{} + return ret + } + return o.EnvironmentVariables +} + +// GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetEnvironmentVariablesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.EnvironmentVariables) { + return map[string]interface{}{}, false + } + return o.EnvironmentVariables, true +} + +// HasEnvironmentVariables returns a boolean if a field has been set. +func (o *V3AppsPostRequest) HasEnvironmentVariables() bool { + if o != nil && !IsNil(o.EnvironmentVariables) { + return true + } + + return false +} + +// SetEnvironmentVariables gets a reference to the given map[string]interface{} and assigns it to the EnvironmentVariables field. +func (o *V3AppsPostRequest) SetEnvironmentVariables(v map[string]interface{}) { + o.EnvironmentVariables = v +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *V3AppsPostRequest) GetLifecycle() V3AppsPostRequestLifecycle { + if o == nil || IsNil(o.Lifecycle) { + var ret V3AppsPostRequestLifecycle + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetLifecycleOk() (*V3AppsPostRequestLifecycle, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *V3AppsPostRequest) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given V3AppsPostRequestLifecycle and assigns it to the Lifecycle field. +func (o *V3AppsPostRequest) SetLifecycle(v V3AppsPostRequestLifecycle) { + o.Lifecycle = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3AppsPostRequest) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3AppsPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *V3AppsPostRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetName returns the Name field value +func (o *V3AppsPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V3AppsPostRequest) SetName(v string) { + o.Name = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3AppsPostRequest) GetRelationships() V3AppsPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetRelationshipsOk() (*V3AppsPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3AppsPostRequest) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsPostRequestRelationships and assigns it to the Relationships field. +func (o *V3AppsPostRequest) SetRelationships(v V3AppsPostRequestRelationships) { + o.Relationships = &v +} + +// GetSpaceGuid returns the SpaceGuid field value +func (o *V3AppsPostRequest) GetSpaceGuid() string { + if o == nil { + var ret string + return ret + } + + return o.SpaceGuid +} + +// GetSpaceGuidOk returns a tuple with the SpaceGuid field value +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetSpaceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SpaceGuid, true +} + +// SetSpaceGuid sets field value +func (o *V3AppsPostRequest) SetSpaceGuid(v string) { + o.SpaceGuid = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *V3AppsPostRequest) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequest) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *V3AppsPostRequest) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *V3AppsPostRequest) SetState(v string) { + o.State = &v +} + +func (o V3AppsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EnvironmentVariables) { + toSerialize["environment_variables"] = o.EnvironmentVariables + } + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["name"] = o.Name + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + toSerialize["space_guid"] = o.SpaceGuid + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + return toSerialize, nil +} + +func (o *V3AppsPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "space_guid", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3AppsPostRequest := _V3AppsPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3AppsPostRequest) + + if err != nil { + return err + } + + *o = V3AppsPostRequest(varV3AppsPostRequest) + + return err +} + +type NullableV3AppsPostRequest struct { + value *V3AppsPostRequest + isSet bool +} + +func (v NullableV3AppsPostRequest) Get() *V3AppsPostRequest { + return v.value +} + +func (v *NullableV3AppsPostRequest) Set(val *V3AppsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequest(val *V3AppsPostRequest) *NullableV3AppsPostRequest { + return &NullableV3AppsPostRequest{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request_lifecycle.go b/model__v3_apps_post_request_lifecycle.go new file mode 100644 index 0000000..621cbe5 --- /dev/null +++ b/model__v3_apps_post_request_lifecycle.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsPostRequestLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequestLifecycle{} + +// V3AppsPostRequestLifecycle Lifecycle of the app. +type V3AppsPostRequestLifecycle struct { + Data *V3AppsPostRequestLifecycleData `json:"data,omitempty"` + // Type of lifecycle. + Type *string `json:"type,omitempty"` +} + +// NewV3AppsPostRequestLifecycle instantiates a new V3AppsPostRequestLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequestLifecycle() *V3AppsPostRequestLifecycle { + this := V3AppsPostRequestLifecycle{} + return &this +} + +// NewV3AppsPostRequestLifecycleWithDefaults instantiates a new V3AppsPostRequestLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestLifecycleWithDefaults() *V3AppsPostRequestLifecycle { + this := V3AppsPostRequestLifecycle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsPostRequestLifecycle) GetData() V3AppsPostRequestLifecycleData { + if o == nil || IsNil(o.Data) { + var ret V3AppsPostRequestLifecycleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestLifecycle) GetDataOk() (*V3AppsPostRequestLifecycleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsPostRequestLifecycle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsPostRequestLifecycleData and assigns it to the Data field. +func (o *V3AppsPostRequestLifecycle) SetData(v V3AppsPostRequestLifecycleData) { + o.Data = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3AppsPostRequestLifecycle) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestLifecycle) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3AppsPostRequestLifecycle) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3AppsPostRequestLifecycle) SetType(v string) { + o.Type = &v +} + +func (o V3AppsPostRequestLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequestLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3AppsPostRequestLifecycle struct { + value *V3AppsPostRequestLifecycle + isSet bool +} + +func (v NullableV3AppsPostRequestLifecycle) Get() *V3AppsPostRequestLifecycle { + return v.value +} + +func (v *NullableV3AppsPostRequestLifecycle) Set(val *V3AppsPostRequestLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequestLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequestLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequestLifecycle(val *V3AppsPostRequestLifecycle) *NullableV3AppsPostRequestLifecycle { + return &NullableV3AppsPostRequestLifecycle{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequestLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequestLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request_lifecycle_data.go b/model__v3_apps_post_request_lifecycle_data.go new file mode 100644 index 0000000..a7ef4c9 --- /dev/null +++ b/model__v3_apps_post_request_lifecycle_data.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsPostRequestLifecycleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequestLifecycleData{} + +// V3AppsPostRequestLifecycleData Lifecycle data. +type V3AppsPostRequestLifecycleData struct { + // List of buildpacks. + Buildpacks []string `json:"buildpacks,omitempty"` +} + +// NewV3AppsPostRequestLifecycleData instantiates a new V3AppsPostRequestLifecycleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequestLifecycleData() *V3AppsPostRequestLifecycleData { + this := V3AppsPostRequestLifecycleData{} + return &this +} + +// NewV3AppsPostRequestLifecycleDataWithDefaults instantiates a new V3AppsPostRequestLifecycleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestLifecycleDataWithDefaults() *V3AppsPostRequestLifecycleData { + this := V3AppsPostRequestLifecycleData{} + return &this +} + +// GetBuildpacks returns the Buildpacks field value if set, zero value otherwise. +func (o *V3AppsPostRequestLifecycleData) GetBuildpacks() []string { + if o == nil || IsNil(o.Buildpacks) { + var ret []string + return ret + } + return o.Buildpacks +} + +// GetBuildpacksOk returns a tuple with the Buildpacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestLifecycleData) GetBuildpacksOk() ([]string, bool) { + if o == nil || IsNil(o.Buildpacks) { + return nil, false + } + return o.Buildpacks, true +} + +// HasBuildpacks returns a boolean if a field has been set. +func (o *V3AppsPostRequestLifecycleData) HasBuildpacks() bool { + if o != nil && !IsNil(o.Buildpacks) { + return true + } + + return false +} + +// SetBuildpacks gets a reference to the given []string and assigns it to the Buildpacks field. +func (o *V3AppsPostRequestLifecycleData) SetBuildpacks(v []string) { + o.Buildpacks = v +} + +func (o V3AppsPostRequestLifecycleData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequestLifecycleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Buildpacks) { + toSerialize["buildpacks"] = o.Buildpacks + } + return toSerialize, nil +} + +type NullableV3AppsPostRequestLifecycleData struct { + value *V3AppsPostRequestLifecycleData + isSet bool +} + +func (v NullableV3AppsPostRequestLifecycleData) Get() *V3AppsPostRequestLifecycleData { + return v.value +} + +func (v *NullableV3AppsPostRequestLifecycleData) Set(val *V3AppsPostRequestLifecycleData) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequestLifecycleData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequestLifecycleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequestLifecycleData(val *V3AppsPostRequestLifecycleData) *NullableV3AppsPostRequestLifecycleData { + return &NullableV3AppsPostRequestLifecycleData{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequestLifecycleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequestLifecycleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request_relationships.go b/model__v3_apps_post_request_relationships.go new file mode 100644 index 0000000..6b11858 --- /dev/null +++ b/model__v3_apps_post_request_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequestRelationships{} + +// V3AppsPostRequestRelationships Relationships of the app. +type V3AppsPostRequestRelationships struct { + Space *V3AppsPostRequestRelationshipsSpace `json:"space,omitempty"` +} + +// NewV3AppsPostRequestRelationships instantiates a new V3AppsPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequestRelationships() *V3AppsPostRequestRelationships { + this := V3AppsPostRequestRelationships{} + return &this +} + +// NewV3AppsPostRequestRelationshipsWithDefaults instantiates a new V3AppsPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestRelationshipsWithDefaults() *V3AppsPostRequestRelationships { + this := V3AppsPostRequestRelationships{} + return &this +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *V3AppsPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *V3AppsPostRequestRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Space field. +func (o *V3AppsPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace) { + o.Space = &v +} + +func (o V3AppsPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableV3AppsPostRequestRelationships struct { + value *V3AppsPostRequestRelationships + isSet bool +} + +func (v NullableV3AppsPostRequestRelationships) Get() *V3AppsPostRequestRelationships { + return v.value +} + +func (v *NullableV3AppsPostRequestRelationships) Set(val *V3AppsPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequestRelationships(val *V3AppsPostRequestRelationships) *NullableV3AppsPostRequestRelationships { + return &NullableV3AppsPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request_relationships_space.go b/model__v3_apps_post_request_relationships_space.go new file mode 100644 index 0000000..9ed3033 --- /dev/null +++ b/model__v3_apps_post_request_relationships_space.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsPostRequestRelationshipsSpace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequestRelationshipsSpace{} + +// V3AppsPostRequestRelationshipsSpace struct for V3AppsPostRequestRelationshipsSpace +type V3AppsPostRequestRelationshipsSpace struct { + Data *V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` +} + +// NewV3AppsPostRequestRelationshipsSpace instantiates a new V3AppsPostRequestRelationshipsSpace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequestRelationshipsSpace() *V3AppsPostRequestRelationshipsSpace { + this := V3AppsPostRequestRelationshipsSpace{} + return &this +} + +// NewV3AppsPostRequestRelationshipsSpaceWithDefaults instantiates a new V3AppsPostRequestRelationshipsSpace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestRelationshipsSpaceWithDefaults() *V3AppsPostRequestRelationshipsSpace { + this := V3AppsPostRequestRelationshipsSpace{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3AppsPostRequestRelationshipsSpace) GetData() V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret V3AppsPostRequestRelationshipsSpaceData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestRelationshipsSpace) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3AppsPostRequestRelationshipsSpace) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3AppsPostRequestRelationshipsSpace) SetData(v V3AppsPostRequestRelationshipsSpaceData) { + o.Data = &v +} + +func (o V3AppsPostRequestRelationshipsSpace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequestRelationshipsSpace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3AppsPostRequestRelationshipsSpace struct { + value *V3AppsPostRequestRelationshipsSpace + isSet bool +} + +func (v NullableV3AppsPostRequestRelationshipsSpace) Get() *V3AppsPostRequestRelationshipsSpace { + return v.value +} + +func (v *NullableV3AppsPostRequestRelationshipsSpace) Set(val *V3AppsPostRequestRelationshipsSpace) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequestRelationshipsSpace) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequestRelationshipsSpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequestRelationshipsSpace(val *V3AppsPostRequestRelationshipsSpace) *NullableV3AppsPostRequestRelationshipsSpace { + return &NullableV3AppsPostRequestRelationshipsSpace{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequestRelationshipsSpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequestRelationshipsSpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_apps_post_request_relationships_space_data.go b/model__v3_apps_post_request_relationships_space_data.go new file mode 100644 index 0000000..68c2ba4 --- /dev/null +++ b/model__v3_apps_post_request_relationships_space_data.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3AppsPostRequestRelationshipsSpaceData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3AppsPostRequestRelationshipsSpaceData{} + +// V3AppsPostRequestRelationshipsSpaceData struct for V3AppsPostRequestRelationshipsSpaceData +type V3AppsPostRequestRelationshipsSpaceData struct { + Guid *string `json:"guid,omitempty"` +} + +// NewV3AppsPostRequestRelationshipsSpaceData instantiates a new V3AppsPostRequestRelationshipsSpaceData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3AppsPostRequestRelationshipsSpaceData() *V3AppsPostRequestRelationshipsSpaceData { + this := V3AppsPostRequestRelationshipsSpaceData{} + return &this +} + +// NewV3AppsPostRequestRelationshipsSpaceDataWithDefaults instantiates a new V3AppsPostRequestRelationshipsSpaceData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3AppsPostRequestRelationshipsSpaceDataWithDefaults() *V3AppsPostRequestRelationshipsSpaceData { + this := V3AppsPostRequestRelationshipsSpaceData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3AppsPostRequestRelationshipsSpaceData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3AppsPostRequestRelationshipsSpaceData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3AppsPostRequestRelationshipsSpaceData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3AppsPostRequestRelationshipsSpaceData) SetGuid(v string) { + o.Guid = &v +} + +func (o V3AppsPostRequestRelationshipsSpaceData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3AppsPostRequestRelationshipsSpaceData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3AppsPostRequestRelationshipsSpaceData struct { + value *V3AppsPostRequestRelationshipsSpaceData + isSet bool +} + +func (v NullableV3AppsPostRequestRelationshipsSpaceData) Get() *V3AppsPostRequestRelationshipsSpaceData { + return v.value +} + +func (v *NullableV3AppsPostRequestRelationshipsSpaceData) Set(val *V3AppsPostRequestRelationshipsSpaceData) { + v.value = val + v.isSet = true +} + +func (v NullableV3AppsPostRequestRelationshipsSpaceData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3AppsPostRequestRelationshipsSpaceData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3AppsPostRequestRelationshipsSpaceData(val *V3AppsPostRequestRelationshipsSpaceData) *NullableV3AppsPostRequestRelationshipsSpaceData { + return &NullableV3AppsPostRequestRelationshipsSpaceData{value: val, isSet: true} +} + +func (v NullableV3AppsPostRequestRelationshipsSpaceData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3AppsPostRequestRelationshipsSpaceData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains__guid__patch_request.go b/model__v3_domains__guid__patch_request.go new file mode 100644 index 0000000..acde4a4 --- /dev/null +++ b/model__v3_domains__guid__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsGuidPatchRequest{} + +// V3DomainsGuidPatchRequest struct for V3DomainsGuidPatchRequest +type V3DomainsGuidPatchRequest struct { + Metadata *V3DomainsPostRequestMetadata `json:"metadata,omitempty"` +} + +// NewV3DomainsGuidPatchRequest instantiates a new V3DomainsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsGuidPatchRequest() *V3DomainsGuidPatchRequest { + this := V3DomainsGuidPatchRequest{} + return &this +} + +// NewV3DomainsGuidPatchRequestWithDefaults instantiates a new V3DomainsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsGuidPatchRequestWithDefaults() *V3DomainsGuidPatchRequest { + this := V3DomainsGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3DomainsGuidPatchRequest) GetMetadata() V3DomainsPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3DomainsPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGuidPatchRequest) GetMetadataOk() (*V3DomainsPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3DomainsGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3DomainsPostRequestMetadata and assigns it to the Metadata field. +func (o *V3DomainsGuidPatchRequest) SetMetadata(v V3DomainsPostRequestMetadata) { + o.Metadata = &v +} + +func (o V3DomainsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3DomainsGuidPatchRequest struct { + value *V3DomainsGuidPatchRequest + isSet bool +} + +func (v NullableV3DomainsGuidPatchRequest) Get() *V3DomainsGuidPatchRequest { + return v.value +} + +func (v *NullableV3DomainsGuidPatchRequest) Set(val *V3DomainsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsGuidPatchRequest(val *V3DomainsGuidPatchRequest) *NullableV3DomainsGuidPatchRequest { + return &NullableV3DomainsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3DomainsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains__guid__relationships_shared_organizations_post_200_response.go b/model__v3_domains__guid__relationships_shared_organizations_post_200_response.go new file mode 100644 index 0000000..8cb66ee --- /dev/null +++ b/model__v3_domains__guid__relationships_shared_organizations_post_200_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsGuidRelationshipsSharedOrganizationsPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsGuidRelationshipsSharedOrganizationsPost200Response{} + +// V3DomainsGuidRelationshipsSharedOrganizationsPost200Response struct for V3DomainsGuidRelationshipsSharedOrganizationsPost200Response +type V3DomainsGuidRelationshipsSharedOrganizationsPost200Response struct { + Data []Organization `json:"data,omitempty"` +} + +// NewV3DomainsGuidRelationshipsSharedOrganizationsPost200Response instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsGuidRelationshipsSharedOrganizationsPost200Response() *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response { + this := V3DomainsGuidRelationshipsSharedOrganizationsPost200Response{} + return &this +} + +// NewV3DomainsGuidRelationshipsSharedOrganizationsPost200ResponseWithDefaults instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsGuidRelationshipsSharedOrganizationsPost200ResponseWithDefaults() *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response { + this := V3DomainsGuidRelationshipsSharedOrganizationsPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) GetData() []Organization { + if o == nil || IsNil(o.Data) { + var ret []Organization + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) GetDataOk() ([]Organization, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []Organization and assigns it to the Data field. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) SetData(v []Organization) { + o.Data = v +} + +func (o V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response struct { + value *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response + isSet bool +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) Get() *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response { + return v.value +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) Set(val *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response(val *V3DomainsGuidRelationshipsSharedOrganizationsPost200Response) *NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response { + return &NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response{value: val, isSet: true} +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains__guid__relationships_shared_organizations_post_request.go b/model__v3_domains__guid__relationships_shared_organizations_post_request.go new file mode 100644 index 0000000..d5f0b77 --- /dev/null +++ b/model__v3_domains__guid__relationships_shared_organizations_post_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsGuidRelationshipsSharedOrganizationsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsGuidRelationshipsSharedOrganizationsPostRequest{} + +// V3DomainsGuidRelationshipsSharedOrganizationsPostRequest struct for V3DomainsGuidRelationshipsSharedOrganizationsPostRequest +type V3DomainsGuidRelationshipsSharedOrganizationsPostRequest struct { + Data []V3DomainsPostRequestOrganizationData `json:"data,omitempty"` +} + +// NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequest() *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + this := V3DomainsGuidRelationshipsSharedOrganizationsPostRequest{} + return &this +} + +// NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequestWithDefaults instantiates a new V3DomainsGuidRelationshipsSharedOrganizationsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsGuidRelationshipsSharedOrganizationsPostRequestWithDefaults() *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + this := V3DomainsGuidRelationshipsSharedOrganizationsPostRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) GetData() []V3DomainsPostRequestOrganizationData { + if o == nil || IsNil(o.Data) { + var ret []V3DomainsPostRequestOrganizationData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) GetDataOk() ([]V3DomainsPostRequestOrganizationData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3DomainsPostRequestOrganizationData and assigns it to the Data field. +func (o *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) SetData(v []V3DomainsPostRequestOrganizationData) { + o.Data = v +} + +func (o V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest struct { + value *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest + isSet bool +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) Get() *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + return v.value +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) Set(val *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest(val *V3DomainsGuidRelationshipsSharedOrganizationsPostRequest) *NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest { + return &NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest{value: val, isSet: true} +} + +func (v NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsGuidRelationshipsSharedOrganizationsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_get_200_response.go b/model__v3_domains_get_200_response.go new file mode 100644 index 0000000..ae74dec --- /dev/null +++ b/model__v3_domains_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsGet200Response{} + +// V3DomainsGet200Response struct for V3DomainsGet200Response +type V3DomainsGet200Response struct { + Pagination *V3DomainsGet200ResponsePagination `json:"pagination,omitempty"` + Resources []Domain `json:"resources,omitempty"` +} + +// NewV3DomainsGet200Response instantiates a new V3DomainsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsGet200Response() *V3DomainsGet200Response { + this := V3DomainsGet200Response{} + return &this +} + +// NewV3DomainsGet200ResponseWithDefaults instantiates a new V3DomainsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsGet200ResponseWithDefaults() *V3DomainsGet200Response { + this := V3DomainsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3DomainsGet200Response) GetPagination() V3DomainsGet200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret V3DomainsGet200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200Response) GetPaginationOk() (*V3DomainsGet200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3DomainsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given V3DomainsGet200ResponsePagination and assigns it to the Pagination field. +func (o *V3DomainsGet200Response) SetPagination(v V3DomainsGet200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3DomainsGet200Response) GetResources() []Domain { + if o == nil || IsNil(o.Resources) { + var ret []Domain + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200Response) GetResourcesOk() ([]Domain, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3DomainsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Domain and assigns it to the Resources field. +func (o *V3DomainsGet200Response) SetResources(v []Domain) { + o.Resources = v +} + +func (o V3DomainsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3DomainsGet200Response struct { + value *V3DomainsGet200Response + isSet bool +} + +func (v NullableV3DomainsGet200Response) Get() *V3DomainsGet200Response { + return v.value +} + +func (v *NullableV3DomainsGet200Response) Set(val *V3DomainsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsGet200Response(val *V3DomainsGet200Response) *NullableV3DomainsGet200Response { + return &NullableV3DomainsGet200Response{value: val, isSet: true} +} + +func (v NullableV3DomainsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_get_200_response_pagination.go b/model__v3_domains_get_200_response_pagination.go new file mode 100644 index 0000000..52a702b --- /dev/null +++ b/model__v3_domains_get_200_response_pagination.go @@ -0,0 +1,306 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsGet200ResponsePagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsGet200ResponsePagination{} + +// V3DomainsGet200ResponsePagination struct for V3DomainsGet200ResponsePagination +type V3DomainsGet200ResponsePagination struct { + First *Get200ResponseLinksLogCache `json:"first,omitempty"` + Last *Get200ResponseLinksLogCache `json:"last,omitempty"` + Next *Get200ResponseLinksLogCache `json:"next,omitempty"` + Previous *Get200ResponseLinksLogCache `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewV3DomainsGet200ResponsePagination instantiates a new V3DomainsGet200ResponsePagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsGet200ResponsePagination() *V3DomainsGet200ResponsePagination { + this := V3DomainsGet200ResponsePagination{} + return &this +} + +// NewV3DomainsGet200ResponsePaginationWithDefaults instantiates a new V3DomainsGet200ResponsePagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsGet200ResponsePaginationWithDefaults() *V3DomainsGet200ResponsePagination { + this := V3DomainsGet200ResponsePagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetFirst() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.First) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given Get200ResponseLinksLogCache and assigns it to the First field. +func (o *V3DomainsGet200ResponsePagination) SetFirst(v Get200ResponseLinksLogCache) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetLast() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Last) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetLastOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Last field. +func (o *V3DomainsGet200ResponsePagination) SetLast(v Get200ResponseLinksLogCache) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetNext() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Next) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetNextOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Next field. +func (o *V3DomainsGet200ResponsePagination) SetNext(v Get200ResponseLinksLogCache) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetPrevious() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Previous) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetPreviousOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Previous field. +func (o *V3DomainsGet200ResponsePagination) SetPrevious(v Get200ResponseLinksLogCache) { + o.Previous = &v +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *V3DomainsGet200ResponsePagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *V3DomainsGet200ResponsePagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsGet200ResponsePagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *V3DomainsGet200ResponsePagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *V3DomainsGet200ResponsePagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o V3DomainsGet200ResponsePagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsGet200ResponsePagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableV3DomainsGet200ResponsePagination struct { + value *V3DomainsGet200ResponsePagination + isSet bool +} + +func (v NullableV3DomainsGet200ResponsePagination) Get() *V3DomainsGet200ResponsePagination { + return v.value +} + +func (v *NullableV3DomainsGet200ResponsePagination) Set(val *V3DomainsGet200ResponsePagination) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsGet200ResponsePagination) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsGet200ResponsePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsGet200ResponsePagination(val *V3DomainsGet200ResponsePagination) *NullableV3DomainsGet200ResponsePagination { + return &NullableV3DomainsGet200ResponsePagination{value: val, isSet: true} +} + +func (v NullableV3DomainsGet200ResponsePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsGet200ResponsePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_post_request.go b/model__v3_domains_post_request.go new file mode 100644 index 0000000..6750443 --- /dev/null +++ b/model__v3_domains_post_request.go @@ -0,0 +1,308 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsPostRequest{} + +// V3DomainsPostRequest struct for V3DomainsPostRequest +type V3DomainsPostRequest struct { + // Whether the domain is used for internal traffic + Internal *bool `json:"internal,omitempty"` + Metadata *V3DomainsPostRequestMetadata `json:"metadata,omitempty"` + // Name of the domain + Name *string `json:"name,omitempty"` + Organization *V3DomainsPostRequestOrganization `json:"organization,omitempty"` + RouterGroup *V3DomainsPostRequestRouterGroup `json:"router_group,omitempty"` + SharedOrganizations []V3DomainsPostRequestOrganizationData `json:"shared_organizations,omitempty"` +} + +// NewV3DomainsPostRequest instantiates a new V3DomainsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsPostRequest() *V3DomainsPostRequest { + this := V3DomainsPostRequest{} + return &this +} + +// NewV3DomainsPostRequestWithDefaults instantiates a new V3DomainsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsPostRequestWithDefaults() *V3DomainsPostRequest { + this := V3DomainsPostRequest{} + return &this +} + +// GetInternal returns the Internal field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetInternal() bool { + if o == nil || IsNil(o.Internal) { + var ret bool + return ret + } + return *o.Internal +} + +// GetInternalOk returns a tuple with the Internal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetInternalOk() (*bool, bool) { + if o == nil || IsNil(o.Internal) { + return nil, false + } + return o.Internal, true +} + +// HasInternal returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasInternal() bool { + if o != nil && !IsNil(o.Internal) { + return true + } + + return false +} + +// SetInternal gets a reference to the given bool and assigns it to the Internal field. +func (o *V3DomainsPostRequest) SetInternal(v bool) { + o.Internal = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetMetadata() V3DomainsPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3DomainsPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetMetadataOk() (*V3DomainsPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3DomainsPostRequestMetadata and assigns it to the Metadata field. +func (o *V3DomainsPostRequest) SetMetadata(v V3DomainsPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3DomainsPostRequest) SetName(v string) { + o.Name = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetOrganization() V3DomainsPostRequestOrganization { + if o == nil || IsNil(o.Organization) { + var ret V3DomainsPostRequestOrganization + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetOrganizationOk() (*V3DomainsPostRequestOrganization, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3DomainsPostRequestOrganization and assigns it to the Organization field. +func (o *V3DomainsPostRequest) SetOrganization(v V3DomainsPostRequestOrganization) { + o.Organization = &v +} + +// GetRouterGroup returns the RouterGroup field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetRouterGroup() V3DomainsPostRequestRouterGroup { + if o == nil || IsNil(o.RouterGroup) { + var ret V3DomainsPostRequestRouterGroup + return ret + } + return *o.RouterGroup +} + +// GetRouterGroupOk returns a tuple with the RouterGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetRouterGroupOk() (*V3DomainsPostRequestRouterGroup, bool) { + if o == nil || IsNil(o.RouterGroup) { + return nil, false + } + return o.RouterGroup, true +} + +// HasRouterGroup returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasRouterGroup() bool { + if o != nil && !IsNil(o.RouterGroup) { + return true + } + + return false +} + +// SetRouterGroup gets a reference to the given V3DomainsPostRequestRouterGroup and assigns it to the RouterGroup field. +func (o *V3DomainsPostRequest) SetRouterGroup(v V3DomainsPostRequestRouterGroup) { + o.RouterGroup = &v +} + +// GetSharedOrganizations returns the SharedOrganizations field value if set, zero value otherwise. +func (o *V3DomainsPostRequest) GetSharedOrganizations() []V3DomainsPostRequestOrganizationData { + if o == nil || IsNil(o.SharedOrganizations) { + var ret []V3DomainsPostRequestOrganizationData + return ret + } + return o.SharedOrganizations +} + +// GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequest) GetSharedOrganizationsOk() ([]V3DomainsPostRequestOrganizationData, bool) { + if o == nil || IsNil(o.SharedOrganizations) { + return nil, false + } + return o.SharedOrganizations, true +} + +// HasSharedOrganizations returns a boolean if a field has been set. +func (o *V3DomainsPostRequest) HasSharedOrganizations() bool { + if o != nil && !IsNil(o.SharedOrganizations) { + return true + } + + return false +} + +// SetSharedOrganizations gets a reference to the given []V3DomainsPostRequestOrganizationData and assigns it to the SharedOrganizations field. +func (o *V3DomainsPostRequest) SetSharedOrganizations(v []V3DomainsPostRequestOrganizationData) { + o.SharedOrganizations = v +} + +func (o V3DomainsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Internal) { + toSerialize["internal"] = o.Internal + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.RouterGroup) { + toSerialize["router_group"] = o.RouterGroup + } + if !IsNil(o.SharedOrganizations) { + toSerialize["shared_organizations"] = o.SharedOrganizations + } + return toSerialize, nil +} + +type NullableV3DomainsPostRequest struct { + value *V3DomainsPostRequest + isSet bool +} + +func (v NullableV3DomainsPostRequest) Get() *V3DomainsPostRequest { + return v.value +} + +func (v *NullableV3DomainsPostRequest) Set(val *V3DomainsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsPostRequest(val *V3DomainsPostRequest) *NullableV3DomainsPostRequest { + return &NullableV3DomainsPostRequest{value: val, isSet: true} +} + +func (v NullableV3DomainsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_post_request_metadata.go b/model__v3_domains_post_request_metadata.go new file mode 100644 index 0000000..5211e20 --- /dev/null +++ b/model__v3_domains_post_request_metadata.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsPostRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsPostRequestMetadata{} + +// V3DomainsPostRequestMetadata struct for V3DomainsPostRequestMetadata +type V3DomainsPostRequestMetadata struct { + // Annotations applied to the domain + Annotations map[string]interface{} `json:"annotations,omitempty"` + // Labels applied to the domain + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewV3DomainsPostRequestMetadata instantiates a new V3DomainsPostRequestMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsPostRequestMetadata() *V3DomainsPostRequestMetadata { + this := V3DomainsPostRequestMetadata{} + return &this +} + +// NewV3DomainsPostRequestMetadataWithDefaults instantiates a new V3DomainsPostRequestMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsPostRequestMetadataWithDefaults() *V3DomainsPostRequestMetadata { + this := V3DomainsPostRequestMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3DomainsPostRequestMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequestMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3DomainsPostRequestMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *V3DomainsPostRequestMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3DomainsPostRequestMetadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequestMetadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3DomainsPostRequestMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *V3DomainsPostRequestMetadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o V3DomainsPostRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsPostRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3DomainsPostRequestMetadata struct { + value *V3DomainsPostRequestMetadata + isSet bool +} + +func (v NullableV3DomainsPostRequestMetadata) Get() *V3DomainsPostRequestMetadata { + return v.value +} + +func (v *NullableV3DomainsPostRequestMetadata) Set(val *V3DomainsPostRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsPostRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsPostRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsPostRequestMetadata(val *V3DomainsPostRequestMetadata) *NullableV3DomainsPostRequestMetadata { + return &NullableV3DomainsPostRequestMetadata{value: val, isSet: true} +} + +func (v NullableV3DomainsPostRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsPostRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_post_request_organization.go b/model__v3_domains_post_request_organization.go new file mode 100644 index 0000000..e729c80 --- /dev/null +++ b/model__v3_domains_post_request_organization.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsPostRequestOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsPostRequestOrganization{} + +// V3DomainsPostRequestOrganization struct for V3DomainsPostRequestOrganization +type V3DomainsPostRequestOrganization struct { + Data *V3DomainsPostRequestOrganizationData `json:"data,omitempty"` +} + +// NewV3DomainsPostRequestOrganization instantiates a new V3DomainsPostRequestOrganization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsPostRequestOrganization() *V3DomainsPostRequestOrganization { + this := V3DomainsPostRequestOrganization{} + return &this +} + +// NewV3DomainsPostRequestOrganizationWithDefaults instantiates a new V3DomainsPostRequestOrganization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsPostRequestOrganizationWithDefaults() *V3DomainsPostRequestOrganization { + this := V3DomainsPostRequestOrganization{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3DomainsPostRequestOrganization) GetData() V3DomainsPostRequestOrganizationData { + if o == nil || IsNil(o.Data) { + var ret V3DomainsPostRequestOrganizationData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequestOrganization) GetDataOk() (*V3DomainsPostRequestOrganizationData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3DomainsPostRequestOrganization) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3DomainsPostRequestOrganizationData and assigns it to the Data field. +func (o *V3DomainsPostRequestOrganization) SetData(v V3DomainsPostRequestOrganizationData) { + o.Data = &v +} + +func (o V3DomainsPostRequestOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsPostRequestOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3DomainsPostRequestOrganization struct { + value *V3DomainsPostRequestOrganization + isSet bool +} + +func (v NullableV3DomainsPostRequestOrganization) Get() *V3DomainsPostRequestOrganization { + return v.value +} + +func (v *NullableV3DomainsPostRequestOrganization) Set(val *V3DomainsPostRequestOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsPostRequestOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsPostRequestOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsPostRequestOrganization(val *V3DomainsPostRequestOrganization) *NullableV3DomainsPostRequestOrganization { + return &NullableV3DomainsPostRequestOrganization{value: val, isSet: true} +} + +func (v NullableV3DomainsPostRequestOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsPostRequestOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_post_request_organization_data.go b/model__v3_domains_post_request_organization_data.go new file mode 100644 index 0000000..b35d3d5 --- /dev/null +++ b/model__v3_domains_post_request_organization_data.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsPostRequestOrganizationData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsPostRequestOrganizationData{} + +// V3DomainsPostRequestOrganizationData struct for V3DomainsPostRequestOrganizationData +type V3DomainsPostRequestOrganizationData struct { + // The organization guid + Guid *string `json:"guid,omitempty"` +} + +// NewV3DomainsPostRequestOrganizationData instantiates a new V3DomainsPostRequestOrganizationData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsPostRequestOrganizationData() *V3DomainsPostRequestOrganizationData { + this := V3DomainsPostRequestOrganizationData{} + return &this +} + +// NewV3DomainsPostRequestOrganizationDataWithDefaults instantiates a new V3DomainsPostRequestOrganizationData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsPostRequestOrganizationDataWithDefaults() *V3DomainsPostRequestOrganizationData { + this := V3DomainsPostRequestOrganizationData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3DomainsPostRequestOrganizationData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequestOrganizationData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3DomainsPostRequestOrganizationData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3DomainsPostRequestOrganizationData) SetGuid(v string) { + o.Guid = &v +} + +func (o V3DomainsPostRequestOrganizationData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsPostRequestOrganizationData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3DomainsPostRequestOrganizationData struct { + value *V3DomainsPostRequestOrganizationData + isSet bool +} + +func (v NullableV3DomainsPostRequestOrganizationData) Get() *V3DomainsPostRequestOrganizationData { + return v.value +} + +func (v *NullableV3DomainsPostRequestOrganizationData) Set(val *V3DomainsPostRequestOrganizationData) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsPostRequestOrganizationData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsPostRequestOrganizationData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsPostRequestOrganizationData(val *V3DomainsPostRequestOrganizationData) *NullableV3DomainsPostRequestOrganizationData { + return &NullableV3DomainsPostRequestOrganizationData{value: val, isSet: true} +} + +func (v NullableV3DomainsPostRequestOrganizationData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsPostRequestOrganizationData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_domains_post_request_router_group.go b/model__v3_domains_post_request_router_group.go new file mode 100644 index 0000000..196aeef --- /dev/null +++ b/model__v3_domains_post_request_router_group.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DomainsPostRequestRouterGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DomainsPostRequestRouterGroup{} + +// V3DomainsPostRequestRouterGroup struct for V3DomainsPostRequestRouterGroup +type V3DomainsPostRequestRouterGroup struct { + // The desired router group guid + Guid *string `json:"guid,omitempty"` +} + +// NewV3DomainsPostRequestRouterGroup instantiates a new V3DomainsPostRequestRouterGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DomainsPostRequestRouterGroup() *V3DomainsPostRequestRouterGroup { + this := V3DomainsPostRequestRouterGroup{} + return &this +} + +// NewV3DomainsPostRequestRouterGroupWithDefaults instantiates a new V3DomainsPostRequestRouterGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DomainsPostRequestRouterGroupWithDefaults() *V3DomainsPostRequestRouterGroup { + this := V3DomainsPostRequestRouterGroup{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3DomainsPostRequestRouterGroup) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DomainsPostRequestRouterGroup) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3DomainsPostRequestRouterGroup) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3DomainsPostRequestRouterGroup) SetGuid(v string) { + o.Guid = &v +} + +func (o V3DomainsPostRequestRouterGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DomainsPostRequestRouterGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3DomainsPostRequestRouterGroup struct { + value *V3DomainsPostRequestRouterGroup + isSet bool +} + +func (v NullableV3DomainsPostRequestRouterGroup) Get() *V3DomainsPostRequestRouterGroup { + return v.value +} + +func (v *NullableV3DomainsPostRequestRouterGroup) Set(val *V3DomainsPostRequestRouterGroup) { + v.value = val + v.isSet = true +} + +func (v NullableV3DomainsPostRequestRouterGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DomainsPostRequestRouterGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DomainsPostRequestRouterGroup(val *V3DomainsPostRequestRouterGroup) *NullableV3DomainsPostRequestRouterGroup { + return &NullableV3DomainsPostRequestRouterGroup{value: val, isSet: true} +} + +func (v NullableV3DomainsPostRequestRouterGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DomainsPostRequestRouterGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_droplets_post_request.go b/model__v3_droplets_post_request.go new file mode 100644 index 0000000..f8693e7 --- /dev/null +++ b/model__v3_droplets_post_request.go @@ -0,0 +1,158 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3DropletsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DropletsPostRequest{} + +// V3DropletsPostRequest struct for V3DropletsPostRequest +type V3DropletsPostRequest struct { + Relationships V3DropletsPostRequestRelationships `json:"relationships"` +} + +type _V3DropletsPostRequest V3DropletsPostRequest + +// NewV3DropletsPostRequest instantiates a new V3DropletsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DropletsPostRequest(relationships V3DropletsPostRequestRelationships) *V3DropletsPostRequest { + this := V3DropletsPostRequest{} + this.Relationships = relationships + return &this +} + +// NewV3DropletsPostRequestWithDefaults instantiates a new V3DropletsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DropletsPostRequestWithDefaults() *V3DropletsPostRequest { + this := V3DropletsPostRequest{} + return &this +} + +// GetRelationships returns the Relationships field value +func (o *V3DropletsPostRequest) GetRelationships() V3DropletsPostRequestRelationships { + if o == nil { + var ret V3DropletsPostRequestRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *V3DropletsPostRequest) GetRelationshipsOk() (*V3DropletsPostRequestRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *V3DropletsPostRequest) SetRelationships(v V3DropletsPostRequestRelationships) { + o.Relationships = v +} + +func (o V3DropletsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DropletsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["relationships"] = o.Relationships + return toSerialize, nil +} + +func (o *V3DropletsPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "relationships", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3DropletsPostRequest := _V3DropletsPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3DropletsPostRequest) + + if err != nil { + return err + } + + *o = V3DropletsPostRequest(varV3DropletsPostRequest) + + return err +} + +type NullableV3DropletsPostRequest struct { + value *V3DropletsPostRequest + isSet bool +} + +func (v NullableV3DropletsPostRequest) Get() *V3DropletsPostRequest { + return v.value +} + +func (v *NullableV3DropletsPostRequest) Set(val *V3DropletsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3DropletsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DropletsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DropletsPostRequest(val *V3DropletsPostRequest) *NullableV3DropletsPostRequest { + return &NullableV3DropletsPostRequest{value: val, isSet: true} +} + +func (v NullableV3DropletsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DropletsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_droplets_post_request_relationships.go b/model__v3_droplets_post_request_relationships.go new file mode 100644 index 0000000..cd3086a --- /dev/null +++ b/model__v3_droplets_post_request_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DropletsPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DropletsPostRequestRelationships{} + +// V3DropletsPostRequestRelationships struct for V3DropletsPostRequestRelationships +type V3DropletsPostRequestRelationships struct { + App *V3DropletsPostRequestRelationshipsApp `json:"app,omitempty"` +} + +// NewV3DropletsPostRequestRelationships instantiates a new V3DropletsPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DropletsPostRequestRelationships() *V3DropletsPostRequestRelationships { + this := V3DropletsPostRequestRelationships{} + return &this +} + +// NewV3DropletsPostRequestRelationshipsWithDefaults instantiates a new V3DropletsPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DropletsPostRequestRelationshipsWithDefaults() *V3DropletsPostRequestRelationships { + this := V3DropletsPostRequestRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V3DropletsPostRequestRelationships) GetApp() V3DropletsPostRequestRelationshipsApp { + if o == nil || IsNil(o.App) { + var ret V3DropletsPostRequestRelationshipsApp + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DropletsPostRequestRelationships) GetAppOk() (*V3DropletsPostRequestRelationshipsApp, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *V3DropletsPostRequestRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3DropletsPostRequestRelationshipsApp and assigns it to the App field. +func (o *V3DropletsPostRequestRelationships) SetApp(v V3DropletsPostRequestRelationshipsApp) { + o.App = &v +} + +func (o V3DropletsPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DropletsPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + return toSerialize, nil +} + +type NullableV3DropletsPostRequestRelationships struct { + value *V3DropletsPostRequestRelationships + isSet bool +} + +func (v NullableV3DropletsPostRequestRelationships) Get() *V3DropletsPostRequestRelationships { + return v.value +} + +func (v *NullableV3DropletsPostRequestRelationships) Set(val *V3DropletsPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3DropletsPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DropletsPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DropletsPostRequestRelationships(val *V3DropletsPostRequestRelationships) *NullableV3DropletsPostRequestRelationships { + return &NullableV3DropletsPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3DropletsPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DropletsPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_droplets_post_request_relationships_app.go b/model__v3_droplets_post_request_relationships_app.go new file mode 100644 index 0000000..2b56540 --- /dev/null +++ b/model__v3_droplets_post_request_relationships_app.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DropletsPostRequestRelationshipsApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DropletsPostRequestRelationshipsApp{} + +// V3DropletsPostRequestRelationshipsApp struct for V3DropletsPostRequestRelationshipsApp +type V3DropletsPostRequestRelationshipsApp struct { + Data *V3DropletsPostRequestRelationshipsAppData `json:"data,omitempty"` +} + +// NewV3DropletsPostRequestRelationshipsApp instantiates a new V3DropletsPostRequestRelationshipsApp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DropletsPostRequestRelationshipsApp() *V3DropletsPostRequestRelationshipsApp { + this := V3DropletsPostRequestRelationshipsApp{} + return &this +} + +// NewV3DropletsPostRequestRelationshipsAppWithDefaults instantiates a new V3DropletsPostRequestRelationshipsApp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DropletsPostRequestRelationshipsAppWithDefaults() *V3DropletsPostRequestRelationshipsApp { + this := V3DropletsPostRequestRelationshipsApp{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3DropletsPostRequestRelationshipsApp) GetData() V3DropletsPostRequestRelationshipsAppData { + if o == nil || IsNil(o.Data) { + var ret V3DropletsPostRequestRelationshipsAppData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DropletsPostRequestRelationshipsApp) GetDataOk() (*V3DropletsPostRequestRelationshipsAppData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3DropletsPostRequestRelationshipsApp) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3DropletsPostRequestRelationshipsAppData and assigns it to the Data field. +func (o *V3DropletsPostRequestRelationshipsApp) SetData(v V3DropletsPostRequestRelationshipsAppData) { + o.Data = &v +} + +func (o V3DropletsPostRequestRelationshipsApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DropletsPostRequestRelationshipsApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3DropletsPostRequestRelationshipsApp struct { + value *V3DropletsPostRequestRelationshipsApp + isSet bool +} + +func (v NullableV3DropletsPostRequestRelationshipsApp) Get() *V3DropletsPostRequestRelationshipsApp { + return v.value +} + +func (v *NullableV3DropletsPostRequestRelationshipsApp) Set(val *V3DropletsPostRequestRelationshipsApp) { + v.value = val + v.isSet = true +} + +func (v NullableV3DropletsPostRequestRelationshipsApp) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DropletsPostRequestRelationshipsApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DropletsPostRequestRelationshipsApp(val *V3DropletsPostRequestRelationshipsApp) *NullableV3DropletsPostRequestRelationshipsApp { + return &NullableV3DropletsPostRequestRelationshipsApp{value: val, isSet: true} +} + +func (v NullableV3DropletsPostRequestRelationshipsApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DropletsPostRequestRelationshipsApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_droplets_post_request_relationships_app_data.go b/model__v3_droplets_post_request_relationships_app_data.go new file mode 100644 index 0000000..be4d07b --- /dev/null +++ b/model__v3_droplets_post_request_relationships_app_data.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3DropletsPostRequestRelationshipsAppData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3DropletsPostRequestRelationshipsAppData{} + +// V3DropletsPostRequestRelationshipsAppData struct for V3DropletsPostRequestRelationshipsAppData +type V3DropletsPostRequestRelationshipsAppData struct { + Guid *string `json:"guid,omitempty"` +} + +// NewV3DropletsPostRequestRelationshipsAppData instantiates a new V3DropletsPostRequestRelationshipsAppData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3DropletsPostRequestRelationshipsAppData() *V3DropletsPostRequestRelationshipsAppData { + this := V3DropletsPostRequestRelationshipsAppData{} + return &this +} + +// NewV3DropletsPostRequestRelationshipsAppDataWithDefaults instantiates a new V3DropletsPostRequestRelationshipsAppData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3DropletsPostRequestRelationshipsAppDataWithDefaults() *V3DropletsPostRequestRelationshipsAppData { + this := V3DropletsPostRequestRelationshipsAppData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3DropletsPostRequestRelationshipsAppData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3DropletsPostRequestRelationshipsAppData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3DropletsPostRequestRelationshipsAppData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3DropletsPostRequestRelationshipsAppData) SetGuid(v string) { + o.Guid = &v +} + +func (o V3DropletsPostRequestRelationshipsAppData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3DropletsPostRequestRelationshipsAppData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3DropletsPostRequestRelationshipsAppData struct { + value *V3DropletsPostRequestRelationshipsAppData + isSet bool +} + +func (v NullableV3DropletsPostRequestRelationshipsAppData) Get() *V3DropletsPostRequestRelationshipsAppData { + return v.value +} + +func (v *NullableV3DropletsPostRequestRelationshipsAppData) Set(val *V3DropletsPostRequestRelationshipsAppData) { + v.value = val + v.isSet = true +} + +func (v NullableV3DropletsPostRequestRelationshipsAppData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3DropletsPostRequestRelationshipsAppData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3DropletsPostRequestRelationshipsAppData(val *V3DropletsPostRequestRelationshipsAppData) *NullableV3DropletsPostRequestRelationshipsAppData { + return &NullableV3DropletsPostRequestRelationshipsAppData{value: val, isSet: true} +} + +func (v NullableV3DropletsPostRequestRelationshipsAppData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3DropletsPostRequestRelationshipsAppData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_environment_variable_groups__name__patch_request.go b/model__v3_environment_variable_groups__name__patch_request.go new file mode 100644 index 0000000..1ae391a --- /dev/null +++ b/model__v3_environment_variable_groups__name__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3EnvironmentVariableGroupsNamePatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3EnvironmentVariableGroupsNamePatchRequest{} + +// V3EnvironmentVariableGroupsNamePatchRequest struct for V3EnvironmentVariableGroupsNamePatchRequest +type V3EnvironmentVariableGroupsNamePatchRequest struct { + Var *map[string]string `json:"var,omitempty"` +} + +// NewV3EnvironmentVariableGroupsNamePatchRequest instantiates a new V3EnvironmentVariableGroupsNamePatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3EnvironmentVariableGroupsNamePatchRequest() *V3EnvironmentVariableGroupsNamePatchRequest { + this := V3EnvironmentVariableGroupsNamePatchRequest{} + return &this +} + +// NewV3EnvironmentVariableGroupsNamePatchRequestWithDefaults instantiates a new V3EnvironmentVariableGroupsNamePatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3EnvironmentVariableGroupsNamePatchRequestWithDefaults() *V3EnvironmentVariableGroupsNamePatchRequest { + this := V3EnvironmentVariableGroupsNamePatchRequest{} + return &this +} + +// GetVar returns the Var field value if set, zero value otherwise. +func (o *V3EnvironmentVariableGroupsNamePatchRequest) GetVar() map[string]string { + if o == nil || IsNil(o.Var) { + var ret map[string]string + return ret + } + return *o.Var +} + +// GetVarOk returns a tuple with the Var field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3EnvironmentVariableGroupsNamePatchRequest) GetVarOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Var) { + return nil, false + } + return o.Var, true +} + +// HasVar returns a boolean if a field has been set. +func (o *V3EnvironmentVariableGroupsNamePatchRequest) HasVar() bool { + if o != nil && !IsNil(o.Var) { + return true + } + + return false +} + +// SetVar gets a reference to the given map[string]string and assigns it to the Var field. +func (o *V3EnvironmentVariableGroupsNamePatchRequest) SetVar(v map[string]string) { + o.Var = &v +} + +func (o V3EnvironmentVariableGroupsNamePatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3EnvironmentVariableGroupsNamePatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Var) { + toSerialize["var"] = o.Var + } + return toSerialize, nil +} + +type NullableV3EnvironmentVariableGroupsNamePatchRequest struct { + value *V3EnvironmentVariableGroupsNamePatchRequest + isSet bool +} + +func (v NullableV3EnvironmentVariableGroupsNamePatchRequest) Get() *V3EnvironmentVariableGroupsNamePatchRequest { + return v.value +} + +func (v *NullableV3EnvironmentVariableGroupsNamePatchRequest) Set(val *V3EnvironmentVariableGroupsNamePatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3EnvironmentVariableGroupsNamePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3EnvironmentVariableGroupsNamePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3EnvironmentVariableGroupsNamePatchRequest(val *V3EnvironmentVariableGroupsNamePatchRequest) *NullableV3EnvironmentVariableGroupsNamePatchRequest { + return &NullableV3EnvironmentVariableGroupsNamePatchRequest{value: val, isSet: true} +} + +func (v NullableV3EnvironmentVariableGroupsNamePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3EnvironmentVariableGroupsNamePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_feature_flags__name__patch_request.go b/model__v3_feature_flags__name__patch_request.go new file mode 100644 index 0000000..fdcb242 --- /dev/null +++ b/model__v3_feature_flags__name__patch_request.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3FeatureFlagsNamePatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3FeatureFlagsNamePatchRequest{} + +// V3FeatureFlagsNamePatchRequest struct for V3FeatureFlagsNamePatchRequest +type V3FeatureFlagsNamePatchRequest struct { + CustomErrorMessage *string `json:"custom_error_message,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// NewV3FeatureFlagsNamePatchRequest instantiates a new V3FeatureFlagsNamePatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3FeatureFlagsNamePatchRequest() *V3FeatureFlagsNamePatchRequest { + this := V3FeatureFlagsNamePatchRequest{} + return &this +} + +// NewV3FeatureFlagsNamePatchRequestWithDefaults instantiates a new V3FeatureFlagsNamePatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3FeatureFlagsNamePatchRequestWithDefaults() *V3FeatureFlagsNamePatchRequest { + this := V3FeatureFlagsNamePatchRequest{} + return &this +} + +// GetCustomErrorMessage returns the CustomErrorMessage field value if set, zero value otherwise. +func (o *V3FeatureFlagsNamePatchRequest) GetCustomErrorMessage() string { + if o == nil || IsNil(o.CustomErrorMessage) { + var ret string + return ret + } + return *o.CustomErrorMessage +} + +// GetCustomErrorMessageOk returns a tuple with the CustomErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3FeatureFlagsNamePatchRequest) GetCustomErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.CustomErrorMessage) { + return nil, false + } + return o.CustomErrorMessage, true +} + +// HasCustomErrorMessage returns a boolean if a field has been set. +func (o *V3FeatureFlagsNamePatchRequest) HasCustomErrorMessage() bool { + if o != nil && !IsNil(o.CustomErrorMessage) { + return true + } + + return false +} + +// SetCustomErrorMessage gets a reference to the given string and assigns it to the CustomErrorMessage field. +func (o *V3FeatureFlagsNamePatchRequest) SetCustomErrorMessage(v string) { + o.CustomErrorMessage = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *V3FeatureFlagsNamePatchRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3FeatureFlagsNamePatchRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *V3FeatureFlagsNamePatchRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *V3FeatureFlagsNamePatchRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o V3FeatureFlagsNamePatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3FeatureFlagsNamePatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomErrorMessage) { + toSerialize["custom_error_message"] = o.CustomErrorMessage + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableV3FeatureFlagsNamePatchRequest struct { + value *V3FeatureFlagsNamePatchRequest + isSet bool +} + +func (v NullableV3FeatureFlagsNamePatchRequest) Get() *V3FeatureFlagsNamePatchRequest { + return v.value +} + +func (v *NullableV3FeatureFlagsNamePatchRequest) Set(val *V3FeatureFlagsNamePatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3FeatureFlagsNamePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3FeatureFlagsNamePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3FeatureFlagsNamePatchRequest(val *V3FeatureFlagsNamePatchRequest) *NullableV3FeatureFlagsNamePatchRequest { + return &NullableV3FeatureFlagsNamePatchRequest{value: val, isSet: true} +} + +func (v NullableV3FeatureFlagsNamePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3FeatureFlagsNamePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_feature_flags_get_200_response.go b/model__v3_feature_flags_get_200_response.go new file mode 100644 index 0000000..c16a034 --- /dev/null +++ b/model__v3_feature_flags_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3FeatureFlagsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3FeatureFlagsGet200Response{} + +// V3FeatureFlagsGet200Response struct for V3FeatureFlagsGet200Response +type V3FeatureFlagsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []FeatureFlag `json:"resources,omitempty"` +} + +// NewV3FeatureFlagsGet200Response instantiates a new V3FeatureFlagsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3FeatureFlagsGet200Response() *V3FeatureFlagsGet200Response { + this := V3FeatureFlagsGet200Response{} + return &this +} + +// NewV3FeatureFlagsGet200ResponseWithDefaults instantiates a new V3FeatureFlagsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3FeatureFlagsGet200ResponseWithDefaults() *V3FeatureFlagsGet200Response { + this := V3FeatureFlagsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3FeatureFlagsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3FeatureFlagsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3FeatureFlagsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3FeatureFlagsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3FeatureFlagsGet200Response) GetResources() []FeatureFlag { + if o == nil || IsNil(o.Resources) { + var ret []FeatureFlag + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3FeatureFlagsGet200Response) GetResourcesOk() ([]FeatureFlag, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3FeatureFlagsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []FeatureFlag and assigns it to the Resources field. +func (o *V3FeatureFlagsGet200Response) SetResources(v []FeatureFlag) { + o.Resources = v +} + +func (o V3FeatureFlagsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3FeatureFlagsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3FeatureFlagsGet200Response struct { + value *V3FeatureFlagsGet200Response + isSet bool +} + +func (v NullableV3FeatureFlagsGet200Response) Get() *V3FeatureFlagsGet200Response { + return v.value +} + +func (v *NullableV3FeatureFlagsGet200Response) Set(val *V3FeatureFlagsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3FeatureFlagsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3FeatureFlagsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3FeatureFlagsGet200Response(val *V3FeatureFlagsGet200Response) *NullableV3FeatureFlagsGet200Response { + return &NullableV3FeatureFlagsGet200Response{value: val, isSet: true} +} + +func (v NullableV3FeatureFlagsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3FeatureFlagsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_get_200_response.go b/model__v3_get_200_response.go new file mode 100644 index 0000000..edcc7ac --- /dev/null +++ b/model__v3_get_200_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3Get200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3Get200Response{} + +// V3Get200Response struct for V3Get200Response +type V3Get200Response struct { + Links *V3Get200ResponseLinks `json:"links,omitempty"` +} + +// NewV3Get200Response instantiates a new V3Get200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3Get200Response() *V3Get200Response { + this := V3Get200Response{} + return &this +} + +// NewV3Get200ResponseWithDefaults instantiates a new V3Get200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3Get200ResponseWithDefaults() *V3Get200Response { + this := V3Get200Response{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3Get200Response) GetLinks() V3Get200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3Get200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200Response) GetLinksOk() (*V3Get200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3Get200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3Get200ResponseLinks and assigns it to the Links field. +func (o *V3Get200Response) SetLinks(v V3Get200ResponseLinks) { + o.Links = &v +} + +func (o V3Get200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3Get200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableV3Get200Response struct { + value *V3Get200Response + isSet bool +} + +func (v NullableV3Get200Response) Get() *V3Get200Response { + return v.value +} + +func (v *NullableV3Get200Response) Set(val *V3Get200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3Get200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3Get200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3Get200Response(val *V3Get200Response) *NullableV3Get200Response { + return &NullableV3Get200Response{value: val, isSet: true} +} + +func (v NullableV3Get200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3Get200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_get_200_response_links.go b/model__v3_get_200_response_links.go new file mode 100644 index 0000000..4127b6e --- /dev/null +++ b/model__v3_get_200_response_links.go @@ -0,0 +1,1216 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3Get200ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3Get200ResponseLinks{} + +// V3Get200ResponseLinks struct for V3Get200ResponseLinks +type V3Get200ResponseLinks struct { + AppUsageEvents *Get200ResponseLinksLogCache `json:"app_usage_events,omitempty"` + Apps *Get200ResponseLinksLogCache `json:"apps,omitempty"` + AuditEvents *Get200ResponseLinksLogCache `json:"audit_events,omitempty"` + Buildpacks *Get200ResponseLinksLogCache `json:"buildpacks,omitempty"` + Builds *Get200ResponseLinksLogCache `json:"builds,omitempty"` + Deployments *Get200ResponseLinksLogCache `json:"deployments,omitempty"` + Domains *Get200ResponseLinksLogCache `json:"domains,omitempty"` + Droplets *Get200ResponseLinksLogCache `json:"droplets,omitempty"` + EnvironmentVariableGroups *Get200ResponseLinksLogCache `json:"environment_variable_groups,omitempty"` + FeatureFlags *Get200ResponseLinksLogCache `json:"feature_flags,omitempty"` + Info *Get200ResponseLinksLogCache `json:"info,omitempty"` + IsolationSegments *Get200ResponseLinksLogCache `json:"isolation_segments,omitempty"` + OrganizationQuotas *Get200ResponseLinksLogCache `json:"organization_quotas,omitempty"` + Organizations *Get200ResponseLinksLogCache `json:"organizations,omitempty"` + Packages *Get200ResponseLinksLogCache `json:"packages,omitempty"` + Processes *Get200ResponseLinksLogCache `json:"processes,omitempty"` + ResourceMatches *Get200ResponseLinksLogCache `json:"resource_matches,omitempty"` + Roles *Get200ResponseLinksLogCache `json:"roles,omitempty"` + Routes *Get200ResponseLinksLogCache `json:"routes,omitempty"` + SecurityGroups *Get200ResponseLinksLogCache `json:"security_groups,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + ServiceBrokers *Get200ResponseLinksLogCache `json:"service_brokers,omitempty"` + ServiceInstances NullableV3Get200ResponseLinksServiceInstances `json:"service_instances,omitempty"` + ServiceOfferings *Get200ResponseLinksLogCache `json:"service_offerings,omitempty"` + ServicePlans *Get200ResponseLinksLogCache `json:"service_plans,omitempty"` + ServiceUsageEvents *Get200ResponseLinksLogCache `json:"service_usage_events,omitempty"` + SpaceQuotas *Get200ResponseLinksLogCache `json:"space_quotas,omitempty"` + Spaces *Get200ResponseLinksLogCache `json:"spaces,omitempty"` + Stacks *Get200ResponseLinksLogCache `json:"stacks,omitempty"` + Tasks *Get200ResponseLinksLogCache `json:"tasks,omitempty"` + Users *Get200ResponseLinksLogCache `json:"users,omitempty"` +} + +// NewV3Get200ResponseLinks instantiates a new V3Get200ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3Get200ResponseLinks() *V3Get200ResponseLinks { + this := V3Get200ResponseLinks{} + return &this +} + +// NewV3Get200ResponseLinksWithDefaults instantiates a new V3Get200ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3Get200ResponseLinksWithDefaults() *V3Get200ResponseLinks { + this := V3Get200ResponseLinks{} + return &this +} + +// GetAppUsageEvents returns the AppUsageEvents field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetAppUsageEvents() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.AppUsageEvents) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.AppUsageEvents +} + +// GetAppUsageEventsOk returns a tuple with the AppUsageEvents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetAppUsageEventsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.AppUsageEvents) { + return nil, false + } + return o.AppUsageEvents, true +} + +// HasAppUsageEvents returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasAppUsageEvents() bool { + if o != nil && !IsNil(o.AppUsageEvents) { + return true + } + + return false +} + +// SetAppUsageEvents gets a reference to the given Get200ResponseLinksLogCache and assigns it to the AppUsageEvents field. +func (o *V3Get200ResponseLinks) SetAppUsageEvents(v Get200ResponseLinksLogCache) { + o.AppUsageEvents = &v +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetApps() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Apps) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetAppsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Apps field. +func (o *V3Get200ResponseLinks) SetApps(v Get200ResponseLinksLogCache) { + o.Apps = &v +} + +// GetAuditEvents returns the AuditEvents field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetAuditEvents() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.AuditEvents) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.AuditEvents +} + +// GetAuditEventsOk returns a tuple with the AuditEvents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetAuditEventsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.AuditEvents) { + return nil, false + } + return o.AuditEvents, true +} + +// HasAuditEvents returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasAuditEvents() bool { + if o != nil && !IsNil(o.AuditEvents) { + return true + } + + return false +} + +// SetAuditEvents gets a reference to the given Get200ResponseLinksLogCache and assigns it to the AuditEvents field. +func (o *V3Get200ResponseLinks) SetAuditEvents(v Get200ResponseLinksLogCache) { + o.AuditEvents = &v +} + +// GetBuildpacks returns the Buildpacks field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetBuildpacks() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Buildpacks) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Buildpacks +} + +// GetBuildpacksOk returns a tuple with the Buildpacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetBuildpacksOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Buildpacks) { + return nil, false + } + return o.Buildpacks, true +} + +// HasBuildpacks returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasBuildpacks() bool { + if o != nil && !IsNil(o.Buildpacks) { + return true + } + + return false +} + +// SetBuildpacks gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Buildpacks field. +func (o *V3Get200ResponseLinks) SetBuildpacks(v Get200ResponseLinksLogCache) { + o.Buildpacks = &v +} + +// GetBuilds returns the Builds field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetBuilds() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Builds) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Builds +} + +// GetBuildsOk returns a tuple with the Builds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetBuildsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Builds) { + return nil, false + } + return o.Builds, true +} + +// HasBuilds returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasBuilds() bool { + if o != nil && !IsNil(o.Builds) { + return true + } + + return false +} + +// SetBuilds gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Builds field. +func (o *V3Get200ResponseLinks) SetBuilds(v Get200ResponseLinksLogCache) { + o.Builds = &v +} + +// GetDeployments returns the Deployments field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetDeployments() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Deployments) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Deployments +} + +// GetDeploymentsOk returns a tuple with the Deployments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetDeploymentsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Deployments) { + return nil, false + } + return o.Deployments, true +} + +// HasDeployments returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasDeployments() bool { + if o != nil && !IsNil(o.Deployments) { + return true + } + + return false +} + +// SetDeployments gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Deployments field. +func (o *V3Get200ResponseLinks) SetDeployments(v Get200ResponseLinksLogCache) { + o.Deployments = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetDomains() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Domains) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetDomainsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Domains field. +func (o *V3Get200ResponseLinks) SetDomains(v Get200ResponseLinksLogCache) { + o.Domains = &v +} + +// GetDroplets returns the Droplets field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetDroplets() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Droplets) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Droplets +} + +// GetDropletsOk returns a tuple with the Droplets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetDropletsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Droplets) { + return nil, false + } + return o.Droplets, true +} + +// HasDroplets returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasDroplets() bool { + if o != nil && !IsNil(o.Droplets) { + return true + } + + return false +} + +// SetDroplets gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Droplets field. +func (o *V3Get200ResponseLinks) SetDroplets(v Get200ResponseLinksLogCache) { + o.Droplets = &v +} + +// GetEnvironmentVariableGroups returns the EnvironmentVariableGroups field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetEnvironmentVariableGroups() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.EnvironmentVariableGroups) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.EnvironmentVariableGroups +} + +// GetEnvironmentVariableGroupsOk returns a tuple with the EnvironmentVariableGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetEnvironmentVariableGroupsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.EnvironmentVariableGroups) { + return nil, false + } + return o.EnvironmentVariableGroups, true +} + +// HasEnvironmentVariableGroups returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasEnvironmentVariableGroups() bool { + if o != nil && !IsNil(o.EnvironmentVariableGroups) { + return true + } + + return false +} + +// SetEnvironmentVariableGroups gets a reference to the given Get200ResponseLinksLogCache and assigns it to the EnvironmentVariableGroups field. +func (o *V3Get200ResponseLinks) SetEnvironmentVariableGroups(v Get200ResponseLinksLogCache) { + o.EnvironmentVariableGroups = &v +} + +// GetFeatureFlags returns the FeatureFlags field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetFeatureFlags() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.FeatureFlags) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.FeatureFlags +} + +// GetFeatureFlagsOk returns a tuple with the FeatureFlags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetFeatureFlagsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.FeatureFlags) { + return nil, false + } + return o.FeatureFlags, true +} + +// HasFeatureFlags returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasFeatureFlags() bool { + if o != nil && !IsNil(o.FeatureFlags) { + return true + } + + return false +} + +// SetFeatureFlags gets a reference to the given Get200ResponseLinksLogCache and assigns it to the FeatureFlags field. +func (o *V3Get200ResponseLinks) SetFeatureFlags(v Get200ResponseLinksLogCache) { + o.FeatureFlags = &v +} + +// GetInfo returns the Info field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetInfo() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Info) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Info +} + +// GetInfoOk returns a tuple with the Info field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetInfoOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Info) { + return nil, false + } + return o.Info, true +} + +// HasInfo returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasInfo() bool { + if o != nil && !IsNil(o.Info) { + return true + } + + return false +} + +// SetInfo gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Info field. +func (o *V3Get200ResponseLinks) SetInfo(v Get200ResponseLinksLogCache) { + o.Info = &v +} + +// GetIsolationSegments returns the IsolationSegments field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetIsolationSegments() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.IsolationSegments) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.IsolationSegments +} + +// GetIsolationSegmentsOk returns a tuple with the IsolationSegments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetIsolationSegmentsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.IsolationSegments) { + return nil, false + } + return o.IsolationSegments, true +} + +// HasIsolationSegments returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasIsolationSegments() bool { + if o != nil && !IsNil(o.IsolationSegments) { + return true + } + + return false +} + +// SetIsolationSegments gets a reference to the given Get200ResponseLinksLogCache and assigns it to the IsolationSegments field. +func (o *V3Get200ResponseLinks) SetIsolationSegments(v Get200ResponseLinksLogCache) { + o.IsolationSegments = &v +} + +// GetOrganizationQuotas returns the OrganizationQuotas field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetOrganizationQuotas() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.OrganizationQuotas) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.OrganizationQuotas +} + +// GetOrganizationQuotasOk returns a tuple with the OrganizationQuotas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetOrganizationQuotasOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.OrganizationQuotas) { + return nil, false + } + return o.OrganizationQuotas, true +} + +// HasOrganizationQuotas returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasOrganizationQuotas() bool { + if o != nil && !IsNil(o.OrganizationQuotas) { + return true + } + + return false +} + +// SetOrganizationQuotas gets a reference to the given Get200ResponseLinksLogCache and assigns it to the OrganizationQuotas field. +func (o *V3Get200ResponseLinks) SetOrganizationQuotas(v Get200ResponseLinksLogCache) { + o.OrganizationQuotas = &v +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetOrganizations() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Organizations) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetOrganizationsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Organizations field. +func (o *V3Get200ResponseLinks) SetOrganizations(v Get200ResponseLinksLogCache) { + o.Organizations = &v +} + +// GetPackages returns the Packages field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetPackages() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Packages) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Packages +} + +// GetPackagesOk returns a tuple with the Packages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetPackagesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Packages) { + return nil, false + } + return o.Packages, true +} + +// HasPackages returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasPackages() bool { + if o != nil && !IsNil(o.Packages) { + return true + } + + return false +} + +// SetPackages gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Packages field. +func (o *V3Get200ResponseLinks) SetPackages(v Get200ResponseLinksLogCache) { + o.Packages = &v +} + +// GetProcesses returns the Processes field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetProcesses() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Processes) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Processes +} + +// GetProcessesOk returns a tuple with the Processes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetProcessesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Processes) { + return nil, false + } + return o.Processes, true +} + +// HasProcesses returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasProcesses() bool { + if o != nil && !IsNil(o.Processes) { + return true + } + + return false +} + +// SetProcesses gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Processes field. +func (o *V3Get200ResponseLinks) SetProcesses(v Get200ResponseLinksLogCache) { + o.Processes = &v +} + +// GetResourceMatches returns the ResourceMatches field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetResourceMatches() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ResourceMatches) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ResourceMatches +} + +// GetResourceMatchesOk returns a tuple with the ResourceMatches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetResourceMatchesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ResourceMatches) { + return nil, false + } + return o.ResourceMatches, true +} + +// HasResourceMatches returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasResourceMatches() bool { + if o != nil && !IsNil(o.ResourceMatches) { + return true + } + + return false +} + +// SetResourceMatches gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ResourceMatches field. +func (o *V3Get200ResponseLinks) SetResourceMatches(v Get200ResponseLinksLogCache) { + o.ResourceMatches = &v +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetRoles() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Roles) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetRolesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasRoles() bool { + if o != nil && !IsNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Roles field. +func (o *V3Get200ResponseLinks) SetRoles(v Get200ResponseLinksLogCache) { + o.Roles = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetRoutes() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Routes) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetRoutesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Routes field. +func (o *V3Get200ResponseLinks) SetRoutes(v Get200ResponseLinksLogCache) { + o.Routes = &v +} + +// GetSecurityGroups returns the SecurityGroups field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetSecurityGroups() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.SecurityGroups) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.SecurityGroups +} + +// GetSecurityGroupsOk returns a tuple with the SecurityGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetSecurityGroupsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.SecurityGroups) { + return nil, false + } + return o.SecurityGroups, true +} + +// HasSecurityGroups returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasSecurityGroups() bool { + if o != nil && !IsNil(o.SecurityGroups) { + return true + } + + return false +} + +// SetSecurityGroups gets a reference to the given Get200ResponseLinksLogCache and assigns it to the SecurityGroups field. +func (o *V3Get200ResponseLinks) SetSecurityGroups(v Get200ResponseLinksLogCache) { + o.SecurityGroups = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *V3Get200ResponseLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetServiceBrokers returns the ServiceBrokers field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetServiceBrokers() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceBrokers) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceBrokers +} + +// GetServiceBrokersOk returns a tuple with the ServiceBrokers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetServiceBrokersOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceBrokers) { + return nil, false + } + return o.ServiceBrokers, true +} + +// HasServiceBrokers returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasServiceBrokers() bool { + if o != nil && !IsNil(o.ServiceBrokers) { + return true + } + + return false +} + +// SetServiceBrokers gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceBrokers field. +func (o *V3Get200ResponseLinks) SetServiceBrokers(v Get200ResponseLinksLogCache) { + o.ServiceBrokers = &v +} + +// GetServiceInstances returns the ServiceInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3Get200ResponseLinks) GetServiceInstances() V3Get200ResponseLinksServiceInstances { + if o == nil || IsNil(o.ServiceInstances.Get()) { + var ret V3Get200ResponseLinksServiceInstances + return ret + } + return *o.ServiceInstances.Get() +} + +// GetServiceInstancesOk returns a tuple with the ServiceInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3Get200ResponseLinks) GetServiceInstancesOk() (*V3Get200ResponseLinksServiceInstances, bool) { + if o == nil { + return nil, false + } + return o.ServiceInstances.Get(), o.ServiceInstances.IsSet() +} + +// HasServiceInstances returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasServiceInstances() bool { + if o != nil && o.ServiceInstances.IsSet() { + return true + } + + return false +} + +// SetServiceInstances gets a reference to the given NullableV3Get200ResponseLinksServiceInstances and assigns it to the ServiceInstances field. +func (o *V3Get200ResponseLinks) SetServiceInstances(v V3Get200ResponseLinksServiceInstances) { + o.ServiceInstances.Set(&v) +} +// SetServiceInstancesNil sets the value for ServiceInstances to be an explicit nil +func (o *V3Get200ResponseLinks) SetServiceInstancesNil() { + o.ServiceInstances.Set(nil) +} + +// UnsetServiceInstances ensures that no value is present for ServiceInstances, not even an explicit nil +func (o *V3Get200ResponseLinks) UnsetServiceInstances() { + o.ServiceInstances.Unset() +} + +// GetServiceOfferings returns the ServiceOfferings field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetServiceOfferings() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceOfferings) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceOfferings +} + +// GetServiceOfferingsOk returns a tuple with the ServiceOfferings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetServiceOfferingsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceOfferings) { + return nil, false + } + return o.ServiceOfferings, true +} + +// HasServiceOfferings returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasServiceOfferings() bool { + if o != nil && !IsNil(o.ServiceOfferings) { + return true + } + + return false +} + +// SetServiceOfferings gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceOfferings field. +func (o *V3Get200ResponseLinks) SetServiceOfferings(v Get200ResponseLinksLogCache) { + o.ServiceOfferings = &v +} + +// GetServicePlans returns the ServicePlans field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetServicePlans() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServicePlans) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServicePlans +} + +// GetServicePlansOk returns a tuple with the ServicePlans field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetServicePlansOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServicePlans) { + return nil, false + } + return o.ServicePlans, true +} + +// HasServicePlans returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasServicePlans() bool { + if o != nil && !IsNil(o.ServicePlans) { + return true + } + + return false +} + +// SetServicePlans gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServicePlans field. +func (o *V3Get200ResponseLinks) SetServicePlans(v Get200ResponseLinksLogCache) { + o.ServicePlans = &v +} + +// GetServiceUsageEvents returns the ServiceUsageEvents field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetServiceUsageEvents() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceUsageEvents) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceUsageEvents +} + +// GetServiceUsageEventsOk returns a tuple with the ServiceUsageEvents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetServiceUsageEventsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceUsageEvents) { + return nil, false + } + return o.ServiceUsageEvents, true +} + +// HasServiceUsageEvents returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasServiceUsageEvents() bool { + if o != nil && !IsNil(o.ServiceUsageEvents) { + return true + } + + return false +} + +// SetServiceUsageEvents gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceUsageEvents field. +func (o *V3Get200ResponseLinks) SetServiceUsageEvents(v Get200ResponseLinksLogCache) { + o.ServiceUsageEvents = &v +} + +// GetSpaceQuotas returns the SpaceQuotas field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetSpaceQuotas() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.SpaceQuotas) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.SpaceQuotas +} + +// GetSpaceQuotasOk returns a tuple with the SpaceQuotas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetSpaceQuotasOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.SpaceQuotas) { + return nil, false + } + return o.SpaceQuotas, true +} + +// HasSpaceQuotas returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasSpaceQuotas() bool { + if o != nil && !IsNil(o.SpaceQuotas) { + return true + } + + return false +} + +// SetSpaceQuotas gets a reference to the given Get200ResponseLinksLogCache and assigns it to the SpaceQuotas field. +func (o *V3Get200ResponseLinks) SetSpaceQuotas(v Get200ResponseLinksLogCache) { + o.SpaceQuotas = &v +} + +// GetSpaces returns the Spaces field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetSpaces() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Spaces) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Spaces +} + +// GetSpacesOk returns a tuple with the Spaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetSpacesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Spaces) { + return nil, false + } + return o.Spaces, true +} + +// HasSpaces returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasSpaces() bool { + if o != nil && !IsNil(o.Spaces) { + return true + } + + return false +} + +// SetSpaces gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Spaces field. +func (o *V3Get200ResponseLinks) SetSpaces(v Get200ResponseLinksLogCache) { + o.Spaces = &v +} + +// GetStacks returns the Stacks field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetStacks() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Stacks) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Stacks +} + +// GetStacksOk returns a tuple with the Stacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetStacksOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Stacks) { + return nil, false + } + return o.Stacks, true +} + +// HasStacks returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasStacks() bool { + if o != nil && !IsNil(o.Stacks) { + return true + } + + return false +} + +// SetStacks gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Stacks field. +func (o *V3Get200ResponseLinks) SetStacks(v Get200ResponseLinksLogCache) { + o.Stacks = &v +} + +// GetTasks returns the Tasks field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetTasks() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Tasks) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Tasks +} + +// GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetTasksOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Tasks) { + return nil, false + } + return o.Tasks, true +} + +// HasTasks returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasTasks() bool { + if o != nil && !IsNil(o.Tasks) { + return true + } + + return false +} + +// SetTasks gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Tasks field. +func (o *V3Get200ResponseLinks) SetTasks(v Get200ResponseLinksLogCache) { + o.Tasks = &v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *V3Get200ResponseLinks) GetUsers() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Users) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinks) GetUsersOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *V3Get200ResponseLinks) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Users field. +func (o *V3Get200ResponseLinks) SetUsers(v Get200ResponseLinksLogCache) { + o.Users = &v +} + +func (o V3Get200ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3Get200ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AppUsageEvents) { + toSerialize["app_usage_events"] = o.AppUsageEvents + } + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.AuditEvents) { + toSerialize["audit_events"] = o.AuditEvents + } + if !IsNil(o.Buildpacks) { + toSerialize["buildpacks"] = o.Buildpacks + } + if !IsNil(o.Builds) { + toSerialize["builds"] = o.Builds + } + if !IsNil(o.Deployments) { + toSerialize["deployments"] = o.Deployments + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Droplets) { + toSerialize["droplets"] = o.Droplets + } + if !IsNil(o.EnvironmentVariableGroups) { + toSerialize["environment_variable_groups"] = o.EnvironmentVariableGroups + } + if !IsNil(o.FeatureFlags) { + toSerialize["feature_flags"] = o.FeatureFlags + } + if !IsNil(o.Info) { + toSerialize["info"] = o.Info + } + if !IsNil(o.IsolationSegments) { + toSerialize["isolation_segments"] = o.IsolationSegments + } + if !IsNil(o.OrganizationQuotas) { + toSerialize["organization_quotas"] = o.OrganizationQuotas + } + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Packages) { + toSerialize["packages"] = o.Packages + } + if !IsNil(o.Processes) { + toSerialize["processes"] = o.Processes + } + if !IsNil(o.ResourceMatches) { + toSerialize["resource_matches"] = o.ResourceMatches + } + if !IsNil(o.Roles) { + toSerialize["roles"] = o.Roles + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.SecurityGroups) { + toSerialize["security_groups"] = o.SecurityGroups + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceBrokers) { + toSerialize["service_brokers"] = o.ServiceBrokers + } + if o.ServiceInstances.IsSet() { + toSerialize["service_instances"] = o.ServiceInstances.Get() + } + if !IsNil(o.ServiceOfferings) { + toSerialize["service_offerings"] = o.ServiceOfferings + } + if !IsNil(o.ServicePlans) { + toSerialize["service_plans"] = o.ServicePlans + } + if !IsNil(o.ServiceUsageEvents) { + toSerialize["service_usage_events"] = o.ServiceUsageEvents + } + if !IsNil(o.SpaceQuotas) { + toSerialize["space_quotas"] = o.SpaceQuotas + } + if !IsNil(o.Spaces) { + toSerialize["spaces"] = o.Spaces + } + if !IsNil(o.Stacks) { + toSerialize["stacks"] = o.Stacks + } + if !IsNil(o.Tasks) { + toSerialize["tasks"] = o.Tasks + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + return toSerialize, nil +} + +type NullableV3Get200ResponseLinks struct { + value *V3Get200ResponseLinks + isSet bool +} + +func (v NullableV3Get200ResponseLinks) Get() *V3Get200ResponseLinks { + return v.value +} + +func (v *NullableV3Get200ResponseLinks) Set(val *V3Get200ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableV3Get200ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableV3Get200ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3Get200ResponseLinks(val *V3Get200ResponseLinks) *NullableV3Get200ResponseLinks { + return &NullableV3Get200ResponseLinks{value: val, isSet: true} +} + +func (v NullableV3Get200ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3Get200ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_get_200_response_links_service_instances.go b/model__v3_get_200_response_links_service_instances.go new file mode 100644 index 0000000..f7c27b5 --- /dev/null +++ b/model__v3_get_200_response_links_service_instances.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3Get200ResponseLinksServiceInstances type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3Get200ResponseLinksServiceInstances{} + +// V3Get200ResponseLinksServiceInstances struct for V3Get200ResponseLinksServiceInstances +type V3Get200ResponseLinksServiceInstances struct { + Href *string `json:"href,omitempty"` +} + +// NewV3Get200ResponseLinksServiceInstances instantiates a new V3Get200ResponseLinksServiceInstances object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3Get200ResponseLinksServiceInstances() *V3Get200ResponseLinksServiceInstances { + this := V3Get200ResponseLinksServiceInstances{} + return &this +} + +// NewV3Get200ResponseLinksServiceInstancesWithDefaults instantiates a new V3Get200ResponseLinksServiceInstances object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3Get200ResponseLinksServiceInstancesWithDefaults() *V3Get200ResponseLinksServiceInstances { + this := V3Get200ResponseLinksServiceInstances{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *V3Get200ResponseLinksServiceInstances) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3Get200ResponseLinksServiceInstances) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *V3Get200ResponseLinksServiceInstances) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *V3Get200ResponseLinksServiceInstances) SetHref(v string) { + o.Href = &v +} + +func (o V3Get200ResponseLinksServiceInstances) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3Get200ResponseLinksServiceInstances) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableV3Get200ResponseLinksServiceInstances struct { + value *V3Get200ResponseLinksServiceInstances + isSet bool +} + +func (v NullableV3Get200ResponseLinksServiceInstances) Get() *V3Get200ResponseLinksServiceInstances { + return v.value +} + +func (v *NullableV3Get200ResponseLinksServiceInstances) Set(val *V3Get200ResponseLinksServiceInstances) { + v.value = val + v.isSet = true +} + +func (v NullableV3Get200ResponseLinksServiceInstances) IsSet() bool { + return v.isSet +} + +func (v *NullableV3Get200ResponseLinksServiceInstances) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3Get200ResponseLinksServiceInstances(val *V3Get200ResponseLinksServiceInstances) *NullableV3Get200ResponseLinksServiceInstances { + return &NullableV3Get200ResponseLinksServiceInstances{value: val, isSet: true} +} + +func (v NullableV3Get200ResponseLinksServiceInstances) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3Get200ResponseLinksServiceInstances) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_organizations_get_200_response.go b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response.go new file mode 100644 index 0000000..a4e43f2 --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response{} + +// V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response struct for V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response +type V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response struct { + Data []V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` + Links *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks `json:"links,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetDataOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Data = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetLinks() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks and assigns it to the Links field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) SetLinks(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) { + o.Links = &v +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response struct { + value *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) Get() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) Set(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response { + return &NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links.go b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links.go new file mode 100644 index 0000000..9bef5c2 --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks{} + +// V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks struct for V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks +type V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks struct { + Related *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"related,omitempty"` + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks{} + return &this +} + +// GetRelated returns the Related field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetRelated() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Related) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Related +} + +// GetRelatedOk returns a tuple with the Related field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetRelatedOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Related) { + return nil, false + } + return o.Related, true +} + +// HasRelated returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) HasRelated() bool { + if o != nil && !IsNil(o.Related) { + return true + } + + return false +} + +// SetRelated gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Related field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) SetRelated(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Related = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Related) { + toSerialize["related"] = o.Related + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks struct { + value *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) Get() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) Set(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks { + return &NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related.go b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related.go new file mode 100644 index 0000000..dd604e7 --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_organizations_get_200_response_links_related.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated{} + +// V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated struct for V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated +type V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated struct { + Href *string `json:"href,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelatedWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelatedWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) SetHref(v string) { + o.Href = &v +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated struct { + value *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) Get() *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) Set(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated(val *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + return &NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_organizations_post_request.go b/model__v3_isolation_segments__guid__relationships_organizations_post_request.go new file mode 100644 index 0000000..043438f --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_organizations_post_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest{} + +// V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest struct for V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest +type V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest struct { + Data []V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest() *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequestWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequestWithDefaults() *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + this := V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) GetData() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) GetDataOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) SetData(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Data = v +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest struct { + value *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) Get() *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) Set(val *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest(val *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + return &NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_spaces_get_200_response.go b/model__v3_isolation_segments__guid__relationships_spaces_get_200_response.go new file mode 100644 index 0000000..c09ce39 --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_spaces_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsSpacesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsSpacesGet200Response{} + +// V3IsolationSegmentsGuidRelationshipsSpacesGet200Response struct for V3IsolationSegmentsGuidRelationshipsSpacesGet200Response +type V3IsolationSegmentsGuidRelationshipsSpacesGet200Response struct { + Data []V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` + Links *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks `json:"links,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsSpacesGet200Response instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200Response() *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response { + this := V3IsolationSegmentsGuidRelationshipsSpacesGet200Response{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseWithDefaults() *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response { + this := V3IsolationSegmentsGuidRelationshipsSpacesGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetDataOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Data = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks and assigns it to the Links field. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) { + o.Links = &v +} + +func (o V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response struct { + value *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) Get() *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) Set(val *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response(val *V3IsolationSegmentsGuidRelationshipsSpacesGet200Response) *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response { + return &NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments__guid__relationships_spaces_get_200_response_links.go b/model__v3_isolation_segments__guid__relationships_spaces_get_200_response_links.go new file mode 100644 index 0000000..6d73e9c --- /dev/null +++ b/model__v3_isolation_segments__guid__relationships_spaces_get_200_response_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks{} + +// V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks struct for V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks +type V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks struct { + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` +} + +// NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks() *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + this := V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks{} + return &this +} + +// NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinksWithDefaults instantiates a new V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinksWithDefaults() *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + this := V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +func (o V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks struct { + value *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + isSet bool +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) Get() *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + return v.value +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) Set(val *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks(val *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + return &NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_isolation_segments_get_200_response.go b/model__v3_isolation_segments_get_200_response.go new file mode 100644 index 0000000..72928a9 --- /dev/null +++ b/model__v3_isolation_segments_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3IsolationSegmentsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3IsolationSegmentsGet200Response{} + +// V3IsolationSegmentsGet200Response struct for V3IsolationSegmentsGet200Response +type V3IsolationSegmentsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []IsolationSegment `json:"resources,omitempty"` +} + +// NewV3IsolationSegmentsGet200Response instantiates a new V3IsolationSegmentsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3IsolationSegmentsGet200Response() *V3IsolationSegmentsGet200Response { + this := V3IsolationSegmentsGet200Response{} + return &this +} + +// NewV3IsolationSegmentsGet200ResponseWithDefaults instantiates a new V3IsolationSegmentsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3IsolationSegmentsGet200ResponseWithDefaults() *V3IsolationSegmentsGet200Response { + this := V3IsolationSegmentsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3IsolationSegmentsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3IsolationSegmentsGet200Response) GetResources() []IsolationSegment { + if o == nil || IsNil(o.Resources) { + var ret []IsolationSegment + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3IsolationSegmentsGet200Response) GetResourcesOk() ([]IsolationSegment, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3IsolationSegmentsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []IsolationSegment and assigns it to the Resources field. +func (o *V3IsolationSegmentsGet200Response) SetResources(v []IsolationSegment) { + o.Resources = v +} + +func (o V3IsolationSegmentsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3IsolationSegmentsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3IsolationSegmentsGet200Response struct { + value *V3IsolationSegmentsGet200Response + isSet bool +} + +func (v NullableV3IsolationSegmentsGet200Response) Get() *V3IsolationSegmentsGet200Response { + return v.value +} + +func (v *NullableV3IsolationSegmentsGet200Response) Set(val *V3IsolationSegmentsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3IsolationSegmentsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3IsolationSegmentsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3IsolationSegmentsGet200Response(val *V3IsolationSegmentsGet200Response) *NullableV3IsolationSegmentsGet200Response { + return &NullableV3IsolationSegmentsGet200Response{value: val, isSet: true} +} + +func (v NullableV3IsolationSegmentsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3IsolationSegmentsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages__guid__delete_202_response.go b/model__v3_packages__guid__delete_202_response.go new file mode 100644 index 0000000..2d0a54e --- /dev/null +++ b/model__v3_packages__guid__delete_202_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGuidDelete202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGuidDelete202Response{} + +// V3PackagesGuidDelete202Response struct for V3PackagesGuidDelete202Response +type V3PackagesGuidDelete202Response struct { + Guid *string `json:"guid,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewV3PackagesGuidDelete202Response instantiates a new V3PackagesGuidDelete202Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGuidDelete202Response() *V3PackagesGuidDelete202Response { + this := V3PackagesGuidDelete202Response{} + return &this +} + +// NewV3PackagesGuidDelete202ResponseWithDefaults instantiates a new V3PackagesGuidDelete202Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGuidDelete202ResponseWithDefaults() *V3PackagesGuidDelete202Response { + this := V3PackagesGuidDelete202Response{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3PackagesGuidDelete202Response) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidDelete202Response) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3PackagesGuidDelete202Response) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3PackagesGuidDelete202Response) SetGuid(v string) { + o.Guid = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *V3PackagesGuidDelete202Response) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidDelete202Response) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *V3PackagesGuidDelete202Response) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *V3PackagesGuidDelete202Response) SetUrl(v string) { + o.Url = &v +} + +func (o V3PackagesGuidDelete202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGuidDelete202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableV3PackagesGuidDelete202Response struct { + value *V3PackagesGuidDelete202Response + isSet bool +} + +func (v NullableV3PackagesGuidDelete202Response) Get() *V3PackagesGuidDelete202Response { + return v.value +} + +func (v *NullableV3PackagesGuidDelete202Response) Set(val *V3PackagesGuidDelete202Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGuidDelete202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGuidDelete202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGuidDelete202Response(val *V3PackagesGuidDelete202Response) *NullableV3PackagesGuidDelete202Response { + return &NullableV3PackagesGuidDelete202Response{value: val, isSet: true} +} + +func (v NullableV3PackagesGuidDelete202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGuidDelete202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages__guid__patch_request.go b/model__v3_packages__guid__patch_request.go new file mode 100644 index 0000000..70b07fe --- /dev/null +++ b/model__v3_packages__guid__patch_request.go @@ -0,0 +1,200 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGuidPatchRequest{} + +// V3PackagesGuidPatchRequest struct for V3PackagesGuidPatchRequest +type V3PackagesGuidPatchRequest struct { + Metadata *V3PackagesPostRequestMetadata `json:"metadata,omitempty"` + // The password for the image's registry. Only possible for Docker package. + Password *string `json:"password,omitempty"` + // The username for the image's registry. Only possible for Docker package. + Username *string `json:"username,omitempty"` +} + +// NewV3PackagesGuidPatchRequest instantiates a new V3PackagesGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGuidPatchRequest() *V3PackagesGuidPatchRequest { + this := V3PackagesGuidPatchRequest{} + return &this +} + +// NewV3PackagesGuidPatchRequestWithDefaults instantiates a new V3PackagesGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGuidPatchRequestWithDefaults() *V3PackagesGuidPatchRequest { + this := V3PackagesGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3PackagesGuidPatchRequest) GetMetadata() V3PackagesPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3PackagesPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidPatchRequest) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3PackagesGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3PackagesPostRequestMetadata and assigns it to the Metadata field. +func (o *V3PackagesGuidPatchRequest) SetMetadata(v V3PackagesPostRequestMetadata) { + o.Metadata = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *V3PackagesGuidPatchRequest) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidPatchRequest) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *V3PackagesGuidPatchRequest) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *V3PackagesGuidPatchRequest) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *V3PackagesGuidPatchRequest) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidPatchRequest) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *V3PackagesGuidPatchRequest) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *V3PackagesGuidPatchRequest) SetUsername(v string) { + o.Username = &v +} + +func (o V3PackagesGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableV3PackagesGuidPatchRequest struct { + value *V3PackagesGuidPatchRequest + isSet bool +} + +func (v NullableV3PackagesGuidPatchRequest) Get() *V3PackagesGuidPatchRequest { + return v.value +} + +func (v *NullableV3PackagesGuidPatchRequest) Set(val *V3PackagesGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGuidPatchRequest(val *V3PackagesGuidPatchRequest) *NullableV3PackagesGuidPatchRequest { + return &NullableV3PackagesGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3PackagesGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages__guid__upload_post_request_resources_inner.go b/model__v3_packages__guid__upload_post_request_resources_inner.go new file mode 100644 index 0000000..abdda56 --- /dev/null +++ b/model__v3_packages__guid__upload_post_request_resources_inner.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGuidUploadPostRequestResourcesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGuidUploadPostRequestResourcesInner{} + +// V3PackagesGuidUploadPostRequestResourcesInner struct for V3PackagesGuidUploadPostRequestResourcesInner +type V3PackagesGuidUploadPostRequestResourcesInner struct { + Checksum *V3PackagesGuidUploadPostRequestResourcesInnerChecksum `json:"checksum,omitempty"` + Path *string `json:"path,omitempty"` + SizeInBytes *int32 `json:"size_in_bytes,omitempty"` +} + +// NewV3PackagesGuidUploadPostRequestResourcesInner instantiates a new V3PackagesGuidUploadPostRequestResourcesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGuidUploadPostRequestResourcesInner() *V3PackagesGuidUploadPostRequestResourcesInner { + this := V3PackagesGuidUploadPostRequestResourcesInner{} + return &this +} + +// NewV3PackagesGuidUploadPostRequestResourcesInnerWithDefaults instantiates a new V3PackagesGuidUploadPostRequestResourcesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGuidUploadPostRequestResourcesInnerWithDefaults() *V3PackagesGuidUploadPostRequestResourcesInner { + this := V3PackagesGuidUploadPostRequestResourcesInner{} + return &this +} + +// GetChecksum returns the Checksum field value if set, zero value otherwise. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetChecksum() V3PackagesGuidUploadPostRequestResourcesInnerChecksum { + if o == nil || IsNil(o.Checksum) { + var ret V3PackagesGuidUploadPostRequestResourcesInnerChecksum + return ret + } + return *o.Checksum +} + +// GetChecksumOk returns a tuple with the Checksum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetChecksumOk() (*V3PackagesGuidUploadPostRequestResourcesInnerChecksum, bool) { + if o == nil || IsNil(o.Checksum) { + return nil, false + } + return o.Checksum, true +} + +// HasChecksum returns a boolean if a field has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasChecksum() bool { + if o != nil && !IsNil(o.Checksum) { + return true + } + + return false +} + +// SetChecksum gets a reference to the given V3PackagesGuidUploadPostRequestResourcesInnerChecksum and assigns it to the Checksum field. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetChecksum(v V3PackagesGuidUploadPostRequestResourcesInnerChecksum) { + o.Checksum = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetPath(v string) { + o.Path = &v +} + +// GetSizeInBytes returns the SizeInBytes field value if set, zero value otherwise. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetSizeInBytes() int32 { + if o == nil || IsNil(o.SizeInBytes) { + var ret int32 + return ret + } + return *o.SizeInBytes +} + +// GetSizeInBytesOk returns a tuple with the SizeInBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) GetSizeInBytesOk() (*int32, bool) { + if o == nil || IsNil(o.SizeInBytes) { + return nil, false + } + return o.SizeInBytes, true +} + +// HasSizeInBytes returns a boolean if a field has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) HasSizeInBytes() bool { + if o != nil && !IsNil(o.SizeInBytes) { + return true + } + + return false +} + +// SetSizeInBytes gets a reference to the given int32 and assigns it to the SizeInBytes field. +func (o *V3PackagesGuidUploadPostRequestResourcesInner) SetSizeInBytes(v int32) { + o.SizeInBytes = &v +} + +func (o V3PackagesGuidUploadPostRequestResourcesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGuidUploadPostRequestResourcesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Checksum) { + toSerialize["checksum"] = o.Checksum + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.SizeInBytes) { + toSerialize["size_in_bytes"] = o.SizeInBytes + } + return toSerialize, nil +} + +type NullableV3PackagesGuidUploadPostRequestResourcesInner struct { + value *V3PackagesGuidUploadPostRequestResourcesInner + isSet bool +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInner) Get() *V3PackagesGuidUploadPostRequestResourcesInner { + return v.value +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInner) Set(val *V3PackagesGuidUploadPostRequestResourcesInner) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGuidUploadPostRequestResourcesInner(val *V3PackagesGuidUploadPostRequestResourcesInner) *NullableV3PackagesGuidUploadPostRequestResourcesInner { + return &NullableV3PackagesGuidUploadPostRequestResourcesInner{value: val, isSet: true} +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages__guid__upload_post_request_resources_inner_checksum.go b/model__v3_packages__guid__upload_post_request_resources_inner_checksum.go new file mode 100644 index 0000000..6c635ce --- /dev/null +++ b/model__v3_packages__guid__upload_post_request_resources_inner_checksum.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGuidUploadPostRequestResourcesInnerChecksum type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGuidUploadPostRequestResourcesInnerChecksum{} + +// V3PackagesGuidUploadPostRequestResourcesInnerChecksum struct for V3PackagesGuidUploadPostRequestResourcesInnerChecksum +type V3PackagesGuidUploadPostRequestResourcesInnerChecksum struct { + Value *string `json:"value,omitempty"` +} + +// NewV3PackagesGuidUploadPostRequestResourcesInnerChecksum instantiates a new V3PackagesGuidUploadPostRequestResourcesInnerChecksum object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGuidUploadPostRequestResourcesInnerChecksum() *V3PackagesGuidUploadPostRequestResourcesInnerChecksum { + this := V3PackagesGuidUploadPostRequestResourcesInnerChecksum{} + return &this +} + +// NewV3PackagesGuidUploadPostRequestResourcesInnerChecksumWithDefaults instantiates a new V3PackagesGuidUploadPostRequestResourcesInnerChecksum object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGuidUploadPostRequestResourcesInnerChecksumWithDefaults() *V3PackagesGuidUploadPostRequestResourcesInnerChecksum { + this := V3PackagesGuidUploadPostRequestResourcesInnerChecksum{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) SetValue(v string) { + o.Value = &v +} + +func (o V3PackagesGuidUploadPostRequestResourcesInnerChecksum) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGuidUploadPostRequestResourcesInnerChecksum) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum struct { + value *V3PackagesGuidUploadPostRequestResourcesInnerChecksum + isSet bool +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) Get() *V3PackagesGuidUploadPostRequestResourcesInnerChecksum { + return v.value +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) Set(val *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum(val *V3PackagesGuidUploadPostRequestResourcesInnerChecksum) *NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum { + return &NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum{value: val, isSet: true} +} + +func (v NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGuidUploadPostRequestResourcesInnerChecksum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_get_200_response.go b/model__v3_packages_get_200_response.go new file mode 100644 index 0000000..2e1ca72 --- /dev/null +++ b/model__v3_packages_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGet200Response{} + +// V3PackagesGet200Response struct for V3PackagesGet200Response +type V3PackagesGet200Response struct { + Pagination *V3PackagesGet200ResponsePagination `json:"pagination,omitempty"` + Resources []Package `json:"resources,omitempty"` +} + +// NewV3PackagesGet200Response instantiates a new V3PackagesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGet200Response() *V3PackagesGet200Response { + this := V3PackagesGet200Response{} + return &this +} + +// NewV3PackagesGet200ResponseWithDefaults instantiates a new V3PackagesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGet200ResponseWithDefaults() *V3PackagesGet200Response { + this := V3PackagesGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3PackagesGet200Response) GetPagination() V3PackagesGet200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret V3PackagesGet200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200Response) GetPaginationOk() (*V3PackagesGet200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3PackagesGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given V3PackagesGet200ResponsePagination and assigns it to the Pagination field. +func (o *V3PackagesGet200Response) SetPagination(v V3PackagesGet200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3PackagesGet200Response) GetResources() []Package { + if o == nil || IsNil(o.Resources) { + var ret []Package + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200Response) GetResourcesOk() ([]Package, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3PackagesGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Package and assigns it to the Resources field. +func (o *V3PackagesGet200Response) SetResources(v []Package) { + o.Resources = v +} + +func (o V3PackagesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3PackagesGet200Response struct { + value *V3PackagesGet200Response + isSet bool +} + +func (v NullableV3PackagesGet200Response) Get() *V3PackagesGet200Response { + return v.value +} + +func (v *NullableV3PackagesGet200Response) Set(val *V3PackagesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGet200Response(val *V3PackagesGet200Response) *NullableV3PackagesGet200Response { + return &NullableV3PackagesGet200Response{value: val, isSet: true} +} + +func (v NullableV3PackagesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_get_200_response_pagination.go b/model__v3_packages_get_200_response_pagination.go new file mode 100644 index 0000000..d245314 --- /dev/null +++ b/model__v3_packages_get_200_response_pagination.go @@ -0,0 +1,326 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesGet200ResponsePagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesGet200ResponsePagination{} + +// V3PackagesGet200ResponsePagination struct for V3PackagesGet200ResponsePagination +type V3PackagesGet200ResponsePagination struct { + First *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"first,omitempty"` + Last *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"last,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewV3PackagesGet200ResponsePagination instantiates a new V3PackagesGet200ResponsePagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesGet200ResponsePagination() *V3PackagesGet200ResponsePagination { + this := V3PackagesGet200ResponsePagination{} + return &this +} + +// NewV3PackagesGet200ResponsePaginationWithDefaults instantiates a new V3PackagesGet200ResponsePagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesGet200ResponsePaginationWithDefaults() *V3PackagesGet200ResponsePagination { + this := V3PackagesGet200ResponsePagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *V3PackagesGet200ResponsePagination) GetFirst() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.First) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200ResponsePagination) GetFirstOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the First field. +func (o *V3PackagesGet200ResponsePagination) SetFirst(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *V3PackagesGet200ResponsePagination) GetLast() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Last) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200ResponsePagination) GetLastOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Last field. +func (o *V3PackagesGet200ResponsePagination) SetLast(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3PackagesGet200ResponsePagination) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3PackagesGet200ResponsePagination) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *V3PackagesGet200ResponsePagination) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *V3PackagesGet200ResponsePagination) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *V3PackagesGet200ResponsePagination) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3PackagesGet200ResponsePagination) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3PackagesGet200ResponsePagination) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *V3PackagesGet200ResponsePagination) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *V3PackagesGet200ResponsePagination) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *V3PackagesGet200ResponsePagination) UnsetPrevious() { + o.Previous.Unset() +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *V3PackagesGet200ResponsePagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200ResponsePagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *V3PackagesGet200ResponsePagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *V3PackagesGet200ResponsePagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesGet200ResponsePagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *V3PackagesGet200ResponsePagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *V3PackagesGet200ResponsePagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o V3PackagesGet200ResponsePagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesGet200ResponsePagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableV3PackagesGet200ResponsePagination struct { + value *V3PackagesGet200ResponsePagination + isSet bool +} + +func (v NullableV3PackagesGet200ResponsePagination) Get() *V3PackagesGet200ResponsePagination { + return v.value +} + +func (v *NullableV3PackagesGet200ResponsePagination) Set(val *V3PackagesGet200ResponsePagination) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesGet200ResponsePagination) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesGet200ResponsePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesGet200ResponsePagination(val *V3PackagesGet200ResponsePagination) *NullableV3PackagesGet200ResponsePagination { + return &NullableV3PackagesGet200ResponsePagination{value: val, isSet: true} +} + +func (v NullableV3PackagesGet200ResponsePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesGet200ResponsePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request.go b/model__v3_packages_post_request.go new file mode 100644 index 0000000..4bcaa70 --- /dev/null +++ b/model__v3_packages_post_request.go @@ -0,0 +1,235 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequest{} + +// V3PackagesPostRequest struct for V3PackagesPostRequest +type V3PackagesPostRequest struct { + Data *V3PackagesPostRequestData `json:"data,omitempty"` + Metadata *V3PackagesPostRequestMetadata `json:"metadata,omitempty"` + Relationships *V3PackagesPostRequestRelationships `json:"relationships,omitempty"` + // Type of the package; valid values are bits, docker + Type *string `json:"type,omitempty"` +} + +// NewV3PackagesPostRequest instantiates a new V3PackagesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequest() *V3PackagesPostRequest { + this := V3PackagesPostRequest{} + return &this +} + +// NewV3PackagesPostRequestWithDefaults instantiates a new V3PackagesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestWithDefaults() *V3PackagesPostRequest { + this := V3PackagesPostRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3PackagesPostRequest) GetData() V3PackagesPostRequestData { + if o == nil || IsNil(o.Data) { + var ret V3PackagesPostRequestData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequest) GetDataOk() (*V3PackagesPostRequestData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3PackagesPostRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3PackagesPostRequestData and assigns it to the Data field. +func (o *V3PackagesPostRequest) SetData(v V3PackagesPostRequestData) { + o.Data = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3PackagesPostRequest) GetMetadata() V3PackagesPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3PackagesPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequest) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3PackagesPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3PackagesPostRequestMetadata and assigns it to the Metadata field. +func (o *V3PackagesPostRequest) SetMetadata(v V3PackagesPostRequestMetadata) { + o.Metadata = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3PackagesPostRequest) GetRelationships() V3PackagesPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3PackagesPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequest) GetRelationshipsOk() (*V3PackagesPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3PackagesPostRequest) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3PackagesPostRequestRelationships and assigns it to the Relationships field. +func (o *V3PackagesPostRequest) SetRelationships(v V3PackagesPostRequestRelationships) { + o.Relationships = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3PackagesPostRequest) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequest) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3PackagesPostRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3PackagesPostRequest) SetType(v string) { + o.Type = &v +} + +func (o V3PackagesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequest struct { + value *V3PackagesPostRequest + isSet bool +} + +func (v NullableV3PackagesPostRequest) Get() *V3PackagesPostRequest { + return v.value +} + +func (v *NullableV3PackagesPostRequest) Set(val *V3PackagesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequest(val *V3PackagesPostRequest) *NullableV3PackagesPostRequest { + return &NullableV3PackagesPostRequest{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request_data.go b/model__v3_packages_post_request_data.go new file mode 100644 index 0000000..e5f9b4f --- /dev/null +++ b/model__v3_packages_post_request_data.go @@ -0,0 +1,201 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequestData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequestData{} + +// V3PackagesPostRequestData struct for V3PackagesPostRequestData +type V3PackagesPostRequestData struct { + // Required when type is docker; the registry address of the image + Image *string `json:"image,omitempty"` + // Optional when type is docker and accessing a secured registry + Password *string `json:"password,omitempty"` + // Optional when type is docker and accessing a secured registry + Username *string `json:"username,omitempty"` +} + +// NewV3PackagesPostRequestData instantiates a new V3PackagesPostRequestData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequestData() *V3PackagesPostRequestData { + this := V3PackagesPostRequestData{} + return &this +} + +// NewV3PackagesPostRequestDataWithDefaults instantiates a new V3PackagesPostRequestData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestDataWithDefaults() *V3PackagesPostRequestData { + this := V3PackagesPostRequestData{} + return &this +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *V3PackagesPostRequestData) GetImage() string { + if o == nil || IsNil(o.Image) { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestData) GetImageOk() (*string, bool) { + if o == nil || IsNil(o.Image) { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *V3PackagesPostRequestData) HasImage() bool { + if o != nil && !IsNil(o.Image) { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *V3PackagesPostRequestData) SetImage(v string) { + o.Image = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *V3PackagesPostRequestData) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestData) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *V3PackagesPostRequestData) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *V3PackagesPostRequestData) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *V3PackagesPostRequestData) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestData) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *V3PackagesPostRequestData) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *V3PackagesPostRequestData) SetUsername(v string) { + o.Username = &v +} + +func (o V3PackagesPostRequestData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequestData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Image) { + toSerialize["image"] = o.Image + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequestData struct { + value *V3PackagesPostRequestData + isSet bool +} + +func (v NullableV3PackagesPostRequestData) Get() *V3PackagesPostRequestData { + return v.value +} + +func (v *NullableV3PackagesPostRequestData) Set(val *V3PackagesPostRequestData) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequestData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequestData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequestData(val *V3PackagesPostRequestData) *NullableV3PackagesPostRequestData { + return &NullableV3PackagesPostRequestData{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequestData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequestData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request_metadata.go b/model__v3_packages_post_request_metadata.go new file mode 100644 index 0000000..c8f0b10 --- /dev/null +++ b/model__v3_packages_post_request_metadata.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequestMetadata{} + +// V3PackagesPostRequestMetadata struct for V3PackagesPostRequestMetadata +type V3PackagesPostRequestMetadata struct { + // Annotations applied to the package + Annotations map[string]interface{} `json:"annotations,omitempty"` + // Labels applied to the package + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewV3PackagesPostRequestMetadata instantiates a new V3PackagesPostRequestMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequestMetadata() *V3PackagesPostRequestMetadata { + this := V3PackagesPostRequestMetadata{} + return &this +} + +// NewV3PackagesPostRequestMetadataWithDefaults instantiates a new V3PackagesPostRequestMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestMetadataWithDefaults() *V3PackagesPostRequestMetadata { + this := V3PackagesPostRequestMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3PackagesPostRequestMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3PackagesPostRequestMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *V3PackagesPostRequestMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3PackagesPostRequestMetadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestMetadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3PackagesPostRequestMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *V3PackagesPostRequestMetadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o V3PackagesPostRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequestMetadata struct { + value *V3PackagesPostRequestMetadata + isSet bool +} + +func (v NullableV3PackagesPostRequestMetadata) Get() *V3PackagesPostRequestMetadata { + return v.value +} + +func (v *NullableV3PackagesPostRequestMetadata) Set(val *V3PackagesPostRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequestMetadata(val *V3PackagesPostRequestMetadata) *NullableV3PackagesPostRequestMetadata { + return &NullableV3PackagesPostRequestMetadata{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request_relationships.go b/model__v3_packages_post_request_relationships.go new file mode 100644 index 0000000..9a382c0 --- /dev/null +++ b/model__v3_packages_post_request_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequestRelationships{} + +// V3PackagesPostRequestRelationships struct for V3PackagesPostRequestRelationships +type V3PackagesPostRequestRelationships struct { + App *V3PackagesPostRequestRelationshipsApp `json:"app,omitempty"` +} + +// NewV3PackagesPostRequestRelationships instantiates a new V3PackagesPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequestRelationships() *V3PackagesPostRequestRelationships { + this := V3PackagesPostRequestRelationships{} + return &this +} + +// NewV3PackagesPostRequestRelationshipsWithDefaults instantiates a new V3PackagesPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestRelationshipsWithDefaults() *V3PackagesPostRequestRelationships { + this := V3PackagesPostRequestRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V3PackagesPostRequestRelationships) GetApp() V3PackagesPostRequestRelationshipsApp { + if o == nil || IsNil(o.App) { + var ret V3PackagesPostRequestRelationshipsApp + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestRelationships) GetAppOk() (*V3PackagesPostRequestRelationshipsApp, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *V3PackagesPostRequestRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3PackagesPostRequestRelationshipsApp and assigns it to the App field. +func (o *V3PackagesPostRequestRelationships) SetApp(v V3PackagesPostRequestRelationshipsApp) { + o.App = &v +} + +func (o V3PackagesPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequestRelationships struct { + value *V3PackagesPostRequestRelationships + isSet bool +} + +func (v NullableV3PackagesPostRequestRelationships) Get() *V3PackagesPostRequestRelationships { + return v.value +} + +func (v *NullableV3PackagesPostRequestRelationships) Set(val *V3PackagesPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequestRelationships(val *V3PackagesPostRequestRelationships) *NullableV3PackagesPostRequestRelationships { + return &NullableV3PackagesPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request_relationships_app.go b/model__v3_packages_post_request_relationships_app.go new file mode 100644 index 0000000..ea29d90 --- /dev/null +++ b/model__v3_packages_post_request_relationships_app.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequestRelationshipsApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequestRelationshipsApp{} + +// V3PackagesPostRequestRelationshipsApp struct for V3PackagesPostRequestRelationshipsApp +type V3PackagesPostRequestRelationshipsApp struct { + Data *V3PackagesPostRequestRelationshipsAppData `json:"data,omitempty"` +} + +// NewV3PackagesPostRequestRelationshipsApp instantiates a new V3PackagesPostRequestRelationshipsApp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequestRelationshipsApp() *V3PackagesPostRequestRelationshipsApp { + this := V3PackagesPostRequestRelationshipsApp{} + return &this +} + +// NewV3PackagesPostRequestRelationshipsAppWithDefaults instantiates a new V3PackagesPostRequestRelationshipsApp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestRelationshipsAppWithDefaults() *V3PackagesPostRequestRelationshipsApp { + this := V3PackagesPostRequestRelationshipsApp{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3PackagesPostRequestRelationshipsApp) GetData() V3PackagesPostRequestRelationshipsAppData { + if o == nil || IsNil(o.Data) { + var ret V3PackagesPostRequestRelationshipsAppData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestRelationshipsApp) GetDataOk() (*V3PackagesPostRequestRelationshipsAppData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3PackagesPostRequestRelationshipsApp) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3PackagesPostRequestRelationshipsAppData and assigns it to the Data field. +func (o *V3PackagesPostRequestRelationshipsApp) SetData(v V3PackagesPostRequestRelationshipsAppData) { + o.Data = &v +} + +func (o V3PackagesPostRequestRelationshipsApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequestRelationshipsApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequestRelationshipsApp struct { + value *V3PackagesPostRequestRelationshipsApp + isSet bool +} + +func (v NullableV3PackagesPostRequestRelationshipsApp) Get() *V3PackagesPostRequestRelationshipsApp { + return v.value +} + +func (v *NullableV3PackagesPostRequestRelationshipsApp) Set(val *V3PackagesPostRequestRelationshipsApp) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequestRelationshipsApp) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequestRelationshipsApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequestRelationshipsApp(val *V3PackagesPostRequestRelationshipsApp) *NullableV3PackagesPostRequestRelationshipsApp { + return &NullableV3PackagesPostRequestRelationshipsApp{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequestRelationshipsApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequestRelationshipsApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_packages_post_request_relationships_app_data.go b/model__v3_packages_post_request_relationships_app_data.go new file mode 100644 index 0000000..51b7131 --- /dev/null +++ b/model__v3_packages_post_request_relationships_app_data.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3PackagesPostRequestRelationshipsAppData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3PackagesPostRequestRelationshipsAppData{} + +// V3PackagesPostRequestRelationshipsAppData struct for V3PackagesPostRequestRelationshipsAppData +type V3PackagesPostRequestRelationshipsAppData struct { + // GUID of the app + Guid *string `json:"guid,omitempty"` +} + +// NewV3PackagesPostRequestRelationshipsAppData instantiates a new V3PackagesPostRequestRelationshipsAppData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3PackagesPostRequestRelationshipsAppData() *V3PackagesPostRequestRelationshipsAppData { + this := V3PackagesPostRequestRelationshipsAppData{} + return &this +} + +// NewV3PackagesPostRequestRelationshipsAppDataWithDefaults instantiates a new V3PackagesPostRequestRelationshipsAppData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3PackagesPostRequestRelationshipsAppDataWithDefaults() *V3PackagesPostRequestRelationshipsAppData { + this := V3PackagesPostRequestRelationshipsAppData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3PackagesPostRequestRelationshipsAppData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3PackagesPostRequestRelationshipsAppData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3PackagesPostRequestRelationshipsAppData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3PackagesPostRequestRelationshipsAppData) SetGuid(v string) { + o.Guid = &v +} + +func (o V3PackagesPostRequestRelationshipsAppData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3PackagesPostRequestRelationshipsAppData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableV3PackagesPostRequestRelationshipsAppData struct { + value *V3PackagesPostRequestRelationshipsAppData + isSet bool +} + +func (v NullableV3PackagesPostRequestRelationshipsAppData) Get() *V3PackagesPostRequestRelationshipsAppData { + return v.value +} + +func (v *NullableV3PackagesPostRequestRelationshipsAppData) Set(val *V3PackagesPostRequestRelationshipsAppData) { + v.value = val + v.isSet = true +} + +func (v NullableV3PackagesPostRequestRelationshipsAppData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3PackagesPostRequestRelationshipsAppData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3PackagesPostRequestRelationshipsAppData(val *V3PackagesPostRequestRelationshipsAppData) *NullableV3PackagesPostRequestRelationshipsAppData { + return &NullableV3PackagesPostRequestRelationshipsAppData{value: val, isSet: true} +} + +func (v NullableV3PackagesPostRequestRelationshipsAppData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3PackagesPostRequestRelationshipsAppData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_revisions__guid__patch_request.go b/model__v3_revisions__guid__patch_request.go new file mode 100644 index 0000000..e355bfc --- /dev/null +++ b/model__v3_revisions__guid__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RevisionsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RevisionsGuidPatchRequest{} + +// V3RevisionsGuidPatchRequest struct for V3RevisionsGuidPatchRequest +type V3RevisionsGuidPatchRequest struct { + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` +} + +// NewV3RevisionsGuidPatchRequest instantiates a new V3RevisionsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RevisionsGuidPatchRequest() *V3RevisionsGuidPatchRequest { + this := V3RevisionsGuidPatchRequest{} + return &this +} + +// NewV3RevisionsGuidPatchRequestWithDefaults instantiates a new V3RevisionsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RevisionsGuidPatchRequestWithDefaults() *V3RevisionsGuidPatchRequest { + this := V3RevisionsGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3RevisionsGuidPatchRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RevisionsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3RevisionsGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *V3RevisionsGuidPatchRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +func (o V3RevisionsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RevisionsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3RevisionsGuidPatchRequest struct { + value *V3RevisionsGuidPatchRequest + isSet bool +} + +func (v NullableV3RevisionsGuidPatchRequest) Get() *V3RevisionsGuidPatchRequest { + return v.value +} + +func (v *NullableV3RevisionsGuidPatchRequest) Set(val *V3RevisionsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3RevisionsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RevisionsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RevisionsGuidPatchRequest(val *V3RevisionsGuidPatchRequest) *NullableV3RevisionsGuidPatchRequest { + return &NullableV3RevisionsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3RevisionsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RevisionsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_roles_post_request.go b/model__v3_roles_post_request.go new file mode 100644 index 0000000..d23e907 --- /dev/null +++ b/model__v3_roles_post_request.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RolesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RolesPostRequest{} + +// V3RolesPostRequest struct for V3RolesPostRequest +type V3RolesPostRequest struct { + Relationships *V3RolesPostRequestRelationships `json:"relationships,omitempty"` + // Role to create, see valid role types + Type *string `json:"type,omitempty"` +} + +// NewV3RolesPostRequest instantiates a new V3RolesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RolesPostRequest() *V3RolesPostRequest { + this := V3RolesPostRequest{} + return &this +} + +// NewV3RolesPostRequestWithDefaults instantiates a new V3RolesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RolesPostRequestWithDefaults() *V3RolesPostRequest { + this := V3RolesPostRequest{} + return &this +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3RolesPostRequest) GetRelationships() V3RolesPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3RolesPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequest) GetRelationshipsOk() (*V3RolesPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3RolesPostRequest) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3RolesPostRequestRelationships and assigns it to the Relationships field. +func (o *V3RolesPostRequest) SetRelationships(v V3RolesPostRequestRelationships) { + o.Relationships = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V3RolesPostRequest) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequest) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *V3RolesPostRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *V3RolesPostRequest) SetType(v string) { + o.Type = &v +} + +func (o V3RolesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RolesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV3RolesPostRequest struct { + value *V3RolesPostRequest + isSet bool +} + +func (v NullableV3RolesPostRequest) Get() *V3RolesPostRequest { + return v.value +} + +func (v *NullableV3RolesPostRequest) Set(val *V3RolesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3RolesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RolesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RolesPostRequest(val *V3RolesPostRequest) *NullableV3RolesPostRequest { + return &NullableV3RolesPostRequest{value: val, isSet: true} +} + +func (v NullableV3RolesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RolesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_roles_post_request_relationships.go b/model__v3_roles_post_request_relationships.go new file mode 100644 index 0000000..dff8673 --- /dev/null +++ b/model__v3_roles_post_request_relationships.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RolesPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RolesPostRequestRelationships{} + +// V3RolesPostRequestRelationships struct for V3RolesPostRequestRelationships +type V3RolesPostRequestRelationships struct { + Organization *V3AppsPostRequestRelationshipsSpace `json:"organization,omitempty"` + Space *V3AppsPostRequestRelationshipsSpace `json:"space,omitempty"` + User *V3RolesPostRequestRelationshipsUser `json:"user,omitempty"` +} + +// NewV3RolesPostRequestRelationships instantiates a new V3RolesPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RolesPostRequestRelationships() *V3RolesPostRequestRelationships { + this := V3RolesPostRequestRelationships{} + return &this +} + +// NewV3RolesPostRequestRelationshipsWithDefaults instantiates a new V3RolesPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RolesPostRequestRelationshipsWithDefaults() *V3RolesPostRequestRelationships { + this := V3RolesPostRequestRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Organization) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Organization field. +func (o *V3RolesPostRequestRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace) { + o.Organization = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Space field. +func (o *V3RolesPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace) { + o.Space = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationships) GetUser() V3RolesPostRequestRelationshipsUser { + if o == nil || IsNil(o.User) { + var ret V3RolesPostRequestRelationshipsUser + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationships) GetUserOk() (*V3RolesPostRequestRelationshipsUser, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationships) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given V3RolesPostRequestRelationshipsUser and assigns it to the User field. +func (o *V3RolesPostRequestRelationships) SetUser(v V3RolesPostRequestRelationshipsUser) { + o.User = &v +} + +func (o V3RolesPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RolesPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableV3RolesPostRequestRelationships struct { + value *V3RolesPostRequestRelationships + isSet bool +} + +func (v NullableV3RolesPostRequestRelationships) Get() *V3RolesPostRequestRelationships { + return v.value +} + +func (v *NullableV3RolesPostRequestRelationships) Set(val *V3RolesPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3RolesPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RolesPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RolesPostRequestRelationships(val *V3RolesPostRequestRelationships) *NullableV3RolesPostRequestRelationships { + return &NullableV3RolesPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3RolesPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RolesPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_roles_post_request_relationships_user.go b/model__v3_roles_post_request_relationships_user.go new file mode 100644 index 0000000..a67584a --- /dev/null +++ b/model__v3_roles_post_request_relationships_user.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RolesPostRequestRelationshipsUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RolesPostRequestRelationshipsUser{} + +// V3RolesPostRequestRelationshipsUser struct for V3RolesPostRequestRelationshipsUser +type V3RolesPostRequestRelationshipsUser struct { + Data *V3RolesPostRequestRelationshipsUserData `json:"data,omitempty"` +} + +// NewV3RolesPostRequestRelationshipsUser instantiates a new V3RolesPostRequestRelationshipsUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RolesPostRequestRelationshipsUser() *V3RolesPostRequestRelationshipsUser { + this := V3RolesPostRequestRelationshipsUser{} + return &this +} + +// NewV3RolesPostRequestRelationshipsUserWithDefaults instantiates a new V3RolesPostRequestRelationshipsUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RolesPostRequestRelationshipsUserWithDefaults() *V3RolesPostRequestRelationshipsUser { + this := V3RolesPostRequestRelationshipsUser{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationshipsUser) GetData() V3RolesPostRequestRelationshipsUserData { + if o == nil || IsNil(o.Data) { + var ret V3RolesPostRequestRelationshipsUserData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationshipsUser) GetDataOk() (*V3RolesPostRequestRelationshipsUserData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationshipsUser) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3RolesPostRequestRelationshipsUserData and assigns it to the Data field. +func (o *V3RolesPostRequestRelationshipsUser) SetData(v V3RolesPostRequestRelationshipsUserData) { + o.Data = &v +} + +func (o V3RolesPostRequestRelationshipsUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RolesPostRequestRelationshipsUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3RolesPostRequestRelationshipsUser struct { + value *V3RolesPostRequestRelationshipsUser + isSet bool +} + +func (v NullableV3RolesPostRequestRelationshipsUser) Get() *V3RolesPostRequestRelationshipsUser { + return v.value +} + +func (v *NullableV3RolesPostRequestRelationshipsUser) Set(val *V3RolesPostRequestRelationshipsUser) { + v.value = val + v.isSet = true +} + +func (v NullableV3RolesPostRequestRelationshipsUser) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RolesPostRequestRelationshipsUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RolesPostRequestRelationshipsUser(val *V3RolesPostRequestRelationshipsUser) *NullableV3RolesPostRequestRelationshipsUser { + return &NullableV3RolesPostRequestRelationshipsUser{value: val, isSet: true} +} + +func (v NullableV3RolesPostRequestRelationshipsUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RolesPostRequestRelationshipsUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_roles_post_request_relationships_user_data.go b/model__v3_roles_post_request_relationships_user_data.go new file mode 100644 index 0000000..c8fcb87 --- /dev/null +++ b/model__v3_roles_post_request_relationships_user_data.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RolesPostRequestRelationshipsUserData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RolesPostRequestRelationshipsUserData{} + +// V3RolesPostRequestRelationshipsUserData struct for V3RolesPostRequestRelationshipsUserData +type V3RolesPostRequestRelationshipsUserData struct { + Guid *string `json:"guid,omitempty"` + Origin *string `json:"origin,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewV3RolesPostRequestRelationshipsUserData instantiates a new V3RolesPostRequestRelationshipsUserData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RolesPostRequestRelationshipsUserData() *V3RolesPostRequestRelationshipsUserData { + this := V3RolesPostRequestRelationshipsUserData{} + return &this +} + +// NewV3RolesPostRequestRelationshipsUserDataWithDefaults instantiates a new V3RolesPostRequestRelationshipsUserData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RolesPostRequestRelationshipsUserDataWithDefaults() *V3RolesPostRequestRelationshipsUserData { + this := V3RolesPostRequestRelationshipsUserData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationshipsUserData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationshipsUserData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationshipsUserData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3RolesPostRequestRelationshipsUserData) SetGuid(v string) { + o.Guid = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationshipsUserData) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationshipsUserData) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationshipsUserData) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *V3RolesPostRequestRelationshipsUserData) SetOrigin(v string) { + o.Origin = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *V3RolesPostRequestRelationshipsUserData) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RolesPostRequestRelationshipsUserData) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *V3RolesPostRequestRelationshipsUserData) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *V3RolesPostRequestRelationshipsUserData) SetUsername(v string) { + o.Username = &v +} + +func (o V3RolesPostRequestRelationshipsUserData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RolesPostRequestRelationshipsUserData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableV3RolesPostRequestRelationshipsUserData struct { + value *V3RolesPostRequestRelationshipsUserData + isSet bool +} + +func (v NullableV3RolesPostRequestRelationshipsUserData) Get() *V3RolesPostRequestRelationshipsUserData { + return v.value +} + +func (v *NullableV3RolesPostRequestRelationshipsUserData) Set(val *V3RolesPostRequestRelationshipsUserData) { + v.value = val + v.isSet = true +} + +func (v NullableV3RolesPostRequestRelationshipsUserData) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RolesPostRequestRelationshipsUserData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RolesPostRequestRelationshipsUserData(val *V3RolesPostRequestRelationshipsUserData) *NullableV3RolesPostRequestRelationshipsUserData { + return &NullableV3RolesPostRequestRelationshipsUserData{value: val, isSet: true} +} + +func (v NullableV3RolesPostRequestRelationshipsUserData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RolesPostRequestRelationshipsUserData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_routes_get_200_response.go b/model__v3_routes_get_200_response.go new file mode 100644 index 0000000..78e0aa6 --- /dev/null +++ b/model__v3_routes_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RoutesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RoutesGet200Response{} + +// V3RoutesGet200Response struct for V3RoutesGet200Response +type V3RoutesGet200Response struct { + Pagination *V3RoutesGet200ResponsePagination `json:"pagination,omitempty"` + Resources []Route `json:"resources,omitempty"` +} + +// NewV3RoutesGet200Response instantiates a new V3RoutesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RoutesGet200Response() *V3RoutesGet200Response { + this := V3RoutesGet200Response{} + return &this +} + +// NewV3RoutesGet200ResponseWithDefaults instantiates a new V3RoutesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RoutesGet200ResponseWithDefaults() *V3RoutesGet200Response { + this := V3RoutesGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3RoutesGet200Response) GetPagination() V3RoutesGet200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret V3RoutesGet200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200Response) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3RoutesGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given V3RoutesGet200ResponsePagination and assigns it to the Pagination field. +func (o *V3RoutesGet200Response) SetPagination(v V3RoutesGet200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3RoutesGet200Response) GetResources() []Route { + if o == nil || IsNil(o.Resources) { + var ret []Route + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200Response) GetResourcesOk() ([]Route, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3RoutesGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Route and assigns it to the Resources field. +func (o *V3RoutesGet200Response) SetResources(v []Route) { + o.Resources = v +} + +func (o V3RoutesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RoutesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3RoutesGet200Response struct { + value *V3RoutesGet200Response + isSet bool +} + +func (v NullableV3RoutesGet200Response) Get() *V3RoutesGet200Response { + return v.value +} + +func (v *NullableV3RoutesGet200Response) Set(val *V3RoutesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3RoutesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RoutesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RoutesGet200Response(val *V3RoutesGet200Response) *NullableV3RoutesGet200Response { + return &NullableV3RoutesGet200Response{value: val, isSet: true} +} + +func (v NullableV3RoutesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RoutesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_routes_get_200_response_pagination.go b/model__v3_routes_get_200_response_pagination.go new file mode 100644 index 0000000..2b2e83e --- /dev/null +++ b/model__v3_routes_get_200_response_pagination.go @@ -0,0 +1,316 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RoutesGet200ResponsePagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RoutesGet200ResponsePagination{} + +// V3RoutesGet200ResponsePagination struct for V3RoutesGet200ResponsePagination +type V3RoutesGet200ResponsePagination struct { + First *Get200ResponseLinksLogCache `json:"first,omitempty"` + Last *Get200ResponseLinksLogCache `json:"last,omitempty"` + Next *Get200ResponseLinksLogCache `json:"next,omitempty"` + Previous NullableV3Get200ResponseLinksServiceInstances `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewV3RoutesGet200ResponsePagination instantiates a new V3RoutesGet200ResponsePagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RoutesGet200ResponsePagination() *V3RoutesGet200ResponsePagination { + this := V3RoutesGet200ResponsePagination{} + return &this +} + +// NewV3RoutesGet200ResponsePaginationWithDefaults instantiates a new V3RoutesGet200ResponsePagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RoutesGet200ResponsePaginationWithDefaults() *V3RoutesGet200ResponsePagination { + this := V3RoutesGet200ResponsePagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *V3RoutesGet200ResponsePagination) GetFirst() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.First) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200ResponsePagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given Get200ResponseLinksLogCache and assigns it to the First field. +func (o *V3RoutesGet200ResponsePagination) SetFirst(v Get200ResponseLinksLogCache) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *V3RoutesGet200ResponsePagination) GetLast() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Last) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200ResponsePagination) GetLastOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Last field. +func (o *V3RoutesGet200ResponsePagination) SetLast(v Get200ResponseLinksLogCache) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *V3RoutesGet200ResponsePagination) GetNext() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Next) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200ResponsePagination) GetNextOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Next field. +func (o *V3RoutesGet200ResponsePagination) SetNext(v Get200ResponseLinksLogCache) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3RoutesGet200ResponsePagination) GetPrevious() V3Get200ResponseLinksServiceInstances { + if o == nil || IsNil(o.Previous.Get()) { + var ret V3Get200ResponseLinksServiceInstances + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3RoutesGet200ResponsePagination) GetPreviousOk() (*V3Get200ResponseLinksServiceInstances, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableV3Get200ResponseLinksServiceInstances and assigns it to the Previous field. +func (o *V3RoutesGet200ResponsePagination) SetPrevious(v V3Get200ResponseLinksServiceInstances) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *V3RoutesGet200ResponsePagination) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *V3RoutesGet200ResponsePagination) UnsetPrevious() { + o.Previous.Unset() +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *V3RoutesGet200ResponsePagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200ResponsePagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *V3RoutesGet200ResponsePagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *V3RoutesGet200ResponsePagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesGet200ResponsePagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *V3RoutesGet200ResponsePagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *V3RoutesGet200ResponsePagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o V3RoutesGet200ResponsePagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RoutesGet200ResponsePagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableV3RoutesGet200ResponsePagination struct { + value *V3RoutesGet200ResponsePagination + isSet bool +} + +func (v NullableV3RoutesGet200ResponsePagination) Get() *V3RoutesGet200ResponsePagination { + return v.value +} + +func (v *NullableV3RoutesGet200ResponsePagination) Set(val *V3RoutesGet200ResponsePagination) { + v.value = val + v.isSet = true +} + +func (v NullableV3RoutesGet200ResponsePagination) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RoutesGet200ResponsePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RoutesGet200ResponsePagination(val *V3RoutesGet200ResponsePagination) *NullableV3RoutesGet200ResponsePagination { + return &NullableV3RoutesGet200ResponsePagination{value: val, isSet: true} +} + +func (v NullableV3RoutesGet200ResponsePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RoutesGet200ResponsePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_routes_post_request.go b/model__v3_routes_post_request.go new file mode 100644 index 0000000..38df714 --- /dev/null +++ b/model__v3_routes_post_request.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RoutesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RoutesPostRequest{} + +// V3RoutesPostRequest struct for V3RoutesPostRequest +type V3RoutesPostRequest struct { + Host *string `json:"host,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Path *string `json:"path,omitempty"` + Port *int32 `json:"port,omitempty"` + Relationships *V3RoutesPostRequestRelationships `json:"relationships,omitempty"` +} + +// NewV3RoutesPostRequest instantiates a new V3RoutesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RoutesPostRequest() *V3RoutesPostRequest { + this := V3RoutesPostRequest{} + return &this +} + +// NewV3RoutesPostRequestWithDefaults instantiates a new V3RoutesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RoutesPostRequestWithDefaults() *V3RoutesPostRequest { + this := V3RoutesPostRequest{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *V3RoutesPostRequest) GetHost() string { + if o == nil || IsNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequest) GetHostOk() (*string, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *V3RoutesPostRequest) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *V3RoutesPostRequest) SetHost(v string) { + o.Host = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3RoutesPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3RoutesPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3RoutesPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *V3RoutesPostRequest) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequest) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *V3RoutesPostRequest) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *V3RoutesPostRequest) SetPath(v string) { + o.Path = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *V3RoutesPostRequest) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequest) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *V3RoutesPostRequest) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *V3RoutesPostRequest) SetPort(v int32) { + o.Port = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *V3RoutesPostRequest) GetRelationships() V3RoutesPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3RoutesPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequest) GetRelationshipsOk() (*V3RoutesPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *V3RoutesPostRequest) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3RoutesPostRequestRelationships and assigns it to the Relationships field. +func (o *V3RoutesPostRequest) SetRelationships(v V3RoutesPostRequestRelationships) { + o.Relationships = &v +} + +func (o V3RoutesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RoutesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableV3RoutesPostRequest struct { + value *V3RoutesPostRequest + isSet bool +} + +func (v NullableV3RoutesPostRequest) Get() *V3RoutesPostRequest { + return v.value +} + +func (v *NullableV3RoutesPostRequest) Set(val *V3RoutesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3RoutesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RoutesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RoutesPostRequest(val *V3RoutesPostRequest) *NullableV3RoutesPostRequest { + return &NullableV3RoutesPostRequest{value: val, isSet: true} +} + +func (v NullableV3RoutesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RoutesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_routes_post_request_relationships.go b/model__v3_routes_post_request_relationships.go new file mode 100644 index 0000000..0017909 --- /dev/null +++ b/model__v3_routes_post_request_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3RoutesPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3RoutesPostRequestRelationships{} + +// V3RoutesPostRequestRelationships struct for V3RoutesPostRequestRelationships +type V3RoutesPostRequestRelationships struct { + Domain *V3AppsPostRequestRelationshipsSpace `json:"domain,omitempty"` + Space *V3AppsPostRequestRelationshipsSpace `json:"space,omitempty"` +} + +// NewV3RoutesPostRequestRelationships instantiates a new V3RoutesPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3RoutesPostRequestRelationships() *V3RoutesPostRequestRelationships { + this := V3RoutesPostRequestRelationships{} + return &this +} + +// NewV3RoutesPostRequestRelationshipsWithDefaults instantiates a new V3RoutesPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3RoutesPostRequestRelationshipsWithDefaults() *V3RoutesPostRequestRelationships { + this := V3RoutesPostRequestRelationships{} + return &this +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *V3RoutesPostRequestRelationships) GetDomain() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Domain) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequestRelationships) GetDomainOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *V3RoutesPostRequestRelationships) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Domain field. +func (o *V3RoutesPostRequestRelationships) SetDomain(v V3AppsPostRequestRelationshipsSpace) { + o.Domain = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *V3RoutesPostRequestRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3RoutesPostRequestRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *V3RoutesPostRequestRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Space field. +func (o *V3RoutesPostRequestRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace) { + o.Space = &v +} + +func (o V3RoutesPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3RoutesPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableV3RoutesPostRequestRelationships struct { + value *V3RoutesPostRequestRelationships + isSet bool +} + +func (v NullableV3RoutesPostRequestRelationships) Get() *V3RoutesPostRequestRelationships { + return v.value +} + +func (v *NullableV3RoutesPostRequestRelationships) Set(val *V3RoutesPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3RoutesPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3RoutesPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3RoutesPostRequestRelationships(val *V3RoutesPostRequestRelationships) *NullableV3RoutesPostRequestRelationships { + return &NullableV3RoutesPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3RoutesPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3RoutesPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_credential_bindings__guid__details_get_200_response.go b/model__v3_service_credential_bindings__guid__details_get_200_response.go new file mode 100644 index 0000000..7ccf47f --- /dev/null +++ b/model__v3_service_credential_bindings__guid__details_get_200_response.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceCredentialBindingsGuidDetailsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceCredentialBindingsGuidDetailsGet200Response{} + +// V3ServiceCredentialBindingsGuidDetailsGet200Response struct for V3ServiceCredentialBindingsGuidDetailsGet200Response +type V3ServiceCredentialBindingsGuidDetailsGet200Response struct { + Credentials map[string]interface{} `json:"credentials,omitempty"` + SyslogDrainUrl *string `json:"syslog_drain_url,omitempty"` + VolumeMounts []string `json:"volume_mounts,omitempty"` +} + +// NewV3ServiceCredentialBindingsGuidDetailsGet200Response instantiates a new V3ServiceCredentialBindingsGuidDetailsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceCredentialBindingsGuidDetailsGet200Response() *V3ServiceCredentialBindingsGuidDetailsGet200Response { + this := V3ServiceCredentialBindingsGuidDetailsGet200Response{} + return &this +} + +// NewV3ServiceCredentialBindingsGuidDetailsGet200ResponseWithDefaults instantiates a new V3ServiceCredentialBindingsGuidDetailsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceCredentialBindingsGuidDetailsGet200ResponseWithDefaults() *V3ServiceCredentialBindingsGuidDetailsGet200Response { + this := V3ServiceCredentialBindingsGuidDetailsGet200Response{} + return &this +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetCredentials() map[string]interface{} { + if o == nil || IsNil(o.Credentials) { + var ret map[string]interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetCredentialsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return map[string]interface{}{}, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given map[string]interface{} and assigns it to the Credentials field. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetCredentials(v map[string]interface{}) { + o.Credentials = v +} + +// GetSyslogDrainUrl returns the SyslogDrainUrl field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetSyslogDrainUrl() string { + if o == nil || IsNil(o.SyslogDrainUrl) { + var ret string + return ret + } + return *o.SyslogDrainUrl +} + +// GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetSyslogDrainUrlOk() (*string, bool) { + if o == nil || IsNil(o.SyslogDrainUrl) { + return nil, false + } + return o.SyslogDrainUrl, true +} + +// HasSyslogDrainUrl returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasSyslogDrainUrl() bool { + if o != nil && !IsNil(o.SyslogDrainUrl) { + return true + } + + return false +} + +// SetSyslogDrainUrl gets a reference to the given string and assigns it to the SyslogDrainUrl field. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetSyslogDrainUrl(v string) { + o.SyslogDrainUrl = &v +} + +// GetVolumeMounts returns the VolumeMounts field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetVolumeMounts() []string { + if o == nil || IsNil(o.VolumeMounts) { + var ret []string + return ret + } + return o.VolumeMounts +} + +// GetVolumeMountsOk returns a tuple with the VolumeMounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) GetVolumeMountsOk() ([]string, bool) { + if o == nil || IsNil(o.VolumeMounts) { + return nil, false + } + return o.VolumeMounts, true +} + +// HasVolumeMounts returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) HasVolumeMounts() bool { + if o != nil && !IsNil(o.VolumeMounts) { + return true + } + + return false +} + +// SetVolumeMounts gets a reference to the given []string and assigns it to the VolumeMounts field. +func (o *V3ServiceCredentialBindingsGuidDetailsGet200Response) SetVolumeMounts(v []string) { + o.VolumeMounts = v +} + +func (o V3ServiceCredentialBindingsGuidDetailsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceCredentialBindingsGuidDetailsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.SyslogDrainUrl) { + toSerialize["syslog_drain_url"] = o.SyslogDrainUrl + } + if !IsNil(o.VolumeMounts) { + toSerialize["volume_mounts"] = o.VolumeMounts + } + return toSerialize, nil +} + +type NullableV3ServiceCredentialBindingsGuidDetailsGet200Response struct { + value *V3ServiceCredentialBindingsGuidDetailsGet200Response + isSet bool +} + +func (v NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) Get() *V3ServiceCredentialBindingsGuidDetailsGet200Response { + return v.value +} + +func (v *NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) Set(val *V3ServiceCredentialBindingsGuidDetailsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceCredentialBindingsGuidDetailsGet200Response(val *V3ServiceCredentialBindingsGuidDetailsGet200Response) *NullableV3ServiceCredentialBindingsGuidDetailsGet200Response { + return &NullableV3ServiceCredentialBindingsGuidDetailsGet200Response{value: val, isSet: true} +} + +func (v NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceCredentialBindingsGuidDetailsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_credential_bindings__guid__patch_request.go b/model__v3_service_credential_bindings__guid__patch_request.go new file mode 100644 index 0000000..c6dbea7 --- /dev/null +++ b/model__v3_service_credential_bindings__guid__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceCredentialBindingsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceCredentialBindingsGuidPatchRequest{} + +// V3ServiceCredentialBindingsGuidPatchRequest struct for V3ServiceCredentialBindingsGuidPatchRequest +type V3ServiceCredentialBindingsGuidPatchRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` +} + +// NewV3ServiceCredentialBindingsGuidPatchRequest instantiates a new V3ServiceCredentialBindingsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceCredentialBindingsGuidPatchRequest() *V3ServiceCredentialBindingsGuidPatchRequest { + this := V3ServiceCredentialBindingsGuidPatchRequest{} + return &this +} + +// NewV3ServiceCredentialBindingsGuidPatchRequestWithDefaults instantiates a new V3ServiceCredentialBindingsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceCredentialBindingsGuidPatchRequestWithDefaults() *V3ServiceCredentialBindingsGuidPatchRequest { + this := V3ServiceCredentialBindingsGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsGuidPatchRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsGuidPatchRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3ServiceCredentialBindingsGuidPatchRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +func (o V3ServiceCredentialBindingsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceCredentialBindingsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3ServiceCredentialBindingsGuidPatchRequest struct { + value *V3ServiceCredentialBindingsGuidPatchRequest + isSet bool +} + +func (v NullableV3ServiceCredentialBindingsGuidPatchRequest) Get() *V3ServiceCredentialBindingsGuidPatchRequest { + return v.value +} + +func (v *NullableV3ServiceCredentialBindingsGuidPatchRequest) Set(val *V3ServiceCredentialBindingsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceCredentialBindingsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceCredentialBindingsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceCredentialBindingsGuidPatchRequest(val *V3ServiceCredentialBindingsGuidPatchRequest) *NullableV3ServiceCredentialBindingsGuidPatchRequest { + return &NullableV3ServiceCredentialBindingsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceCredentialBindingsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceCredentialBindingsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_credential_bindings_post_request.go b/model__v3_service_credential_bindings_post_request.go new file mode 100644 index 0000000..72006af --- /dev/null +++ b/model__v3_service_credential_bindings_post_request.go @@ -0,0 +1,294 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3ServiceCredentialBindingsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceCredentialBindingsPostRequest{} + +// V3ServiceCredentialBindingsPostRequest struct for V3ServiceCredentialBindingsPostRequest +type V3ServiceCredentialBindingsPostRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` + Relationships V3ServiceCredentialBindingsPostRequestRelationships `json:"relationships"` + Type string `json:"type"` +} + +type _V3ServiceCredentialBindingsPostRequest V3ServiceCredentialBindingsPostRequest + +// NewV3ServiceCredentialBindingsPostRequest instantiates a new V3ServiceCredentialBindingsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceCredentialBindingsPostRequest(relationships V3ServiceCredentialBindingsPostRequestRelationships, type_ string) *V3ServiceCredentialBindingsPostRequest { + this := V3ServiceCredentialBindingsPostRequest{} + this.Relationships = relationships + this.Type = type_ + return &this +} + +// NewV3ServiceCredentialBindingsPostRequestWithDefaults instantiates a new V3ServiceCredentialBindingsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceCredentialBindingsPostRequestWithDefaults() *V3ServiceCredentialBindingsPostRequest { + this := V3ServiceCredentialBindingsPostRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3ServiceCredentialBindingsPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsPostRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsPostRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3ServiceCredentialBindingsPostRequest) SetName(v string) { + o.Name = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsPostRequest) GetParameters() map[string]interface{} { + if o == nil || IsNil(o.Parameters) { + var ret map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequest) GetParametersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsPostRequest) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field. +func (o *V3ServiceCredentialBindingsPostRequest) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +// GetRelationships returns the Relationships field value +func (o *V3ServiceCredentialBindingsPostRequest) GetRelationships() V3ServiceCredentialBindingsPostRequestRelationships { + if o == nil { + var ret V3ServiceCredentialBindingsPostRequestRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequest) GetRelationshipsOk() (*V3ServiceCredentialBindingsPostRequestRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *V3ServiceCredentialBindingsPostRequest) SetRelationships(v V3ServiceCredentialBindingsPostRequestRelationships) { + o.Relationships = v +} + +// GetType returns the Type field value +func (o *V3ServiceCredentialBindingsPostRequest) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *V3ServiceCredentialBindingsPostRequest) SetType(v string) { + o.Type = v +} + +func (o V3ServiceCredentialBindingsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceCredentialBindingsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + toSerialize["relationships"] = o.Relationships + toSerialize["type"] = o.Type + return toSerialize, nil +} + +func (o *V3ServiceCredentialBindingsPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "relationships", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3ServiceCredentialBindingsPostRequest := _V3ServiceCredentialBindingsPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3ServiceCredentialBindingsPostRequest) + + if err != nil { + return err + } + + *o = V3ServiceCredentialBindingsPostRequest(varV3ServiceCredentialBindingsPostRequest) + + return err +} + +type NullableV3ServiceCredentialBindingsPostRequest struct { + value *V3ServiceCredentialBindingsPostRequest + isSet bool +} + +func (v NullableV3ServiceCredentialBindingsPostRequest) Get() *V3ServiceCredentialBindingsPostRequest { + return v.value +} + +func (v *NullableV3ServiceCredentialBindingsPostRequest) Set(val *V3ServiceCredentialBindingsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceCredentialBindingsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceCredentialBindingsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceCredentialBindingsPostRequest(val *V3ServiceCredentialBindingsPostRequest) *NullableV3ServiceCredentialBindingsPostRequest { + return &NullableV3ServiceCredentialBindingsPostRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceCredentialBindingsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceCredentialBindingsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_credential_bindings_post_request_relationships.go b/model__v3_service_credential_bindings_post_request_relationships.go new file mode 100644 index 0000000..160a5f2 --- /dev/null +++ b/model__v3_service_credential_bindings_post_request_relationships.go @@ -0,0 +1,194 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3ServiceCredentialBindingsPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceCredentialBindingsPostRequestRelationships{} + +// V3ServiceCredentialBindingsPostRequestRelationships struct for V3ServiceCredentialBindingsPostRequestRelationships +type V3ServiceCredentialBindingsPostRequestRelationships struct { + App *V3AppsPostRequestRelationshipsSpace `json:"app,omitempty"` + ServiceInstance V3AppsPostRequestRelationshipsSpace `json:"service_instance"` +} + +type _V3ServiceCredentialBindingsPostRequestRelationships V3ServiceCredentialBindingsPostRequestRelationships + +// NewV3ServiceCredentialBindingsPostRequestRelationships instantiates a new V3ServiceCredentialBindingsPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceCredentialBindingsPostRequestRelationships(serviceInstance V3AppsPostRequestRelationshipsSpace) *V3ServiceCredentialBindingsPostRequestRelationships { + this := V3ServiceCredentialBindingsPostRequestRelationships{} + this.ServiceInstance = serviceInstance + return &this +} + +// NewV3ServiceCredentialBindingsPostRequestRelationshipsWithDefaults instantiates a new V3ServiceCredentialBindingsPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceCredentialBindingsPostRequestRelationshipsWithDefaults() *V3ServiceCredentialBindingsPostRequestRelationships { + this := V3ServiceCredentialBindingsPostRequestRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetApp() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.App) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *V3ServiceCredentialBindingsPostRequestRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the App field. +func (o *V3ServiceCredentialBindingsPostRequestRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace) { + o.App = &v +} + +// GetServiceInstance returns the ServiceInstance field value +func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace { + if o == nil { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + + return o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value +// and a boolean to check if the value has been set. +func (o *V3ServiceCredentialBindingsPostRequestRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil { + return nil, false + } + return &o.ServiceInstance, true +} + +// SetServiceInstance sets field value +func (o *V3ServiceCredentialBindingsPostRequestRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace) { + o.ServiceInstance = v +} + +func (o V3ServiceCredentialBindingsPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceCredentialBindingsPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + toSerialize["service_instance"] = o.ServiceInstance + return toSerialize, nil +} + +func (o *V3ServiceCredentialBindingsPostRequestRelationships) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "service_instance", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3ServiceCredentialBindingsPostRequestRelationships := _V3ServiceCredentialBindingsPostRequestRelationships{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3ServiceCredentialBindingsPostRequestRelationships) + + if err != nil { + return err + } + + *o = V3ServiceCredentialBindingsPostRequestRelationships(varV3ServiceCredentialBindingsPostRequestRelationships) + + return err +} + +type NullableV3ServiceCredentialBindingsPostRequestRelationships struct { + value *V3ServiceCredentialBindingsPostRequestRelationships + isSet bool +} + +func (v NullableV3ServiceCredentialBindingsPostRequestRelationships) Get() *V3ServiceCredentialBindingsPostRequestRelationships { + return v.value +} + +func (v *NullableV3ServiceCredentialBindingsPostRequestRelationships) Set(val *V3ServiceCredentialBindingsPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceCredentialBindingsPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceCredentialBindingsPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceCredentialBindingsPostRequestRelationships(val *V3ServiceCredentialBindingsPostRequestRelationships) *NullableV3ServiceCredentialBindingsPostRequestRelationships { + return &NullableV3ServiceCredentialBindingsPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3ServiceCredentialBindingsPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceCredentialBindingsPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_instances__guid__patch_request.go b/model__v3_service_instances__guid__patch_request.go new file mode 100644 index 0000000..8241df3 --- /dev/null +++ b/model__v3_service_instances__guid__patch_request.go @@ -0,0 +1,157 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "gopkg.in/validator.v2" + "fmt" +) + +// V3ServiceInstancesGuidPatchRequest - struct for V3ServiceInstancesGuidPatchRequest +type V3ServiceInstancesGuidPatchRequest struct { + ManagedServiceInstanceUpdate *ManagedServiceInstanceUpdate + UserProvidedServiceInstanceUpdate *UserProvidedServiceInstanceUpdate +} + +// ManagedServiceInstanceUpdateAsV3ServiceInstancesGuidPatchRequest is a convenience function that returns ManagedServiceInstanceUpdate wrapped in V3ServiceInstancesGuidPatchRequest +func ManagedServiceInstanceUpdateAsV3ServiceInstancesGuidPatchRequest(v *ManagedServiceInstanceUpdate) V3ServiceInstancesGuidPatchRequest { + return V3ServiceInstancesGuidPatchRequest{ + ManagedServiceInstanceUpdate: v, + } +} + +// UserProvidedServiceInstanceUpdateAsV3ServiceInstancesGuidPatchRequest is a convenience function that returns UserProvidedServiceInstanceUpdate wrapped in V3ServiceInstancesGuidPatchRequest +func UserProvidedServiceInstanceUpdateAsV3ServiceInstancesGuidPatchRequest(v *UserProvidedServiceInstanceUpdate) V3ServiceInstancesGuidPatchRequest { + return V3ServiceInstancesGuidPatchRequest{ + UserProvidedServiceInstanceUpdate: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *V3ServiceInstancesGuidPatchRequest) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ManagedServiceInstanceUpdate + err = newStrictDecoder(data).Decode(&dst.ManagedServiceInstanceUpdate) + if err == nil { + jsonManagedServiceInstanceUpdate, _ := json.Marshal(dst.ManagedServiceInstanceUpdate) + if string(jsonManagedServiceInstanceUpdate) == "{}" { // empty struct + dst.ManagedServiceInstanceUpdate = nil + } else { + if err = validator.Validate(dst.ManagedServiceInstanceUpdate); err != nil { + dst.ManagedServiceInstanceUpdate = nil + } else { + match++ + } + } + } else { + dst.ManagedServiceInstanceUpdate = nil + } + + // try to unmarshal data into UserProvidedServiceInstanceUpdate + err = newStrictDecoder(data).Decode(&dst.UserProvidedServiceInstanceUpdate) + if err == nil { + jsonUserProvidedServiceInstanceUpdate, _ := json.Marshal(dst.UserProvidedServiceInstanceUpdate) + if string(jsonUserProvidedServiceInstanceUpdate) == "{}" { // empty struct + dst.UserProvidedServiceInstanceUpdate = nil + } else { + if err = validator.Validate(dst.UserProvidedServiceInstanceUpdate); err != nil { + dst.UserProvidedServiceInstanceUpdate = nil + } else { + match++ + } + } + } else { + dst.UserProvidedServiceInstanceUpdate = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ManagedServiceInstanceUpdate = nil + dst.UserProvidedServiceInstanceUpdate = nil + + return fmt.Errorf("data matches more than one schema in oneOf(V3ServiceInstancesGuidPatchRequest)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(V3ServiceInstancesGuidPatchRequest)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src V3ServiceInstancesGuidPatchRequest) MarshalJSON() ([]byte, error) { + if src.ManagedServiceInstanceUpdate != nil { + return json.Marshal(&src.ManagedServiceInstanceUpdate) + } + + if src.UserProvidedServiceInstanceUpdate != nil { + return json.Marshal(&src.UserProvidedServiceInstanceUpdate) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *V3ServiceInstancesGuidPatchRequest) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.ManagedServiceInstanceUpdate != nil { + return obj.ManagedServiceInstanceUpdate + } + + if obj.UserProvidedServiceInstanceUpdate != nil { + return obj.UserProvidedServiceInstanceUpdate + } + + // all schemas are nil + return nil +} + +type NullableV3ServiceInstancesGuidPatchRequest struct { + value *V3ServiceInstancesGuidPatchRequest + isSet bool +} + +func (v NullableV3ServiceInstancesGuidPatchRequest) Get() *V3ServiceInstancesGuidPatchRequest { + return v.value +} + +func (v *NullableV3ServiceInstancesGuidPatchRequest) Set(val *V3ServiceInstancesGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceInstancesGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceInstancesGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceInstancesGuidPatchRequest(val *V3ServiceInstancesGuidPatchRequest) *NullableV3ServiceInstancesGuidPatchRequest { + return &NullableV3ServiceInstancesGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceInstancesGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceInstancesGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_instances__guid__relationships_shared_spaces_post_request.go b/model__v3_service_instances__guid__relationships_shared_spaces_post_request.go new file mode 100644 index 0000000..a41e5cf --- /dev/null +++ b/model__v3_service_instances__guid__relationships_shared_spaces_post_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest{} + +// V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest struct for V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest +type V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest struct { + Data []Space `json:"data,omitempty"` +} + +// NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest instantiates a new V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest() *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + this := V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest{} + return &this +} + +// NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequestWithDefaults instantiates a new V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequestWithDefaults() *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + this := V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) GetData() []Space { + if o == nil || IsNil(o.Data) { + var ret []Space + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) GetDataOk() ([]Space, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []Space and assigns it to the Data field. +func (o *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) SetData(v []Space) { + o.Data = v +} + +func (o V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest struct { + value *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest + isSet bool +} + +func (v NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) Get() *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + return v.value +} + +func (v *NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) Set(val *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest(val *V3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) *NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest { + return &NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceInstancesGuidRelationshipsSharedSpacesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_instances_get_200_response.go b/model__v3_service_instances_get_200_response.go new file mode 100644 index 0000000..3c2d3b4 --- /dev/null +++ b/model__v3_service_instances_get_200_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceInstancesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceInstancesGet200Response{} + +// V3ServiceInstancesGet200Response struct for V3ServiceInstancesGet200Response +type V3ServiceInstancesGet200Response struct { + Resources []ServiceInstance `json:"resources,omitempty"` +} + +// NewV3ServiceInstancesGet200Response instantiates a new V3ServiceInstancesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceInstancesGet200Response() *V3ServiceInstancesGet200Response { + this := V3ServiceInstancesGet200Response{} + return &this +} + +// NewV3ServiceInstancesGet200ResponseWithDefaults instantiates a new V3ServiceInstancesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceInstancesGet200ResponseWithDefaults() *V3ServiceInstancesGet200Response { + this := V3ServiceInstancesGet200Response{} + return &this +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3ServiceInstancesGet200Response) GetResources() []ServiceInstance { + if o == nil || IsNil(o.Resources) { + var ret []ServiceInstance + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceInstancesGet200Response) GetResourcesOk() ([]ServiceInstance, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3ServiceInstancesGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServiceInstance and assigns it to the Resources field. +func (o *V3ServiceInstancesGet200Response) SetResources(v []ServiceInstance) { + o.Resources = v +} + +func (o V3ServiceInstancesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceInstancesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3ServiceInstancesGet200Response struct { + value *V3ServiceInstancesGet200Response + isSet bool +} + +func (v NullableV3ServiceInstancesGet200Response) Get() *V3ServiceInstancesGet200Response { + return v.value +} + +func (v *NullableV3ServiceInstancesGet200Response) Set(val *V3ServiceInstancesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceInstancesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceInstancesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceInstancesGet200Response(val *V3ServiceInstancesGet200Response) *NullableV3ServiceInstancesGet200Response { + return &NullableV3ServiceInstancesGet200Response{value: val, isSet: true} +} + +func (v NullableV3ServiceInstancesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceInstancesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_route_bindings__guid__patch_request.go b/model__v3_service_route_bindings__guid__patch_request.go new file mode 100644 index 0000000..0431c0d --- /dev/null +++ b/model__v3_service_route_bindings__guid__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceRouteBindingsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceRouteBindingsGuidPatchRequest{} + +// V3ServiceRouteBindingsGuidPatchRequest struct for V3ServiceRouteBindingsGuidPatchRequest +type V3ServiceRouteBindingsGuidPatchRequest struct { + Metadata *Metadata `json:"metadata,omitempty"` +} + +// NewV3ServiceRouteBindingsGuidPatchRequest instantiates a new V3ServiceRouteBindingsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceRouteBindingsGuidPatchRequest() *V3ServiceRouteBindingsGuidPatchRequest { + this := V3ServiceRouteBindingsGuidPatchRequest{} + return &this +} + +// NewV3ServiceRouteBindingsGuidPatchRequestWithDefaults instantiates a new V3ServiceRouteBindingsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceRouteBindingsGuidPatchRequestWithDefaults() *V3ServiceRouteBindingsGuidPatchRequest { + this := V3ServiceRouteBindingsGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3ServiceRouteBindingsGuidPatchRequest) GetMetadata() Metadata { + if o == nil || IsNil(o.Metadata) { + var ret Metadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsGuidPatchRequest) GetMetadataOk() (*Metadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3ServiceRouteBindingsGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field. +func (o *V3ServiceRouteBindingsGuidPatchRequest) SetMetadata(v Metadata) { + o.Metadata = &v +} + +func (o V3ServiceRouteBindingsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceRouteBindingsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3ServiceRouteBindingsGuidPatchRequest struct { + value *V3ServiceRouteBindingsGuidPatchRequest + isSet bool +} + +func (v NullableV3ServiceRouteBindingsGuidPatchRequest) Get() *V3ServiceRouteBindingsGuidPatchRequest { + return v.value +} + +func (v *NullableV3ServiceRouteBindingsGuidPatchRequest) Set(val *V3ServiceRouteBindingsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceRouteBindingsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceRouteBindingsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceRouteBindingsGuidPatchRequest(val *V3ServiceRouteBindingsGuidPatchRequest) *NullableV3ServiceRouteBindingsGuidPatchRequest { + return &NullableV3ServiceRouteBindingsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceRouteBindingsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceRouteBindingsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_route_bindings_get_200_response.go b/model__v3_service_route_bindings_get_200_response.go new file mode 100644 index 0000000..eca22a9 --- /dev/null +++ b/model__v3_service_route_bindings_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceRouteBindingsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceRouteBindingsGet200Response{} + +// V3ServiceRouteBindingsGet200Response struct for V3ServiceRouteBindingsGet200Response +type V3ServiceRouteBindingsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []ServiceRouteBinding `json:"resources,omitempty"` +} + +// NewV3ServiceRouteBindingsGet200Response instantiates a new V3ServiceRouteBindingsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceRouteBindingsGet200Response() *V3ServiceRouteBindingsGet200Response { + this := V3ServiceRouteBindingsGet200Response{} + return &this +} + +// NewV3ServiceRouteBindingsGet200ResponseWithDefaults instantiates a new V3ServiceRouteBindingsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceRouteBindingsGet200ResponseWithDefaults() *V3ServiceRouteBindingsGet200Response { + this := V3ServiceRouteBindingsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3ServiceRouteBindingsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3ServiceRouteBindingsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3ServiceRouteBindingsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3ServiceRouteBindingsGet200Response) GetResources() []ServiceRouteBinding { + if o == nil || IsNil(o.Resources) { + var ret []ServiceRouteBinding + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsGet200Response) GetResourcesOk() ([]ServiceRouteBinding, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3ServiceRouteBindingsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServiceRouteBinding and assigns it to the Resources field. +func (o *V3ServiceRouteBindingsGet200Response) SetResources(v []ServiceRouteBinding) { + o.Resources = v +} + +func (o V3ServiceRouteBindingsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceRouteBindingsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3ServiceRouteBindingsGet200Response struct { + value *V3ServiceRouteBindingsGet200Response + isSet bool +} + +func (v NullableV3ServiceRouteBindingsGet200Response) Get() *V3ServiceRouteBindingsGet200Response { + return v.value +} + +func (v *NullableV3ServiceRouteBindingsGet200Response) Set(val *V3ServiceRouteBindingsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceRouteBindingsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceRouteBindingsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceRouteBindingsGet200Response(val *V3ServiceRouteBindingsGet200Response) *NullableV3ServiceRouteBindingsGet200Response { + return &NullableV3ServiceRouteBindingsGet200Response{value: val, isSet: true} +} + +func (v NullableV3ServiceRouteBindingsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceRouteBindingsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_route_bindings_post_request.go b/model__v3_service_route_bindings_post_request.go new file mode 100644 index 0000000..030a7d6 --- /dev/null +++ b/model__v3_service_route_bindings_post_request.go @@ -0,0 +1,230 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3ServiceRouteBindingsPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceRouteBindingsPostRequest{} + +// V3ServiceRouteBindingsPostRequest struct for V3ServiceRouteBindingsPostRequest +type V3ServiceRouteBindingsPostRequest struct { + Metadata *Metadata `json:"metadata,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` + Relationships ServiceRouteBindingRelationships `json:"relationships"` +} + +type _V3ServiceRouteBindingsPostRequest V3ServiceRouteBindingsPostRequest + +// NewV3ServiceRouteBindingsPostRequest instantiates a new V3ServiceRouteBindingsPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceRouteBindingsPostRequest(relationships ServiceRouteBindingRelationships) *V3ServiceRouteBindingsPostRequest { + this := V3ServiceRouteBindingsPostRequest{} + this.Relationships = relationships + return &this +} + +// NewV3ServiceRouteBindingsPostRequestWithDefaults instantiates a new V3ServiceRouteBindingsPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceRouteBindingsPostRequestWithDefaults() *V3ServiceRouteBindingsPostRequest { + this := V3ServiceRouteBindingsPostRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3ServiceRouteBindingsPostRequest) GetMetadata() Metadata { + if o == nil || IsNil(o.Metadata) { + var ret Metadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsPostRequest) GetMetadataOk() (*Metadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3ServiceRouteBindingsPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field. +func (o *V3ServiceRouteBindingsPostRequest) SetMetadata(v Metadata) { + o.Metadata = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *V3ServiceRouteBindingsPostRequest) GetParameters() map[string]interface{} { + if o == nil || IsNil(o.Parameters) { + var ret map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsPostRequest) GetParametersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *V3ServiceRouteBindingsPostRequest) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field. +func (o *V3ServiceRouteBindingsPostRequest) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +// GetRelationships returns the Relationships field value +func (o *V3ServiceRouteBindingsPostRequest) GetRelationships() ServiceRouteBindingRelationships { + if o == nil { + var ret ServiceRouteBindingRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *V3ServiceRouteBindingsPostRequest) GetRelationshipsOk() (*ServiceRouteBindingRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *V3ServiceRouteBindingsPostRequest) SetRelationships(v ServiceRouteBindingRelationships) { + o.Relationships = v +} + +func (o V3ServiceRouteBindingsPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceRouteBindingsPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + toSerialize["relationships"] = o.Relationships + return toSerialize, nil +} + +func (o *V3ServiceRouteBindingsPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "relationships", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3ServiceRouteBindingsPostRequest := _V3ServiceRouteBindingsPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3ServiceRouteBindingsPostRequest) + + if err != nil { + return err + } + + *o = V3ServiceRouteBindingsPostRequest(varV3ServiceRouteBindingsPostRequest) + + return err +} + +type NullableV3ServiceRouteBindingsPostRequest struct { + value *V3ServiceRouteBindingsPostRequest + isSet bool +} + +func (v NullableV3ServiceRouteBindingsPostRequest) Get() *V3ServiceRouteBindingsPostRequest { + return v.value +} + +func (v *NullableV3ServiceRouteBindingsPostRequest) Set(val *V3ServiceRouteBindingsPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceRouteBindingsPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceRouteBindingsPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceRouteBindingsPostRequest(val *V3ServiceRouteBindingsPostRequest) *NullableV3ServiceRouteBindingsPostRequest { + return &NullableV3ServiceRouteBindingsPostRequest{value: val, isSet: true} +} + +func (v NullableV3ServiceRouteBindingsPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceRouteBindingsPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_service_usage_events_get_200_response.go b/model__v3_service_usage_events_get_200_response.go new file mode 100644 index 0000000..7a80875 --- /dev/null +++ b/model__v3_service_usage_events_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3ServiceUsageEventsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3ServiceUsageEventsGet200Response{} + +// V3ServiceUsageEventsGet200Response struct for V3ServiceUsageEventsGet200Response +type V3ServiceUsageEventsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []ServiceUsageEvent `json:"resources,omitempty"` +} + +// NewV3ServiceUsageEventsGet200Response instantiates a new V3ServiceUsageEventsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3ServiceUsageEventsGet200Response() *V3ServiceUsageEventsGet200Response { + this := V3ServiceUsageEventsGet200Response{} + return &this +} + +// NewV3ServiceUsageEventsGet200ResponseWithDefaults instantiates a new V3ServiceUsageEventsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3ServiceUsageEventsGet200ResponseWithDefaults() *V3ServiceUsageEventsGet200Response { + this := V3ServiceUsageEventsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3ServiceUsageEventsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceUsageEventsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3ServiceUsageEventsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3ServiceUsageEventsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3ServiceUsageEventsGet200Response) GetResources() []ServiceUsageEvent { + if o == nil || IsNil(o.Resources) { + var ret []ServiceUsageEvent + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3ServiceUsageEventsGet200Response) GetResourcesOk() ([]ServiceUsageEvent, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3ServiceUsageEventsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServiceUsageEvent and assigns it to the Resources field. +func (o *V3ServiceUsageEventsGet200Response) SetResources(v []ServiceUsageEvent) { + o.Resources = v +} + +func (o V3ServiceUsageEventsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3ServiceUsageEventsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3ServiceUsageEventsGet200Response struct { + value *V3ServiceUsageEventsGet200Response + isSet bool +} + +func (v NullableV3ServiceUsageEventsGet200Response) Get() *V3ServiceUsageEventsGet200Response { + return v.value +} + +func (v *NullableV3ServiceUsageEventsGet200Response) Set(val *V3ServiceUsageEventsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3ServiceUsageEventsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3ServiceUsageEventsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3ServiceUsageEventsGet200Response(val *V3ServiceUsageEventsGet200Response) *NullableV3ServiceUsageEventsGet200Response { + return &NullableV3ServiceUsageEventsGet200Response{value: val, isSet: true} +} + +func (v NullableV3ServiceUsageEventsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3ServiceUsageEventsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_sidecars__guid__patch_request.go b/model__v3_sidecars__guid__patch_request.go new file mode 100644 index 0000000..f64e330 --- /dev/null +++ b/model__v3_sidecars__guid__patch_request.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SidecarsGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SidecarsGuidPatchRequest{} + +// V3SidecarsGuidPatchRequest struct for V3SidecarsGuidPatchRequest +type V3SidecarsGuidPatchRequest struct { + Command *string `json:"command,omitempty"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Name *string `json:"name,omitempty"` + ProcessTypes []string `json:"process_types,omitempty"` +} + +// NewV3SidecarsGuidPatchRequest instantiates a new V3SidecarsGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SidecarsGuidPatchRequest() *V3SidecarsGuidPatchRequest { + this := V3SidecarsGuidPatchRequest{} + return &this +} + +// NewV3SidecarsGuidPatchRequestWithDefaults instantiates a new V3SidecarsGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SidecarsGuidPatchRequestWithDefaults() *V3SidecarsGuidPatchRequest { + this := V3SidecarsGuidPatchRequest{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *V3SidecarsGuidPatchRequest) GetCommand() string { + if o == nil || IsNil(o.Command) { + var ret string + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SidecarsGuidPatchRequest) GetCommandOk() (*string, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *V3SidecarsGuidPatchRequest) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given string and assigns it to the Command field. +func (o *V3SidecarsGuidPatchRequest) SetCommand(v string) { + o.Command = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *V3SidecarsGuidPatchRequest) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SidecarsGuidPatchRequest) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *V3SidecarsGuidPatchRequest) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *V3SidecarsGuidPatchRequest) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3SidecarsGuidPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SidecarsGuidPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3SidecarsGuidPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3SidecarsGuidPatchRequest) SetName(v string) { + o.Name = &v +} + +// GetProcessTypes returns the ProcessTypes field value if set, zero value otherwise. +func (o *V3SidecarsGuidPatchRequest) GetProcessTypes() []string { + if o == nil || IsNil(o.ProcessTypes) { + var ret []string + return ret + } + return o.ProcessTypes +} + +// GetProcessTypesOk returns a tuple with the ProcessTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SidecarsGuidPatchRequest) GetProcessTypesOk() ([]string, bool) { + if o == nil || IsNil(o.ProcessTypes) { + return nil, false + } + return o.ProcessTypes, true +} + +// HasProcessTypes returns a boolean if a field has been set. +func (o *V3SidecarsGuidPatchRequest) HasProcessTypes() bool { + if o != nil && !IsNil(o.ProcessTypes) { + return true + } + + return false +} + +// SetProcessTypes gets a reference to the given []string and assigns it to the ProcessTypes field. +func (o *V3SidecarsGuidPatchRequest) SetProcessTypes(v []string) { + o.ProcessTypes = v +} + +func (o V3SidecarsGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SidecarsGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ProcessTypes) { + toSerialize["process_types"] = o.ProcessTypes + } + return toSerialize, nil +} + +type NullableV3SidecarsGuidPatchRequest struct { + value *V3SidecarsGuidPatchRequest + isSet bool +} + +func (v NullableV3SidecarsGuidPatchRequest) Get() *V3SidecarsGuidPatchRequest { + return v.value +} + +func (v *NullableV3SidecarsGuidPatchRequest) Set(val *V3SidecarsGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SidecarsGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SidecarsGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SidecarsGuidPatchRequest(val *V3SidecarsGuidPatchRequest) *NullableV3SidecarsGuidPatchRequest { + return &NullableV3SidecarsGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3SidecarsGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SidecarsGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas__guid__patch_request.go b/model__v3_space_quotas__guid__patch_request.go new file mode 100644 index 0000000..7f853b5 --- /dev/null +++ b/model__v3_space_quotas__guid__patch_request.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasGuidPatchRequest{} + +// V3SpaceQuotasGuidPatchRequest struct for V3SpaceQuotasGuidPatchRequest +type V3SpaceQuotasGuidPatchRequest struct { + Apps *V3SpaceQuotasPostRequestApps `json:"apps,omitempty"` + Name *string `json:"name,omitempty"` + Routes *V3SpaceQuotasPostRequestRoutes `json:"routes,omitempty"` + Services *V3SpaceQuotasPostRequestServices `json:"services,omitempty"` +} + +// NewV3SpaceQuotasGuidPatchRequest instantiates a new V3SpaceQuotasGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasGuidPatchRequest() *V3SpaceQuotasGuidPatchRequest { + this := V3SpaceQuotasGuidPatchRequest{} + return &this +} + +// NewV3SpaceQuotasGuidPatchRequestWithDefaults instantiates a new V3SpaceQuotasGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasGuidPatchRequestWithDefaults() *V3SpaceQuotasGuidPatchRequest { + this := V3SpaceQuotasGuidPatchRequest{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *V3SpaceQuotasGuidPatchRequest) GetApps() V3SpaceQuotasPostRequestApps { + if o == nil || IsNil(o.Apps) { + var ret V3SpaceQuotasPostRequestApps + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGuidPatchRequest) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *V3SpaceQuotasGuidPatchRequest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given V3SpaceQuotasPostRequestApps and assigns it to the Apps field. +func (o *V3SpaceQuotasGuidPatchRequest) SetApps(v V3SpaceQuotasPostRequestApps) { + o.Apps = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3SpaceQuotasGuidPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGuidPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3SpaceQuotasGuidPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3SpaceQuotasGuidPatchRequest) SetName(v string) { + o.Name = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *V3SpaceQuotasGuidPatchRequest) GetRoutes() V3SpaceQuotasPostRequestRoutes { + if o == nil || IsNil(o.Routes) { + var ret V3SpaceQuotasPostRequestRoutes + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGuidPatchRequest) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *V3SpaceQuotasGuidPatchRequest) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given V3SpaceQuotasPostRequestRoutes and assigns it to the Routes field. +func (o *V3SpaceQuotasGuidPatchRequest) SetRoutes(v V3SpaceQuotasPostRequestRoutes) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *V3SpaceQuotasGuidPatchRequest) GetServices() V3SpaceQuotasPostRequestServices { + if o == nil || IsNil(o.Services) { + var ret V3SpaceQuotasPostRequestServices + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGuidPatchRequest) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *V3SpaceQuotasGuidPatchRequest) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given V3SpaceQuotasPostRequestServices and assigns it to the Services field. +func (o *V3SpaceQuotasGuidPatchRequest) SetServices(v V3SpaceQuotasPostRequestServices) { + o.Services = &v +} + +func (o V3SpaceQuotasGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasGuidPatchRequest struct { + value *V3SpaceQuotasGuidPatchRequest + isSet bool +} + +func (v NullableV3SpaceQuotasGuidPatchRequest) Get() *V3SpaceQuotasGuidPatchRequest { + return v.value +} + +func (v *NullableV3SpaceQuotasGuidPatchRequest) Set(val *V3SpaceQuotasGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasGuidPatchRequest(val *V3SpaceQuotasGuidPatchRequest) *NullableV3SpaceQuotasGuidPatchRequest { + return &NullableV3SpaceQuotasGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response.go b/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response.go new file mode 100644 index 0000000..2908f88 --- /dev/null +++ b/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response{} + +// V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response struct for V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response +type V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response struct { + Data []V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` + Links *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks `json:"links,omitempty"` +} + +// NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response { + this := V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response{} + return &this +} + +// NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseWithDefaults instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseWithDefaults() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response { + this := V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetData() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetDataOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) SetData(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Data = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetLinks() V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) GetLinksOk() (*V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks and assigns it to the Links field. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) SetLinks(v V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) { + o.Links = &v +} + +func (o V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response struct { + value *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response + isSet bool +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) Get() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response { + return v.value +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) Set(val *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response(val *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response { + return &NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links.go b/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links.go new file mode 100644 index 0000000..89b16ca --- /dev/null +++ b/model__v3_space_quotas__quota_guid__relationships_spaces_post_200_response_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks{} + +// V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks struct for V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks +type V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks struct { + Self *string `json:"self,omitempty"` +} + +// NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks { + this := V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks{} + return &this +} + +// NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinksWithDefaults instantiates a new V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinksWithDefaults() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks { + this := V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) SetSelf(v string) { + o.Self = &v +} + +func (o V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks struct { + value *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks + isSet bool +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) Get() *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks { + return v.value +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) Set(val *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks(val *V3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks { + return &NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasQuotaGuidRelationshipsSpacesPost200ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_get_200_response.go b/model__v3_space_quotas_get_200_response.go new file mode 100644 index 0000000..089aadf --- /dev/null +++ b/model__v3_space_quotas_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasGet200Response{} + +// V3SpaceQuotasGet200Response struct for V3SpaceQuotasGet200Response +type V3SpaceQuotasGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []SpaceQuota `json:"resources,omitempty"` +} + +// NewV3SpaceQuotasGet200Response instantiates a new V3SpaceQuotasGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasGet200Response() *V3SpaceQuotasGet200Response { + this := V3SpaceQuotasGet200Response{} + return &this +} + +// NewV3SpaceQuotasGet200ResponseWithDefaults instantiates a new V3SpaceQuotasGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasGet200ResponseWithDefaults() *V3SpaceQuotasGet200Response { + this := V3SpaceQuotasGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3SpaceQuotasGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3SpaceQuotasGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3SpaceQuotasGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3SpaceQuotasGet200Response) GetResources() []SpaceQuota { + if o == nil || IsNil(o.Resources) { + var ret []SpaceQuota + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasGet200Response) GetResourcesOk() ([]SpaceQuota, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3SpaceQuotasGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []SpaceQuota and assigns it to the Resources field. +func (o *V3SpaceQuotasGet200Response) SetResources(v []SpaceQuota) { + o.Resources = v +} + +func (o V3SpaceQuotasGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasGet200Response struct { + value *V3SpaceQuotasGet200Response + isSet bool +} + +func (v NullableV3SpaceQuotasGet200Response) Get() *V3SpaceQuotasGet200Response { + return v.value +} + +func (v *NullableV3SpaceQuotasGet200Response) Set(val *V3SpaceQuotasGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasGet200Response(val *V3SpaceQuotasGet200Response) *NullableV3SpaceQuotasGet200Response { + return &NullableV3SpaceQuotasGet200Response{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_post_request.go b/model__v3_space_quotas_post_request.go new file mode 100644 index 0000000..2d0d57f --- /dev/null +++ b/model__v3_space_quotas_post_request.go @@ -0,0 +1,294 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3SpaceQuotasPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasPostRequest{} + +// V3SpaceQuotasPostRequest struct for V3SpaceQuotasPostRequest +type V3SpaceQuotasPostRequest struct { + Apps *V3SpaceQuotasPostRequestApps `json:"apps,omitempty"` + Name string `json:"name"` + Relationships V3SpaceQuotasPostRequestRelationships `json:"relationships"` + Routes *V3SpaceQuotasPostRequestRoutes `json:"routes,omitempty"` + Services *V3SpaceQuotasPostRequestServices `json:"services,omitempty"` +} + +type _V3SpaceQuotasPostRequest V3SpaceQuotasPostRequest + +// NewV3SpaceQuotasPostRequest instantiates a new V3SpaceQuotasPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasPostRequest(name string, relationships V3SpaceQuotasPostRequestRelationships) *V3SpaceQuotasPostRequest { + this := V3SpaceQuotasPostRequest{} + this.Name = name + this.Relationships = relationships + return &this +} + +// NewV3SpaceQuotasPostRequestWithDefaults instantiates a new V3SpaceQuotasPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasPostRequestWithDefaults() *V3SpaceQuotasPostRequest { + this := V3SpaceQuotasPostRequest{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *V3SpaceQuotasPostRequest) GetApps() V3SpaceQuotasPostRequestApps { + if o == nil || IsNil(o.Apps) { + var ret V3SpaceQuotasPostRequestApps + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequest) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given V3SpaceQuotasPostRequestApps and assigns it to the Apps field. +func (o *V3SpaceQuotasPostRequest) SetApps(v V3SpaceQuotasPostRequestApps) { + o.Apps = &v +} + +// GetName returns the Name field value +func (o *V3SpaceQuotasPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V3SpaceQuotasPostRequest) SetName(v string) { + o.Name = v +} + +// GetRelationships returns the Relationships field value +func (o *V3SpaceQuotasPostRequest) GetRelationships() V3SpaceQuotasPostRequestRelationships { + if o == nil { + var ret V3SpaceQuotasPostRequestRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequest) GetRelationshipsOk() (*V3SpaceQuotasPostRequestRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *V3SpaceQuotasPostRequest) SetRelationships(v V3SpaceQuotasPostRequestRelationships) { + o.Relationships = v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *V3SpaceQuotasPostRequest) GetRoutes() V3SpaceQuotasPostRequestRoutes { + if o == nil || IsNil(o.Routes) { + var ret V3SpaceQuotasPostRequestRoutes + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequest) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequest) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given V3SpaceQuotasPostRequestRoutes and assigns it to the Routes field. +func (o *V3SpaceQuotasPostRequest) SetRoutes(v V3SpaceQuotasPostRequestRoutes) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *V3SpaceQuotasPostRequest) GetServices() V3SpaceQuotasPostRequestServices { + if o == nil || IsNil(o.Services) { + var ret V3SpaceQuotasPostRequestServices + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequest) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequest) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given V3SpaceQuotasPostRequestServices and assigns it to the Services field. +func (o *V3SpaceQuotasPostRequest) SetServices(v V3SpaceQuotasPostRequestServices) { + o.Services = &v +} + +func (o V3SpaceQuotasPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + toSerialize["name"] = o.Name + toSerialize["relationships"] = o.Relationships + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + return toSerialize, nil +} + +func (o *V3SpaceQuotasPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "relationships", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3SpaceQuotasPostRequest := _V3SpaceQuotasPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3SpaceQuotasPostRequest) + + if err != nil { + return err + } + + *o = V3SpaceQuotasPostRequest(varV3SpaceQuotasPostRequest) + + return err +} + +type NullableV3SpaceQuotasPostRequest struct { + value *V3SpaceQuotasPostRequest + isSet bool +} + +func (v NullableV3SpaceQuotasPostRequest) Get() *V3SpaceQuotasPostRequest { + return v.value +} + +func (v *NullableV3SpaceQuotasPostRequest) Set(val *V3SpaceQuotasPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasPostRequest(val *V3SpaceQuotasPostRequest) *NullableV3SpaceQuotasPostRequest { + return &NullableV3SpaceQuotasPostRequest{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_post_request_apps.go b/model__v3_space_quotas_post_request_apps.go new file mode 100644 index 0000000..2b699c3 --- /dev/null +++ b/model__v3_space_quotas_post_request_apps.go @@ -0,0 +1,320 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasPostRequestApps type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasPostRequestApps{} + +// V3SpaceQuotasPostRequestApps struct for V3SpaceQuotasPostRequestApps +type V3SpaceQuotasPostRequestApps struct { + LogRateLimitInBytesPerSecond NullableInt32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + PerAppTasks NullableInt32 `json:"per_app_tasks,omitempty"` + PerProcessMemoryInMb NullableInt32 `json:"per_process_memory_in_mb,omitempty"` + TotalInstances NullableInt32 `json:"total_instances,omitempty"` + TotalMemoryInMb NullableInt32 `json:"total_memory_in_mb,omitempty"` +} + +// NewV3SpaceQuotasPostRequestApps instantiates a new V3SpaceQuotasPostRequestApps object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasPostRequestApps() *V3SpaceQuotasPostRequestApps { + this := V3SpaceQuotasPostRequestApps{} + return &this +} + +// NewV3SpaceQuotasPostRequestAppsWithDefaults instantiates a new V3SpaceQuotasPostRequestApps object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasPostRequestAppsWithDefaults() *V3SpaceQuotasPostRequestApps { + this := V3SpaceQuotasPostRequestApps{} + return &this +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestApps) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond.Get()) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond.Get() +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestApps) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LogRateLimitInBytesPerSecond.Get(), o.LogRateLimitInBytesPerSecond.IsSet() +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestApps) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && o.LogRateLimitInBytesPerSecond.IsSet() { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given NullableInt32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *V3SpaceQuotasPostRequestApps) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond.Set(&v) +} +// SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil +func (o *V3SpaceQuotasPostRequestApps) SetLogRateLimitInBytesPerSecondNil() { + o.LogRateLimitInBytesPerSecond.Set(nil) +} + +// UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +func (o *V3SpaceQuotasPostRequestApps) UnsetLogRateLimitInBytesPerSecond() { + o.LogRateLimitInBytesPerSecond.Unset() +} + +// GetPerAppTasks returns the PerAppTasks field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestApps) GetPerAppTasks() int32 { + if o == nil || IsNil(o.PerAppTasks.Get()) { + var ret int32 + return ret + } + return *o.PerAppTasks.Get() +} + +// GetPerAppTasksOk returns a tuple with the PerAppTasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestApps) GetPerAppTasksOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerAppTasks.Get(), o.PerAppTasks.IsSet() +} + +// HasPerAppTasks returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestApps) HasPerAppTasks() bool { + if o != nil && o.PerAppTasks.IsSet() { + return true + } + + return false +} + +// SetPerAppTasks gets a reference to the given NullableInt32 and assigns it to the PerAppTasks field. +func (o *V3SpaceQuotasPostRequestApps) SetPerAppTasks(v int32) { + o.PerAppTasks.Set(&v) +} +// SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil +func (o *V3SpaceQuotasPostRequestApps) SetPerAppTasksNil() { + o.PerAppTasks.Set(nil) +} + +// UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +func (o *V3SpaceQuotasPostRequestApps) UnsetPerAppTasks() { + o.PerAppTasks.Unset() +} + +// GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestApps) GetPerProcessMemoryInMb() int32 { + if o == nil || IsNil(o.PerProcessMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.PerProcessMemoryInMb.Get() +} + +// GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestApps) GetPerProcessMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerProcessMemoryInMb.Get(), o.PerProcessMemoryInMb.IsSet() +} + +// HasPerProcessMemoryInMb returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestApps) HasPerProcessMemoryInMb() bool { + if o != nil && o.PerProcessMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetPerProcessMemoryInMb gets a reference to the given NullableInt32 and assigns it to the PerProcessMemoryInMb field. +func (o *V3SpaceQuotasPostRequestApps) SetPerProcessMemoryInMb(v int32) { + o.PerProcessMemoryInMb.Set(&v) +} +// SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil +func (o *V3SpaceQuotasPostRequestApps) SetPerProcessMemoryInMbNil() { + o.PerProcessMemoryInMb.Set(nil) +} + +// UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +func (o *V3SpaceQuotasPostRequestApps) UnsetPerProcessMemoryInMb() { + o.PerProcessMemoryInMb.Unset() +} + +// GetTotalInstances returns the TotalInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestApps) GetTotalInstances() int32 { + if o == nil || IsNil(o.TotalInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalInstances.Get() +} + +// GetTotalInstancesOk returns a tuple with the TotalInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestApps) GetTotalInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalInstances.Get(), o.TotalInstances.IsSet() +} + +// HasTotalInstances returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestApps) HasTotalInstances() bool { + if o != nil && o.TotalInstances.IsSet() { + return true + } + + return false +} + +// SetTotalInstances gets a reference to the given NullableInt32 and assigns it to the TotalInstances field. +func (o *V3SpaceQuotasPostRequestApps) SetTotalInstances(v int32) { + o.TotalInstances.Set(&v) +} +// SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil +func (o *V3SpaceQuotasPostRequestApps) SetTotalInstancesNil() { + o.TotalInstances.Set(nil) +} + +// UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +func (o *V3SpaceQuotasPostRequestApps) UnsetTotalInstances() { + o.TotalInstances.Unset() +} + +// GetTotalMemoryInMb returns the TotalMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestApps) GetTotalMemoryInMb() int32 { + if o == nil || IsNil(o.TotalMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.TotalMemoryInMb.Get() +} + +// GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestApps) GetTotalMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalMemoryInMb.Get(), o.TotalMemoryInMb.IsSet() +} + +// HasTotalMemoryInMb returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestApps) HasTotalMemoryInMb() bool { + if o != nil && o.TotalMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetTotalMemoryInMb gets a reference to the given NullableInt32 and assigns it to the TotalMemoryInMb field. +func (o *V3SpaceQuotasPostRequestApps) SetTotalMemoryInMb(v int32) { + o.TotalMemoryInMb.Set(&v) +} +// SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil +func (o *V3SpaceQuotasPostRequestApps) SetTotalMemoryInMbNil() { + o.TotalMemoryInMb.Set(nil) +} + +// UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil +func (o *V3SpaceQuotasPostRequestApps) UnsetTotalMemoryInMb() { + o.TotalMemoryInMb.Unset() +} + +func (o V3SpaceQuotasPostRequestApps) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasPostRequestApps) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LogRateLimitInBytesPerSecond.IsSet() { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond.Get() + } + if o.PerAppTasks.IsSet() { + toSerialize["per_app_tasks"] = o.PerAppTasks.Get() + } + if o.PerProcessMemoryInMb.IsSet() { + toSerialize["per_process_memory_in_mb"] = o.PerProcessMemoryInMb.Get() + } + if o.TotalInstances.IsSet() { + toSerialize["total_instances"] = o.TotalInstances.Get() + } + if o.TotalMemoryInMb.IsSet() { + toSerialize["total_memory_in_mb"] = o.TotalMemoryInMb.Get() + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasPostRequestApps struct { + value *V3SpaceQuotasPostRequestApps + isSet bool +} + +func (v NullableV3SpaceQuotasPostRequestApps) Get() *V3SpaceQuotasPostRequestApps { + return v.value +} + +func (v *NullableV3SpaceQuotasPostRequestApps) Set(val *V3SpaceQuotasPostRequestApps) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasPostRequestApps) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasPostRequestApps) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasPostRequestApps(val *V3SpaceQuotasPostRequestApps) *NullableV3SpaceQuotasPostRequestApps { + return &NullableV3SpaceQuotasPostRequestApps{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasPostRequestApps) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasPostRequestApps) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_post_request_relationships.go b/model__v3_space_quotas_post_request_relationships.go new file mode 100644 index 0000000..caa9e13 --- /dev/null +++ b/model__v3_space_quotas_post_request_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasPostRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasPostRequestRelationships{} + +// V3SpaceQuotasPostRequestRelationships struct for V3SpaceQuotasPostRequestRelationships +type V3SpaceQuotasPostRequestRelationships struct { + Organization *V3AppsPostRequestRelationshipsSpace `json:"organization,omitempty"` +} + +// NewV3SpaceQuotasPostRequestRelationships instantiates a new V3SpaceQuotasPostRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasPostRequestRelationships() *V3SpaceQuotasPostRequestRelationships { + this := V3SpaceQuotasPostRequestRelationships{} + return &this +} + +// NewV3SpaceQuotasPostRequestRelationshipsWithDefaults instantiates a new V3SpaceQuotasPostRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasPostRequestRelationshipsWithDefaults() *V3SpaceQuotasPostRequestRelationships { + this := V3SpaceQuotasPostRequestRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *V3SpaceQuotasPostRequestRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Organization) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequestRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Organization field. +func (o *V3SpaceQuotasPostRequestRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace) { + o.Organization = &v +} + +func (o V3SpaceQuotasPostRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasPostRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasPostRequestRelationships struct { + value *V3SpaceQuotasPostRequestRelationships + isSet bool +} + +func (v NullableV3SpaceQuotasPostRequestRelationships) Get() *V3SpaceQuotasPostRequestRelationships { + return v.value +} + +func (v *NullableV3SpaceQuotasPostRequestRelationships) Set(val *V3SpaceQuotasPostRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasPostRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasPostRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasPostRequestRelationships(val *V3SpaceQuotasPostRequestRelationships) *NullableV3SpaceQuotasPostRequestRelationships { + return &NullableV3SpaceQuotasPostRequestRelationships{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasPostRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasPostRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_post_request_routes.go b/model__v3_space_quotas_post_request_routes.go new file mode 100644 index 0000000..ff0eb0d --- /dev/null +++ b/model__v3_space_quotas_post_request_routes.go @@ -0,0 +1,182 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasPostRequestRoutes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasPostRequestRoutes{} + +// V3SpaceQuotasPostRequestRoutes struct for V3SpaceQuotasPostRequestRoutes +type V3SpaceQuotasPostRequestRoutes struct { + TotalReservedPorts NullableInt32 `json:"total_reserved_ports,omitempty"` + TotalRoutes NullableInt32 `json:"total_routes,omitempty"` +} + +// NewV3SpaceQuotasPostRequestRoutes instantiates a new V3SpaceQuotasPostRequestRoutes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasPostRequestRoutes() *V3SpaceQuotasPostRequestRoutes { + this := V3SpaceQuotasPostRequestRoutes{} + return &this +} + +// NewV3SpaceQuotasPostRequestRoutesWithDefaults instantiates a new V3SpaceQuotasPostRequestRoutes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasPostRequestRoutesWithDefaults() *V3SpaceQuotasPostRequestRoutes { + this := V3SpaceQuotasPostRequestRoutes{} + return &this +} + +// GetTotalReservedPorts returns the TotalReservedPorts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestRoutes) GetTotalReservedPorts() int32 { + if o == nil || IsNil(o.TotalReservedPorts.Get()) { + var ret int32 + return ret + } + return *o.TotalReservedPorts.Get() +} + +// GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestRoutes) GetTotalReservedPortsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalReservedPorts.Get(), o.TotalReservedPorts.IsSet() +} + +// HasTotalReservedPorts returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestRoutes) HasTotalReservedPorts() bool { + if o != nil && o.TotalReservedPorts.IsSet() { + return true + } + + return false +} + +// SetTotalReservedPorts gets a reference to the given NullableInt32 and assigns it to the TotalReservedPorts field. +func (o *V3SpaceQuotasPostRequestRoutes) SetTotalReservedPorts(v int32) { + o.TotalReservedPorts.Set(&v) +} +// SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil +func (o *V3SpaceQuotasPostRequestRoutes) SetTotalReservedPortsNil() { + o.TotalReservedPorts.Set(nil) +} + +// UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +func (o *V3SpaceQuotasPostRequestRoutes) UnsetTotalReservedPorts() { + o.TotalReservedPorts.Unset() +} + +// GetTotalRoutes returns the TotalRoutes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestRoutes) GetTotalRoutes() int32 { + if o == nil || IsNil(o.TotalRoutes.Get()) { + var ret int32 + return ret + } + return *o.TotalRoutes.Get() +} + +// GetTotalRoutesOk returns a tuple with the TotalRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestRoutes) GetTotalRoutesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalRoutes.Get(), o.TotalRoutes.IsSet() +} + +// HasTotalRoutes returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestRoutes) HasTotalRoutes() bool { + if o != nil && o.TotalRoutes.IsSet() { + return true + } + + return false +} + +// SetTotalRoutes gets a reference to the given NullableInt32 and assigns it to the TotalRoutes field. +func (o *V3SpaceQuotasPostRequestRoutes) SetTotalRoutes(v int32) { + o.TotalRoutes.Set(&v) +} +// SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil +func (o *V3SpaceQuotasPostRequestRoutes) SetTotalRoutesNil() { + o.TotalRoutes.Set(nil) +} + +// UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil +func (o *V3SpaceQuotasPostRequestRoutes) UnsetTotalRoutes() { + o.TotalRoutes.Unset() +} + +func (o V3SpaceQuotasPostRequestRoutes) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasPostRequestRoutes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TotalReservedPorts.IsSet() { + toSerialize["total_reserved_ports"] = o.TotalReservedPorts.Get() + } + if o.TotalRoutes.IsSet() { + toSerialize["total_routes"] = o.TotalRoutes.Get() + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasPostRequestRoutes struct { + value *V3SpaceQuotasPostRequestRoutes + isSet bool +} + +func (v NullableV3SpaceQuotasPostRequestRoutes) Get() *V3SpaceQuotasPostRequestRoutes { + return v.value +} + +func (v *NullableV3SpaceQuotasPostRequestRoutes) Set(val *V3SpaceQuotasPostRequestRoutes) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasPostRequestRoutes) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasPostRequestRoutes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasPostRequestRoutes(val *V3SpaceQuotasPostRequestRoutes) *NullableV3SpaceQuotasPostRequestRoutes { + return &NullableV3SpaceQuotasPostRequestRoutes{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasPostRequestRoutes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasPostRequestRoutes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_space_quotas_post_request_services.go b/model__v3_space_quotas_post_request_services.go new file mode 100644 index 0000000..99a838f --- /dev/null +++ b/model__v3_space_quotas_post_request_services.go @@ -0,0 +1,218 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpaceQuotasPostRequestServices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpaceQuotasPostRequestServices{} + +// V3SpaceQuotasPostRequestServices struct for V3SpaceQuotasPostRequestServices +type V3SpaceQuotasPostRequestServices struct { + PaidServicesAllowed *bool `json:"paid_services_allowed,omitempty"` + TotalServiceInstances NullableInt32 `json:"total_service_instances,omitempty"` + TotalServiceKeys NullableInt32 `json:"total_service_keys,omitempty"` +} + +// NewV3SpaceQuotasPostRequestServices instantiates a new V3SpaceQuotasPostRequestServices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpaceQuotasPostRequestServices() *V3SpaceQuotasPostRequestServices { + this := V3SpaceQuotasPostRequestServices{} + return &this +} + +// NewV3SpaceQuotasPostRequestServicesWithDefaults instantiates a new V3SpaceQuotasPostRequestServices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpaceQuotasPostRequestServicesWithDefaults() *V3SpaceQuotasPostRequestServices { + this := V3SpaceQuotasPostRequestServices{} + return &this +} + +// GetPaidServicesAllowed returns the PaidServicesAllowed field value if set, zero value otherwise. +func (o *V3SpaceQuotasPostRequestServices) GetPaidServicesAllowed() bool { + if o == nil || IsNil(o.PaidServicesAllowed) { + var ret bool + return ret + } + return *o.PaidServicesAllowed +} + +// GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpaceQuotasPostRequestServices) GetPaidServicesAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.PaidServicesAllowed) { + return nil, false + } + return o.PaidServicesAllowed, true +} + +// HasPaidServicesAllowed returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestServices) HasPaidServicesAllowed() bool { + if o != nil && !IsNil(o.PaidServicesAllowed) { + return true + } + + return false +} + +// SetPaidServicesAllowed gets a reference to the given bool and assigns it to the PaidServicesAllowed field. +func (o *V3SpaceQuotasPostRequestServices) SetPaidServicesAllowed(v bool) { + o.PaidServicesAllowed = &v +} + +// GetTotalServiceInstances returns the TotalServiceInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceInstances() int32 { + if o == nil || IsNil(o.TotalServiceInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceInstances.Get() +} + +// GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceInstances.Get(), o.TotalServiceInstances.IsSet() +} + +// HasTotalServiceInstances returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestServices) HasTotalServiceInstances() bool { + if o != nil && o.TotalServiceInstances.IsSet() { + return true + } + + return false +} + +// SetTotalServiceInstances gets a reference to the given NullableInt32 and assigns it to the TotalServiceInstances field. +func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceInstances(v int32) { + o.TotalServiceInstances.Set(&v) +} +// SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil +func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceInstancesNil() { + o.TotalServiceInstances.Set(nil) +} + +// UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +func (o *V3SpaceQuotasPostRequestServices) UnsetTotalServiceInstances() { + o.TotalServiceInstances.Unset() +} + +// GetTotalServiceKeys returns the TotalServiceKeys field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceKeys() int32 { + if o == nil || IsNil(o.TotalServiceKeys.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceKeys.Get() +} + +// GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *V3SpaceQuotasPostRequestServices) GetTotalServiceKeysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceKeys.Get(), o.TotalServiceKeys.IsSet() +} + +// HasTotalServiceKeys returns a boolean if a field has been set. +func (o *V3SpaceQuotasPostRequestServices) HasTotalServiceKeys() bool { + if o != nil && o.TotalServiceKeys.IsSet() { + return true + } + + return false +} + +// SetTotalServiceKeys gets a reference to the given NullableInt32 and assigns it to the TotalServiceKeys field. +func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceKeys(v int32) { + o.TotalServiceKeys.Set(&v) +} +// SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil +func (o *V3SpaceQuotasPostRequestServices) SetTotalServiceKeysNil() { + o.TotalServiceKeys.Set(nil) +} + +// UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil +func (o *V3SpaceQuotasPostRequestServices) UnsetTotalServiceKeys() { + o.TotalServiceKeys.Unset() +} + +func (o V3SpaceQuotasPostRequestServices) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpaceQuotasPostRequestServices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PaidServicesAllowed) { + toSerialize["paid_services_allowed"] = o.PaidServicesAllowed + } + if o.TotalServiceInstances.IsSet() { + toSerialize["total_service_instances"] = o.TotalServiceInstances.Get() + } + if o.TotalServiceKeys.IsSet() { + toSerialize["total_service_keys"] = o.TotalServiceKeys.Get() + } + return toSerialize, nil +} + +type NullableV3SpaceQuotasPostRequestServices struct { + value *V3SpaceQuotasPostRequestServices + isSet bool +} + +func (v NullableV3SpaceQuotasPostRequestServices) Get() *V3SpaceQuotasPostRequestServices { + return v.value +} + +func (v *NullableV3SpaceQuotasPostRequestServices) Set(val *V3SpaceQuotasPostRequestServices) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpaceQuotasPostRequestServices) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpaceQuotasPostRequestServices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpaceQuotasPostRequestServices(val *V3SpaceQuotasPostRequestServices) *NullableV3SpaceQuotasPostRequestServices { + return &NullableV3SpaceQuotasPostRequestServices{value: val, isSet: true} +} + +func (v NullableV3SpaceQuotasPostRequestServices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpaceQuotasPostRequestServices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces__guid__features_get_200_response.go b/model__v3_spaces__guid__features_get_200_response.go new file mode 100644 index 0000000..203c767 --- /dev/null +++ b/model__v3_spaces__guid__features_get_200_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpacesGuidFeaturesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesGuidFeaturesGet200Response{} + +// V3SpacesGuidFeaturesGet200Response struct for V3SpacesGuidFeaturesGet200Response +type V3SpacesGuidFeaturesGet200Response struct { + Resources []SpaceFeature `json:"resources,omitempty"` +} + +// NewV3SpacesGuidFeaturesGet200Response instantiates a new V3SpacesGuidFeaturesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesGuidFeaturesGet200Response() *V3SpacesGuidFeaturesGet200Response { + this := V3SpacesGuidFeaturesGet200Response{} + return &this +} + +// NewV3SpacesGuidFeaturesGet200ResponseWithDefaults instantiates a new V3SpacesGuidFeaturesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesGuidFeaturesGet200ResponseWithDefaults() *V3SpacesGuidFeaturesGet200Response { + this := V3SpacesGuidFeaturesGet200Response{} + return &this +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3SpacesGuidFeaturesGet200Response) GetResources() []SpaceFeature { + if o == nil || IsNil(o.Resources) { + var ret []SpaceFeature + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidFeaturesGet200Response) GetResourcesOk() ([]SpaceFeature, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3SpacesGuidFeaturesGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []SpaceFeature and assigns it to the Resources field. +func (o *V3SpacesGuidFeaturesGet200Response) SetResources(v []SpaceFeature) { + o.Resources = v +} + +func (o V3SpacesGuidFeaturesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesGuidFeaturesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3SpacesGuidFeaturesGet200Response struct { + value *V3SpacesGuidFeaturesGet200Response + isSet bool +} + +func (v NullableV3SpacesGuidFeaturesGet200Response) Get() *V3SpacesGuidFeaturesGet200Response { + return v.value +} + +func (v *NullableV3SpacesGuidFeaturesGet200Response) Set(val *V3SpacesGuidFeaturesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesGuidFeaturesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesGuidFeaturesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesGuidFeaturesGet200Response(val *V3SpacesGuidFeaturesGet200Response) *NullableV3SpacesGuidFeaturesGet200Response { + return &NullableV3SpacesGuidFeaturesGet200Response{value: val, isSet: true} +} + +func (v NullableV3SpacesGuidFeaturesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesGuidFeaturesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces__guid__features_patch_request.go b/model__v3_spaces__guid__features_patch_request.go new file mode 100644 index 0000000..f6ec8be --- /dev/null +++ b/model__v3_spaces__guid__features_patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpacesGuidFeaturesPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesGuidFeaturesPatchRequest{} + +// V3SpacesGuidFeaturesPatchRequest struct for V3SpacesGuidFeaturesPatchRequest +type V3SpacesGuidFeaturesPatchRequest struct { + Enabled *bool `json:"enabled,omitempty"` +} + +// NewV3SpacesGuidFeaturesPatchRequest instantiates a new V3SpacesGuidFeaturesPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesGuidFeaturesPatchRequest() *V3SpacesGuidFeaturesPatchRequest { + this := V3SpacesGuidFeaturesPatchRequest{} + return &this +} + +// NewV3SpacesGuidFeaturesPatchRequestWithDefaults instantiates a new V3SpacesGuidFeaturesPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesGuidFeaturesPatchRequestWithDefaults() *V3SpacesGuidFeaturesPatchRequest { + this := V3SpacesGuidFeaturesPatchRequest{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *V3SpacesGuidFeaturesPatchRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidFeaturesPatchRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *V3SpacesGuidFeaturesPatchRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *V3SpacesGuidFeaturesPatchRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o V3SpacesGuidFeaturesPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesGuidFeaturesPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableV3SpacesGuidFeaturesPatchRequest struct { + value *V3SpacesGuidFeaturesPatchRequest + isSet bool +} + +func (v NullableV3SpacesGuidFeaturesPatchRequest) Get() *V3SpacesGuidFeaturesPatchRequest { + return v.value +} + +func (v *NullableV3SpacesGuidFeaturesPatchRequest) Set(val *V3SpacesGuidFeaturesPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesGuidFeaturesPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesGuidFeaturesPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesGuidFeaturesPatchRequest(val *V3SpacesGuidFeaturesPatchRequest) *NullableV3SpacesGuidFeaturesPatchRequest { + return &NullableV3SpacesGuidFeaturesPatchRequest{value: val, isSet: true} +} + +func (v NullableV3SpacesGuidFeaturesPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesGuidFeaturesPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces__guid__patch_request.go b/model__v3_spaces__guid__patch_request.go new file mode 100644 index 0000000..30928de --- /dev/null +++ b/model__v3_spaces__guid__patch_request.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpacesGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesGuidPatchRequest{} + +// V3SpacesGuidPatchRequest struct for V3SpacesGuidPatchRequest +type V3SpacesGuidPatchRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewV3SpacesGuidPatchRequest instantiates a new V3SpacesGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesGuidPatchRequest() *V3SpacesGuidPatchRequest { + this := V3SpacesGuidPatchRequest{} + return &this +} + +// NewV3SpacesGuidPatchRequestWithDefaults instantiates a new V3SpacesGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesGuidPatchRequestWithDefaults() *V3SpacesGuidPatchRequest { + this := V3SpacesGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3SpacesGuidPatchRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidPatchRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3SpacesGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3SpacesGuidPatchRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V3SpacesGuidPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V3SpacesGuidPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V3SpacesGuidPatchRequest) SetName(v string) { + o.Name = &v +} + +func (o V3SpacesGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableV3SpacesGuidPatchRequest struct { + value *V3SpacesGuidPatchRequest + isSet bool +} + +func (v NullableV3SpacesGuidPatchRequest) Get() *V3SpacesGuidPatchRequest { + return v.value +} + +func (v *NullableV3SpacesGuidPatchRequest) Set(val *V3SpacesGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesGuidPatchRequest(val *V3SpacesGuidPatchRequest) *NullableV3SpacesGuidPatchRequest { + return &NullableV3SpacesGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3SpacesGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces__guid__users_get_200_response.go b/model__v3_spaces__guid__users_get_200_response.go new file mode 100644 index 0000000..cdacc61 --- /dev/null +++ b/model__v3_spaces__guid__users_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpacesGuidUsersGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesGuidUsersGet200Response{} + +// V3SpacesGuidUsersGet200Response struct for V3SpacesGuidUsersGet200Response +type V3SpacesGuidUsersGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []User `json:"resources,omitempty"` +} + +// NewV3SpacesGuidUsersGet200Response instantiates a new V3SpacesGuidUsersGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesGuidUsersGet200Response() *V3SpacesGuidUsersGet200Response { + this := V3SpacesGuidUsersGet200Response{} + return &this +} + +// NewV3SpacesGuidUsersGet200ResponseWithDefaults instantiates a new V3SpacesGuidUsersGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesGuidUsersGet200ResponseWithDefaults() *V3SpacesGuidUsersGet200Response { + this := V3SpacesGuidUsersGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3SpacesGuidUsersGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidUsersGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3SpacesGuidUsersGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3SpacesGuidUsersGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3SpacesGuidUsersGet200Response) GetResources() []User { + if o == nil || IsNil(o.Resources) { + var ret []User + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGuidUsersGet200Response) GetResourcesOk() ([]User, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3SpacesGuidUsersGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []User and assigns it to the Resources field. +func (o *V3SpacesGuidUsersGet200Response) SetResources(v []User) { + o.Resources = v +} + +func (o V3SpacesGuidUsersGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesGuidUsersGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3SpacesGuidUsersGet200Response struct { + value *V3SpacesGuidUsersGet200Response + isSet bool +} + +func (v NullableV3SpacesGuidUsersGet200Response) Get() *V3SpacesGuidUsersGet200Response { + return v.value +} + +func (v *NullableV3SpacesGuidUsersGet200Response) Set(val *V3SpacesGuidUsersGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesGuidUsersGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesGuidUsersGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesGuidUsersGet200Response(val *V3SpacesGuidUsersGet200Response) *NullableV3SpacesGuidUsersGet200Response { + return &NullableV3SpacesGuidUsersGet200Response{value: val, isSet: true} +} + +func (v NullableV3SpacesGuidUsersGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesGuidUsersGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces_get_200_response.go b/model__v3_spaces_get_200_response.go new file mode 100644 index 0000000..dd78c7e --- /dev/null +++ b/model__v3_spaces_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3SpacesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesGet200Response{} + +// V3SpacesGet200Response struct for V3SpacesGet200Response +type V3SpacesGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Space `json:"resources,omitempty"` +} + +// NewV3SpacesGet200Response instantiates a new V3SpacesGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesGet200Response() *V3SpacesGet200Response { + this := V3SpacesGet200Response{} + return &this +} + +// NewV3SpacesGet200ResponseWithDefaults instantiates a new V3SpacesGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesGet200ResponseWithDefaults() *V3SpacesGet200Response { + this := V3SpacesGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3SpacesGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3SpacesGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3SpacesGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3SpacesGet200Response) GetResources() []Space { + if o == nil || IsNil(o.Resources) { + var ret []Space + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesGet200Response) GetResourcesOk() ([]Space, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3SpacesGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Space and assigns it to the Resources field. +func (o *V3SpacesGet200Response) SetResources(v []Space) { + o.Resources = v +} + +func (o V3SpacesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3SpacesGet200Response struct { + value *V3SpacesGet200Response + isSet bool +} + +func (v NullableV3SpacesGet200Response) Get() *V3SpacesGet200Response { + return v.value +} + +func (v *NullableV3SpacesGet200Response) Set(val *V3SpacesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesGet200Response(val *V3SpacesGet200Response) *NullableV3SpacesGet200Response { + return &NullableV3SpacesGet200Response{value: val, isSet: true} +} + +func (v NullableV3SpacesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_spaces_post_request.go b/model__v3_spaces_post_request.go new file mode 100644 index 0000000..81a08d0 --- /dev/null +++ b/model__v3_spaces_post_request.go @@ -0,0 +1,222 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3SpacesPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3SpacesPostRequest{} + +// V3SpacesPostRequest struct for V3SpacesPostRequest +type V3SpacesPostRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name string `json:"name"` + Relationships V3SpaceQuotasPostRequestRelationships `json:"relationships"` +} + +type _V3SpacesPostRequest V3SpacesPostRequest + +// NewV3SpacesPostRequest instantiates a new V3SpacesPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3SpacesPostRequest(name string, relationships V3SpaceQuotasPostRequestRelationships) *V3SpacesPostRequest { + this := V3SpacesPostRequest{} + this.Name = name + this.Relationships = relationships + return &this +} + +// NewV3SpacesPostRequestWithDefaults instantiates a new V3SpacesPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3SpacesPostRequestWithDefaults() *V3SpacesPostRequest { + this := V3SpacesPostRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3SpacesPostRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3SpacesPostRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3SpacesPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *V3SpacesPostRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value +func (o *V3SpacesPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V3SpacesPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V3SpacesPostRequest) SetName(v string) { + o.Name = v +} + +// GetRelationships returns the Relationships field value +func (o *V3SpacesPostRequest) GetRelationships() V3SpaceQuotasPostRequestRelationships { + if o == nil { + var ret V3SpaceQuotasPostRequestRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *V3SpacesPostRequest) GetRelationshipsOk() (*V3SpaceQuotasPostRequestRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *V3SpacesPostRequest) SetRelationships(v V3SpaceQuotasPostRequestRelationships) { + o.Relationships = v +} + +func (o V3SpacesPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3SpacesPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["name"] = o.Name + toSerialize["relationships"] = o.Relationships + return toSerialize, nil +} + +func (o *V3SpacesPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "relationships", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3SpacesPostRequest := _V3SpacesPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3SpacesPostRequest) + + if err != nil { + return err + } + + *o = V3SpacesPostRequest(varV3SpacesPostRequest) + + return err +} + +type NullableV3SpacesPostRequest struct { + value *V3SpacesPostRequest + isSet bool +} + +func (v NullableV3SpacesPostRequest) Get() *V3SpacesPostRequest { + return v.value +} + +func (v *NullableV3SpacesPostRequest) Set(val *V3SpacesPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3SpacesPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3SpacesPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3SpacesPostRequest(val *V3SpacesPostRequest) *NullableV3SpacesPostRequest { + return &NullableV3SpacesPostRequest{value: val, isSet: true} +} + +func (v NullableV3SpacesPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3SpacesPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_stacks__guid__apps_get_200_response.go b/model__v3_stacks__guid__apps_get_200_response.go new file mode 100644 index 0000000..0788ee3 --- /dev/null +++ b/model__v3_stacks__guid__apps_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3StacksGuidAppsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3StacksGuidAppsGet200Response{} + +// V3StacksGuidAppsGet200Response struct for V3StacksGuidAppsGet200Response +type V3StacksGuidAppsGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []App `json:"resources,omitempty"` +} + +// NewV3StacksGuidAppsGet200Response instantiates a new V3StacksGuidAppsGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3StacksGuidAppsGet200Response() *V3StacksGuidAppsGet200Response { + this := V3StacksGuidAppsGet200Response{} + return &this +} + +// NewV3StacksGuidAppsGet200ResponseWithDefaults instantiates a new V3StacksGuidAppsGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3StacksGuidAppsGet200ResponseWithDefaults() *V3StacksGuidAppsGet200Response { + this := V3StacksGuidAppsGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3StacksGuidAppsGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksGuidAppsGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3StacksGuidAppsGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3StacksGuidAppsGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3StacksGuidAppsGet200Response) GetResources() []App { + if o == nil || IsNil(o.Resources) { + var ret []App + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksGuidAppsGet200Response) GetResourcesOk() ([]App, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3StacksGuidAppsGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []App and assigns it to the Resources field. +func (o *V3StacksGuidAppsGet200Response) SetResources(v []App) { + o.Resources = v +} + +func (o V3StacksGuidAppsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3StacksGuidAppsGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3StacksGuidAppsGet200Response struct { + value *V3StacksGuidAppsGet200Response + isSet bool +} + +func (v NullableV3StacksGuidAppsGet200Response) Get() *V3StacksGuidAppsGet200Response { + return v.value +} + +func (v *NullableV3StacksGuidAppsGet200Response) Set(val *V3StacksGuidAppsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3StacksGuidAppsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3StacksGuidAppsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3StacksGuidAppsGet200Response(val *V3StacksGuidAppsGet200Response) *NullableV3StacksGuidAppsGet200Response { + return &NullableV3StacksGuidAppsGet200Response{value: val, isSet: true} +} + +func (v NullableV3StacksGuidAppsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3StacksGuidAppsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_stacks_get_200_response.go b/model__v3_stacks_get_200_response.go new file mode 100644 index 0000000..a869686 --- /dev/null +++ b/model__v3_stacks_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3StacksGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3StacksGet200Response{} + +// V3StacksGet200Response struct for V3StacksGet200Response +type V3StacksGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Stack `json:"resources,omitempty"` +} + +// NewV3StacksGet200Response instantiates a new V3StacksGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3StacksGet200Response() *V3StacksGet200Response { + this := V3StacksGet200Response{} + return &this +} + +// NewV3StacksGet200ResponseWithDefaults instantiates a new V3StacksGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3StacksGet200ResponseWithDefaults() *V3StacksGet200Response { + this := V3StacksGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3StacksGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3StacksGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3StacksGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3StacksGet200Response) GetResources() []Stack { + if o == nil || IsNil(o.Resources) { + var ret []Stack + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksGet200Response) GetResourcesOk() ([]Stack, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3StacksGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Stack and assigns it to the Resources field. +func (o *V3StacksGet200Response) SetResources(v []Stack) { + o.Resources = v +} + +func (o V3StacksGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3StacksGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3StacksGet200Response struct { + value *V3StacksGet200Response + isSet bool +} + +func (v NullableV3StacksGet200Response) Get() *V3StacksGet200Response { + return v.value +} + +func (v *NullableV3StacksGet200Response) Set(val *V3StacksGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3StacksGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3StacksGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3StacksGet200Response(val *V3StacksGet200Response) *NullableV3StacksGet200Response { + return &NullableV3StacksGet200Response{value: val, isSet: true} +} + +func (v NullableV3StacksGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3StacksGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_stacks_post_request.go b/model__v3_stacks_post_request.go new file mode 100644 index 0000000..c67103e --- /dev/null +++ b/model__v3_stacks_post_request.go @@ -0,0 +1,232 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the V3StacksPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3StacksPostRequest{} + +// V3StacksPostRequest struct for V3StacksPostRequest +type V3StacksPostRequest struct { + // Description of the stack; must be no longer than 250 characters + Description *string `json:"description,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + // Name of the stack; must be unique and no longer than 250 characters + Name string `json:"name"` +} + +type _V3StacksPostRequest V3StacksPostRequest + +// NewV3StacksPostRequest instantiates a new V3StacksPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3StacksPostRequest(name string) *V3StacksPostRequest { + this := V3StacksPostRequest{} + this.Name = name + return &this +} + +// NewV3StacksPostRequestWithDefaults instantiates a new V3StacksPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3StacksPostRequestWithDefaults() *V3StacksPostRequest { + this := V3StacksPostRequest{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *V3StacksPostRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksPostRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *V3StacksPostRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *V3StacksPostRequest) SetDescription(v string) { + o.Description = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3StacksPostRequest) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3StacksPostRequest) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3StacksPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *V3StacksPostRequest) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value +func (o *V3StacksPostRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V3StacksPostRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V3StacksPostRequest) SetName(v string) { + o.Name = v +} + +func (o V3StacksPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3StacksPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["name"] = o.Name + return toSerialize, nil +} + +func (o *V3StacksPostRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varV3StacksPostRequest := _V3StacksPostRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varV3StacksPostRequest) + + if err != nil { + return err + } + + *o = V3StacksPostRequest(varV3StacksPostRequest) + + return err +} + +type NullableV3StacksPostRequest struct { + value *V3StacksPostRequest + isSet bool +} + +func (v NullableV3StacksPostRequest) Get() *V3StacksPostRequest { + return v.value +} + +func (v *NullableV3StacksPostRequest) Set(val *V3StacksPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3StacksPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3StacksPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3StacksPostRequest(val *V3StacksPostRequest) *NullableV3StacksPostRequest { + return &NullableV3StacksPostRequest{value: val, isSet: true} +} + +func (v NullableV3StacksPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3StacksPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_tasks_get_200_response.go b/model__v3_tasks_get_200_response.go new file mode 100644 index 0000000..3eb1e65 --- /dev/null +++ b/model__v3_tasks_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3TasksGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3TasksGet200Response{} + +// V3TasksGet200Response struct for V3TasksGet200Response +type V3TasksGet200Response struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Task `json:"resources,omitempty"` +} + +// NewV3TasksGet200Response instantiates a new V3TasksGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3TasksGet200Response() *V3TasksGet200Response { + this := V3TasksGet200Response{} + return &this +} + +// NewV3TasksGet200ResponseWithDefaults instantiates a new V3TasksGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3TasksGet200ResponseWithDefaults() *V3TasksGet200Response { + this := V3TasksGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3TasksGet200Response) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3TasksGet200Response) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3TasksGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *V3TasksGet200Response) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3TasksGet200Response) GetResources() []Task { + if o == nil || IsNil(o.Resources) { + var ret []Task + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3TasksGet200Response) GetResourcesOk() ([]Task, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3TasksGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Task and assigns it to the Resources field. +func (o *V3TasksGet200Response) SetResources(v []Task) { + o.Resources = v +} + +func (o V3TasksGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3TasksGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3TasksGet200Response struct { + value *V3TasksGet200Response + isSet bool +} + +func (v NullableV3TasksGet200Response) Get() *V3TasksGet200Response { + return v.value +} + +func (v *NullableV3TasksGet200Response) Set(val *V3TasksGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3TasksGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3TasksGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3TasksGet200Response(val *V3TasksGet200Response) *NullableV3TasksGet200Response { + return &NullableV3TasksGet200Response{value: val, isSet: true} +} + +func (v NullableV3TasksGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3TasksGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_users__guid__patch_request.go b/model__v3_users__guid__patch_request.go new file mode 100644 index 0000000..6cad98e --- /dev/null +++ b/model__v3_users__guid__patch_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3UsersGuidPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3UsersGuidPatchRequest{} + +// V3UsersGuidPatchRequest struct for V3UsersGuidPatchRequest +type V3UsersGuidPatchRequest struct { + Metadata *V3UsersPostRequestMetadata `json:"metadata,omitempty"` +} + +// NewV3UsersGuidPatchRequest instantiates a new V3UsersGuidPatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3UsersGuidPatchRequest() *V3UsersGuidPatchRequest { + this := V3UsersGuidPatchRequest{} + return &this +} + +// NewV3UsersGuidPatchRequestWithDefaults instantiates a new V3UsersGuidPatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3UsersGuidPatchRequestWithDefaults() *V3UsersGuidPatchRequest { + this := V3UsersGuidPatchRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3UsersGuidPatchRequest) GetMetadata() V3UsersPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3UsersPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersGuidPatchRequest) GetMetadataOk() (*V3UsersPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3UsersGuidPatchRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3UsersPostRequestMetadata and assigns it to the Metadata field. +func (o *V3UsersGuidPatchRequest) SetMetadata(v V3UsersPostRequestMetadata) { + o.Metadata = &v +} + +func (o V3UsersGuidPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3UsersGuidPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3UsersGuidPatchRequest struct { + value *V3UsersGuidPatchRequest + isSet bool +} + +func (v NullableV3UsersGuidPatchRequest) Get() *V3UsersGuidPatchRequest { + return v.value +} + +func (v *NullableV3UsersGuidPatchRequest) Set(val *V3UsersGuidPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3UsersGuidPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3UsersGuidPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3UsersGuidPatchRequest(val *V3UsersGuidPatchRequest) *NullableV3UsersGuidPatchRequest { + return &NullableV3UsersGuidPatchRequest{value: val, isSet: true} +} + +func (v NullableV3UsersGuidPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3UsersGuidPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_users_get_200_response.go b/model__v3_users_get_200_response.go new file mode 100644 index 0000000..96d95db --- /dev/null +++ b/model__v3_users_get_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3UsersGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3UsersGet200Response{} + +// V3UsersGet200Response struct for V3UsersGet200Response +type V3UsersGet200Response struct { + Pagination *V3RoutesGet200ResponsePagination `json:"pagination,omitempty"` + Resources []User `json:"resources,omitempty"` +} + +// NewV3UsersGet200Response instantiates a new V3UsersGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3UsersGet200Response() *V3UsersGet200Response { + this := V3UsersGet200Response{} + return &this +} + +// NewV3UsersGet200ResponseWithDefaults instantiates a new V3UsersGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3UsersGet200ResponseWithDefaults() *V3UsersGet200Response { + this := V3UsersGet200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *V3UsersGet200Response) GetPagination() V3RoutesGet200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret V3RoutesGet200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersGet200Response) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *V3UsersGet200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given V3RoutesGet200ResponsePagination and assigns it to the Pagination field. +func (o *V3UsersGet200Response) SetPagination(v V3RoutesGet200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *V3UsersGet200Response) GetResources() []User { + if o == nil || IsNil(o.Resources) { + var ret []User + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersGet200Response) GetResourcesOk() ([]User, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *V3UsersGet200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []User and assigns it to the Resources field. +func (o *V3UsersGet200Response) SetResources(v []User) { + o.Resources = v +} + +func (o V3UsersGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3UsersGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableV3UsersGet200Response struct { + value *V3UsersGet200Response + isSet bool +} + +func (v NullableV3UsersGet200Response) Get() *V3UsersGet200Response { + return v.value +} + +func (v *NullableV3UsersGet200Response) Set(val *V3UsersGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableV3UsersGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableV3UsersGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3UsersGet200Response(val *V3UsersGet200Response) *NullableV3UsersGet200Response { + return &NullableV3UsersGet200Response{value: val, isSet: true} +} + +func (v NullableV3UsersGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3UsersGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_users_post_request.go b/model__v3_users_post_request.go new file mode 100644 index 0000000..0a53a1a --- /dev/null +++ b/model__v3_users_post_request.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3UsersPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3UsersPostRequest{} + +// V3UsersPostRequest struct for V3UsersPostRequest +type V3UsersPostRequest struct { + // Unique identifier for the user. For UAA users this will match the user ID of an existing UAA user’s GUID; in the case of UAA clients, this will match the UAA client ID + Guid *string `json:"guid,omitempty"` + Metadata *V3UsersPostRequestMetadata `json:"metadata,omitempty"` +} + +// NewV3UsersPostRequest instantiates a new V3UsersPostRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3UsersPostRequest() *V3UsersPostRequest { + this := V3UsersPostRequest{} + return &this +} + +// NewV3UsersPostRequestWithDefaults instantiates a new V3UsersPostRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3UsersPostRequestWithDefaults() *V3UsersPostRequest { + this := V3UsersPostRequest{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *V3UsersPostRequest) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersPostRequest) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *V3UsersPostRequest) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *V3UsersPostRequest) SetGuid(v string) { + o.Guid = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V3UsersPostRequest) GetMetadata() V3UsersPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3UsersPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersPostRequest) GetMetadataOk() (*V3UsersPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V3UsersPostRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3UsersPostRequestMetadata and assigns it to the Metadata field. +func (o *V3UsersPostRequest) SetMetadata(v V3UsersPostRequestMetadata) { + o.Metadata = &v +} + +func (o V3UsersPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3UsersPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableV3UsersPostRequest struct { + value *V3UsersPostRequest + isSet bool +} + +func (v NullableV3UsersPostRequest) Get() *V3UsersPostRequest { + return v.value +} + +func (v *NullableV3UsersPostRequest) Set(val *V3UsersPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullableV3UsersPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableV3UsersPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3UsersPostRequest(val *V3UsersPostRequest) *NullableV3UsersPostRequest { + return &NullableV3UsersPostRequest{value: val, isSet: true} +} + +func (v NullableV3UsersPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3UsersPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__v3_users_post_request_metadata.go b/model__v3_users_post_request_metadata.go new file mode 100644 index 0000000..aed638c --- /dev/null +++ b/model__v3_users_post_request_metadata.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the V3UsersPostRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V3UsersPostRequestMetadata{} + +// V3UsersPostRequestMetadata struct for V3UsersPostRequestMetadata +type V3UsersPostRequestMetadata struct { + // Annotations added to the user + Annotations map[string]interface{} `json:"annotations,omitempty"` + // Labels applied to the user + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewV3UsersPostRequestMetadata instantiates a new V3UsersPostRequestMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV3UsersPostRequestMetadata() *V3UsersPostRequestMetadata { + this := V3UsersPostRequestMetadata{} + return &this +} + +// NewV3UsersPostRequestMetadataWithDefaults instantiates a new V3UsersPostRequestMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV3UsersPostRequestMetadataWithDefaults() *V3UsersPostRequestMetadata { + this := V3UsersPostRequestMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V3UsersPostRequestMetadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersPostRequestMetadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V3UsersPostRequestMetadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *V3UsersPostRequestMetadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V3UsersPostRequestMetadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V3UsersPostRequestMetadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V3UsersPostRequestMetadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *V3UsersPostRequestMetadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o V3UsersPostRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V3UsersPostRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableV3UsersPostRequestMetadata struct { + value *V3UsersPostRequestMetadata + isSet bool +} + +func (v NullableV3UsersPostRequestMetadata) Get() *V3UsersPostRequestMetadata { + return v.value +} + +func (v *NullableV3UsersPostRequestMetadata) Set(val *V3UsersPostRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableV3UsersPostRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableV3UsersPostRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV3UsersPostRequestMetadata(val *V3UsersPostRequestMetadata) *NullableV3UsersPostRequestMetadata { + return &NullableV3UsersPostRequestMetadata{value: val, isSet: true} +} + +func (v NullableV3UsersPostRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV3UsersPostRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app.go b/model_app.go new file mode 100644 index 0000000..57a324f --- /dev/null +++ b/model_app.go @@ -0,0 +1,388 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the App type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &App{} + +// App struct for App +type App struct { + // The time with zone when the object was created + CreatedAt time.Time `json:"created_at"` + // Unique identifier for the app + Guid string `json:"guid"` + Lifecycle AppLifecycle `json:"lifecycle"` + Links AppLinks `json:"links"` + Metadata V3AppsGuidTasksPostRequestMetadata `json:"metadata"` + // Name of the app + Name string `json:"name"` + Relationships AppRelationships `json:"relationships"` + // Current desired state of the app + State string `json:"state"` + // The time with zone when the object was last updated + UpdatedAt time.Time `json:"updated_at"` +} + +type _App App + +// NewApp instantiates a new App object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApp(createdAt time.Time, guid string, lifecycle AppLifecycle, links AppLinks, metadata V3AppsGuidTasksPostRequestMetadata, name string, relationships AppRelationships, state string, updatedAt time.Time) *App { + this := App{} + this.CreatedAt = createdAt + this.Guid = guid + this.Lifecycle = lifecycle + this.Links = links + this.Metadata = metadata + this.Name = name + this.Relationships = relationships + this.State = state + this.UpdatedAt = updatedAt + return &this +} + +// NewAppWithDefaults instantiates a new App object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppWithDefaults() *App { + this := App{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *App) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *App) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *App) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetGuid returns the Guid field value +func (o *App) GetGuid() string { + if o == nil { + var ret string + return ret + } + + return o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value +// and a boolean to check if the value has been set. +func (o *App) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Guid, true +} + +// SetGuid sets field value +func (o *App) SetGuid(v string) { + o.Guid = v +} + +// GetLifecycle returns the Lifecycle field value +func (o *App) GetLifecycle() AppLifecycle { + if o == nil { + var ret AppLifecycle + return ret + } + + return o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value +// and a boolean to check if the value has been set. +func (o *App) GetLifecycleOk() (*AppLifecycle, bool) { + if o == nil { + return nil, false + } + return &o.Lifecycle, true +} + +// SetLifecycle sets field value +func (o *App) SetLifecycle(v AppLifecycle) { + o.Lifecycle = v +} + +// GetLinks returns the Links field value +func (o *App) GetLinks() AppLinks { + if o == nil { + var ret AppLinks + return ret + } + + return o.Links +} + +// GetLinksOk returns a tuple with the Links field value +// and a boolean to check if the value has been set. +func (o *App) GetLinksOk() (*AppLinks, bool) { + if o == nil { + return nil, false + } + return &o.Links, true +} + +// SetLinks sets field value +func (o *App) SetLinks(v AppLinks) { + o.Links = v +} + +// GetMetadata returns the Metadata field value +func (o *App) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *App) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *App) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = v +} + +// GetName returns the Name field value +func (o *App) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *App) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *App) SetName(v string) { + o.Name = v +} + +// GetRelationships returns the Relationships field value +func (o *App) GetRelationships() AppRelationships { + if o == nil { + var ret AppRelationships + return ret + } + + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value +// and a boolean to check if the value has been set. +func (o *App) GetRelationshipsOk() (*AppRelationships, bool) { + if o == nil { + return nil, false + } + return &o.Relationships, true +} + +// SetRelationships sets field value +func (o *App) SetRelationships(v AppRelationships) { + o.Relationships = v +} + +// GetState returns the State field value +func (o *App) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *App) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *App) SetState(v string) { + o.State = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *App) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *App) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *App) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o App) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o App) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created_at"] = o.CreatedAt + toSerialize["guid"] = o.Guid + toSerialize["lifecycle"] = o.Lifecycle + toSerialize["links"] = o.Links + toSerialize["metadata"] = o.Metadata + toSerialize["name"] = o.Name + toSerialize["relationships"] = o.Relationships + toSerialize["state"] = o.State + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *App) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created_at", + "guid", + "lifecycle", + "links", + "metadata", + "name", + "relationships", + "state", + "updated_at", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varApp := _App{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varApp) + + if err != nil { + return err + } + + *o = App(varApp) + + return err +} + +type NullableApp struct { + value *App + isSet bool +} + +func (v NullableApp) Get() *App { + return v.value +} + +func (v *NullableApp) Set(val *App) { + v.value = val + v.isSet = true +} + +func (v NullableApp) IsSet() bool { + return v.isSet +} + +func (v *NullableApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApp(val *App) *NullableApp { + return &NullableApp{value: val, isSet: true} +} + +func (v NullableApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_lifecycle.go b/model_app_lifecycle.go new file mode 100644 index 0000000..b2ca69c --- /dev/null +++ b/model_app_lifecycle.go @@ -0,0 +1,186 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AppLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppLifecycle{} + +// AppLifecycle struct for AppLifecycle +type AppLifecycle struct { + Data V3AppsGuidPatchRequestLifecycleData `json:"data"` + Type string `json:"type"` +} + +type _AppLifecycle AppLifecycle + +// NewAppLifecycle instantiates a new AppLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppLifecycle(data V3AppsGuidPatchRequestLifecycleData, type_ string) *AppLifecycle { + this := AppLifecycle{} + this.Data = data + this.Type = type_ + return &this +} + +// NewAppLifecycleWithDefaults instantiates a new AppLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppLifecycleWithDefaults() *AppLifecycle { + this := AppLifecycle{} + return &this +} + +// GetData returns the Data field value +func (o *AppLifecycle) GetData() V3AppsGuidPatchRequestLifecycleData { + if o == nil { + var ret V3AppsGuidPatchRequestLifecycleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AppLifecycle) GetDataOk() (*V3AppsGuidPatchRequestLifecycleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AppLifecycle) SetData(v V3AppsGuidPatchRequestLifecycleData) { + o.Data = v +} + +// GetType returns the Type field value +func (o *AppLifecycle) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AppLifecycle) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AppLifecycle) SetType(v string) { + o.Type = v +} + +func (o AppLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + return toSerialize, nil +} + +func (o *AppLifecycle) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAppLifecycle := _AppLifecycle{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAppLifecycle) + + if err != nil { + return err + } + + *o = AppLifecycle(varAppLifecycle) + + return err +} + +type NullableAppLifecycle struct { + value *AppLifecycle + isSet bool +} + +func (v NullableAppLifecycle) Get() *AppLifecycle { + return v.value +} + +func (v *NullableAppLifecycle) Set(val *AppLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableAppLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableAppLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppLifecycle(val *AppLifecycle) *NullableAppLifecycle { + return &NullableAppLifecycle{value: val, isSet: true} +} + +func (v NullableAppLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_links.go b/model_app_links.go new file mode 100644 index 0000000..3f57c28 --- /dev/null +++ b/model_app_links.go @@ -0,0 +1,558 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppLinks{} + +// AppLinks struct for AppLinks +type AppLinks struct { + CurrentDroplet *Link `json:"current_droplet,omitempty"` + DeployedRevisions *Link `json:"deployed_revisions,omitempty"` + Droplets *Link `json:"droplets,omitempty"` + EnvironmentVariables *Link `json:"environment_variables,omitempty"` + Features *Link `json:"features,omitempty"` + Packages *Link `json:"packages,omitempty"` + Processes *Link `json:"processes,omitempty"` + Revisions *Link `json:"revisions,omitempty"` + Self *Link `json:"self,omitempty"` + Space *Link `json:"space,omitempty"` + Start *LinkWithMethod `json:"start,omitempty"` + Stop *LinkWithMethod `json:"stop,omitempty"` + Tasks *Link `json:"tasks,omitempty"` +} + +// NewAppLinks instantiates a new AppLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppLinks() *AppLinks { + this := AppLinks{} + return &this +} + +// NewAppLinksWithDefaults instantiates a new AppLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppLinksWithDefaults() *AppLinks { + this := AppLinks{} + return &this +} + +// GetCurrentDroplet returns the CurrentDroplet field value if set, zero value otherwise. +func (o *AppLinks) GetCurrentDroplet() Link { + if o == nil || IsNil(o.CurrentDroplet) { + var ret Link + return ret + } + return *o.CurrentDroplet +} + +// GetCurrentDropletOk returns a tuple with the CurrentDroplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetCurrentDropletOk() (*Link, bool) { + if o == nil || IsNil(o.CurrentDroplet) { + return nil, false + } + return o.CurrentDroplet, true +} + +// HasCurrentDroplet returns a boolean if a field has been set. +func (o *AppLinks) HasCurrentDroplet() bool { + if o != nil && !IsNil(o.CurrentDroplet) { + return true + } + + return false +} + +// SetCurrentDroplet gets a reference to the given Link and assigns it to the CurrentDroplet field. +func (o *AppLinks) SetCurrentDroplet(v Link) { + o.CurrentDroplet = &v +} + +// GetDeployedRevisions returns the DeployedRevisions field value if set, zero value otherwise. +func (o *AppLinks) GetDeployedRevisions() Link { + if o == nil || IsNil(o.DeployedRevisions) { + var ret Link + return ret + } + return *o.DeployedRevisions +} + +// GetDeployedRevisionsOk returns a tuple with the DeployedRevisions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetDeployedRevisionsOk() (*Link, bool) { + if o == nil || IsNil(o.DeployedRevisions) { + return nil, false + } + return o.DeployedRevisions, true +} + +// HasDeployedRevisions returns a boolean if a field has been set. +func (o *AppLinks) HasDeployedRevisions() bool { + if o != nil && !IsNil(o.DeployedRevisions) { + return true + } + + return false +} + +// SetDeployedRevisions gets a reference to the given Link and assigns it to the DeployedRevisions field. +func (o *AppLinks) SetDeployedRevisions(v Link) { + o.DeployedRevisions = &v +} + +// GetDroplets returns the Droplets field value if set, zero value otherwise. +func (o *AppLinks) GetDroplets() Link { + if o == nil || IsNil(o.Droplets) { + var ret Link + return ret + } + return *o.Droplets +} + +// GetDropletsOk returns a tuple with the Droplets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetDropletsOk() (*Link, bool) { + if o == nil || IsNil(o.Droplets) { + return nil, false + } + return o.Droplets, true +} + +// HasDroplets returns a boolean if a field has been set. +func (o *AppLinks) HasDroplets() bool { + if o != nil && !IsNil(o.Droplets) { + return true + } + + return false +} + +// SetDroplets gets a reference to the given Link and assigns it to the Droplets field. +func (o *AppLinks) SetDroplets(v Link) { + o.Droplets = &v +} + +// GetEnvironmentVariables returns the EnvironmentVariables field value if set, zero value otherwise. +func (o *AppLinks) GetEnvironmentVariables() Link { + if o == nil || IsNil(o.EnvironmentVariables) { + var ret Link + return ret + } + return *o.EnvironmentVariables +} + +// GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetEnvironmentVariablesOk() (*Link, bool) { + if o == nil || IsNil(o.EnvironmentVariables) { + return nil, false + } + return o.EnvironmentVariables, true +} + +// HasEnvironmentVariables returns a boolean if a field has been set. +func (o *AppLinks) HasEnvironmentVariables() bool { + if o != nil && !IsNil(o.EnvironmentVariables) { + return true + } + + return false +} + +// SetEnvironmentVariables gets a reference to the given Link and assigns it to the EnvironmentVariables field. +func (o *AppLinks) SetEnvironmentVariables(v Link) { + o.EnvironmentVariables = &v +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *AppLinks) GetFeatures() Link { + if o == nil || IsNil(o.Features) { + var ret Link + return ret + } + return *o.Features +} + +// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetFeaturesOk() (*Link, bool) { + if o == nil || IsNil(o.Features) { + return nil, false + } + return o.Features, true +} + +// HasFeatures returns a boolean if a field has been set. +func (o *AppLinks) HasFeatures() bool { + if o != nil && !IsNil(o.Features) { + return true + } + + return false +} + +// SetFeatures gets a reference to the given Link and assigns it to the Features field. +func (o *AppLinks) SetFeatures(v Link) { + o.Features = &v +} + +// GetPackages returns the Packages field value if set, zero value otherwise. +func (o *AppLinks) GetPackages() Link { + if o == nil || IsNil(o.Packages) { + var ret Link + return ret + } + return *o.Packages +} + +// GetPackagesOk returns a tuple with the Packages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetPackagesOk() (*Link, bool) { + if o == nil || IsNil(o.Packages) { + return nil, false + } + return o.Packages, true +} + +// HasPackages returns a boolean if a field has been set. +func (o *AppLinks) HasPackages() bool { + if o != nil && !IsNil(o.Packages) { + return true + } + + return false +} + +// SetPackages gets a reference to the given Link and assigns it to the Packages field. +func (o *AppLinks) SetPackages(v Link) { + o.Packages = &v +} + +// GetProcesses returns the Processes field value if set, zero value otherwise. +func (o *AppLinks) GetProcesses() Link { + if o == nil || IsNil(o.Processes) { + var ret Link + return ret + } + return *o.Processes +} + +// GetProcessesOk returns a tuple with the Processes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetProcessesOk() (*Link, bool) { + if o == nil || IsNil(o.Processes) { + return nil, false + } + return o.Processes, true +} + +// HasProcesses returns a boolean if a field has been set. +func (o *AppLinks) HasProcesses() bool { + if o != nil && !IsNil(o.Processes) { + return true + } + + return false +} + +// SetProcesses gets a reference to the given Link and assigns it to the Processes field. +func (o *AppLinks) SetProcesses(v Link) { + o.Processes = &v +} + +// GetRevisions returns the Revisions field value if set, zero value otherwise. +func (o *AppLinks) GetRevisions() Link { + if o == nil || IsNil(o.Revisions) { + var ret Link + return ret + } + return *o.Revisions +} + +// GetRevisionsOk returns a tuple with the Revisions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetRevisionsOk() (*Link, bool) { + if o == nil || IsNil(o.Revisions) { + return nil, false + } + return o.Revisions, true +} + +// HasRevisions returns a boolean if a field has been set. +func (o *AppLinks) HasRevisions() bool { + if o != nil && !IsNil(o.Revisions) { + return true + } + + return false +} + +// SetRevisions gets a reference to the given Link and assigns it to the Revisions field. +func (o *AppLinks) SetRevisions(v Link) { + o.Revisions = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *AppLinks) GetSelf() Link { + if o == nil || IsNil(o.Self) { + var ret Link + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetSelfOk() (*Link, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *AppLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Link and assigns it to the Self field. +func (o *AppLinks) SetSelf(v Link) { + o.Self = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *AppLinks) GetSpace() Link { + if o == nil || IsNil(o.Space) { + var ret Link + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetSpaceOk() (*Link, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *AppLinks) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given Link and assigns it to the Space field. +func (o *AppLinks) SetSpace(v Link) { + o.Space = &v +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *AppLinks) GetStart() LinkWithMethod { + if o == nil || IsNil(o.Start) { + var ret LinkWithMethod + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetStartOk() (*LinkWithMethod, bool) { + if o == nil || IsNil(o.Start) { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *AppLinks) HasStart() bool { + if o != nil && !IsNil(o.Start) { + return true + } + + return false +} + +// SetStart gets a reference to the given LinkWithMethod and assigns it to the Start field. +func (o *AppLinks) SetStart(v LinkWithMethod) { + o.Start = &v +} + +// GetStop returns the Stop field value if set, zero value otherwise. +func (o *AppLinks) GetStop() LinkWithMethod { + if o == nil || IsNil(o.Stop) { + var ret LinkWithMethod + return ret + } + return *o.Stop +} + +// GetStopOk returns a tuple with the Stop field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetStopOk() (*LinkWithMethod, bool) { + if o == nil || IsNil(o.Stop) { + return nil, false + } + return o.Stop, true +} + +// HasStop returns a boolean if a field has been set. +func (o *AppLinks) HasStop() bool { + if o != nil && !IsNil(o.Stop) { + return true + } + + return false +} + +// SetStop gets a reference to the given LinkWithMethod and assigns it to the Stop field. +func (o *AppLinks) SetStop(v LinkWithMethod) { + o.Stop = &v +} + +// GetTasks returns the Tasks field value if set, zero value otherwise. +func (o *AppLinks) GetTasks() Link { + if o == nil || IsNil(o.Tasks) { + var ret Link + return ret + } + return *o.Tasks +} + +// GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppLinks) GetTasksOk() (*Link, bool) { + if o == nil || IsNil(o.Tasks) { + return nil, false + } + return o.Tasks, true +} + +// HasTasks returns a boolean if a field has been set. +func (o *AppLinks) HasTasks() bool { + if o != nil && !IsNil(o.Tasks) { + return true + } + + return false +} + +// SetTasks gets a reference to the given Link and assigns it to the Tasks field. +func (o *AppLinks) SetTasks(v Link) { + o.Tasks = &v +} + +func (o AppLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CurrentDroplet) { + toSerialize["current_droplet"] = o.CurrentDroplet + } + if !IsNil(o.DeployedRevisions) { + toSerialize["deployed_revisions"] = o.DeployedRevisions + } + if !IsNil(o.Droplets) { + toSerialize["droplets"] = o.Droplets + } + if !IsNil(o.EnvironmentVariables) { + toSerialize["environment_variables"] = o.EnvironmentVariables + } + if !IsNil(o.Features) { + toSerialize["features"] = o.Features + } + if !IsNil(o.Packages) { + toSerialize["packages"] = o.Packages + } + if !IsNil(o.Processes) { + toSerialize["processes"] = o.Processes + } + if !IsNil(o.Revisions) { + toSerialize["revisions"] = o.Revisions + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.Start) { + toSerialize["start"] = o.Start + } + if !IsNil(o.Stop) { + toSerialize["stop"] = o.Stop + } + if !IsNil(o.Tasks) { + toSerialize["tasks"] = o.Tasks + } + return toSerialize, nil +} + +type NullableAppLinks struct { + value *AppLinks + isSet bool +} + +func (v NullableAppLinks) Get() *AppLinks { + return v.value +} + +func (v *NullableAppLinks) Set(val *AppLinks) { + v.value = val + v.isSet = true +} + +func (v NullableAppLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableAppLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppLinks(val *AppLinks) *NullableAppLinks { + return &NullableAppLinks{value: val, isSet: true} +} + +func (v NullableAppLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_relationships.go b/model_app_relationships.go new file mode 100644 index 0000000..4c0d802 --- /dev/null +++ b/model_app_relationships.go @@ -0,0 +1,194 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the AppRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppRelationships{} + +// AppRelationships struct for AppRelationships +type AppRelationships struct { + CurrentDroplet *V3DropletsPostRequestRelationshipsApp `json:"current_droplet,omitempty"` + Space V3DropletsPostRequestRelationshipsApp `json:"space"` +} + +type _AppRelationships AppRelationships + +// NewAppRelationships instantiates a new AppRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppRelationships(space V3DropletsPostRequestRelationshipsApp) *AppRelationships { + this := AppRelationships{} + this.Space = space + return &this +} + +// NewAppRelationshipsWithDefaults instantiates a new AppRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppRelationshipsWithDefaults() *AppRelationships { + this := AppRelationships{} + return &this +} + +// GetCurrentDroplet returns the CurrentDroplet field value if set, zero value otherwise. +func (o *AppRelationships) GetCurrentDroplet() V3DropletsPostRequestRelationshipsApp { + if o == nil || IsNil(o.CurrentDroplet) { + var ret V3DropletsPostRequestRelationshipsApp + return ret + } + return *o.CurrentDroplet +} + +// GetCurrentDropletOk returns a tuple with the CurrentDroplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppRelationships) GetCurrentDropletOk() (*V3DropletsPostRequestRelationshipsApp, bool) { + if o == nil || IsNil(o.CurrentDroplet) { + return nil, false + } + return o.CurrentDroplet, true +} + +// HasCurrentDroplet returns a boolean if a field has been set. +func (o *AppRelationships) HasCurrentDroplet() bool { + if o != nil && !IsNil(o.CurrentDroplet) { + return true + } + + return false +} + +// SetCurrentDroplet gets a reference to the given V3DropletsPostRequestRelationshipsApp and assigns it to the CurrentDroplet field. +func (o *AppRelationships) SetCurrentDroplet(v V3DropletsPostRequestRelationshipsApp) { + o.CurrentDroplet = &v +} + +// GetSpace returns the Space field value +func (o *AppRelationships) GetSpace() V3DropletsPostRequestRelationshipsApp { + if o == nil { + var ret V3DropletsPostRequestRelationshipsApp + return ret + } + + return o.Space +} + +// GetSpaceOk returns a tuple with the Space field value +// and a boolean to check if the value has been set. +func (o *AppRelationships) GetSpaceOk() (*V3DropletsPostRequestRelationshipsApp, bool) { + if o == nil { + return nil, false + } + return &o.Space, true +} + +// SetSpace sets field value +func (o *AppRelationships) SetSpace(v V3DropletsPostRequestRelationshipsApp) { + o.Space = v +} + +func (o AppRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CurrentDroplet) { + toSerialize["current_droplet"] = o.CurrentDroplet + } + toSerialize["space"] = o.Space + return toSerialize, nil +} + +func (o *AppRelationships) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "space", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAppRelationships := _AppRelationships{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAppRelationships) + + if err != nil { + return err + } + + *o = AppRelationships(varAppRelationships) + + return err +} + +type NullableAppRelationships struct { + value *AppRelationships + isSet bool +} + +func (v NullableAppRelationships) Get() *AppRelationships { + return v.value +} + +func (v *NullableAppRelationships) Set(val *AppRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableAppRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableAppRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppRelationships(val *AppRelationships) *NullableAppRelationships { + return &NullableAppRelationships{value: val, isSet: true} +} + +func (v NullableAppRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event.go b/model_app_usage_event.go new file mode 100644 index 0000000..7275118 --- /dev/null +++ b/model_app_usage_event.go @@ -0,0 +1,562 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the AppUsageEvent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEvent{} + +// AppUsageEvent struct for AppUsageEvent +type AppUsageEvent struct { + App *AppUsageEventApp `json:"app,omitempty"` + Buildpack *AppUsageEventBuildpack `json:"buildpack,omitempty"` + // The time with zone when the event occurred + CreatedAt *time.Time `json:"created_at,omitempty"` + // Unique identifier for the event + Guid *string `json:"guid,omitempty"` + InstanceCount *AppUsageEventInstanceCount `json:"instance_count,omitempty"` + Links *AppUsageEventLinks `json:"links,omitempty"` + MemoryInMbPerInstance *AppUsageEventMemoryInMbPerInstance `json:"memory_in_mb_per_instance,omitempty"` + Organization *AppUsageEventOrganization `json:"organization,omitempty"` + Process *AppUsageEventProcess `json:"process,omitempty"` + Space *AppUsageEventSpace `json:"space,omitempty"` + State *AppUsageEventState `json:"state,omitempty"` + Task *AppUsageEventTask `json:"task,omitempty"` + // Identical to created_at (events are created, never updated) + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAppUsageEvent instantiates a new AppUsageEvent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEvent() *AppUsageEvent { + this := AppUsageEvent{} + return &this +} + +// NewAppUsageEventWithDefaults instantiates a new AppUsageEvent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventWithDefaults() *AppUsageEvent { + this := AppUsageEvent{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *AppUsageEvent) GetApp() AppUsageEventApp { + if o == nil || IsNil(o.App) { + var ret AppUsageEventApp + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetAppOk() (*AppUsageEventApp, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *AppUsageEvent) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given AppUsageEventApp and assigns it to the App field. +func (o *AppUsageEvent) SetApp(v AppUsageEventApp) { + o.App = &v +} + +// GetBuildpack returns the Buildpack field value if set, zero value otherwise. +func (o *AppUsageEvent) GetBuildpack() AppUsageEventBuildpack { + if o == nil || IsNil(o.Buildpack) { + var ret AppUsageEventBuildpack + return ret + } + return *o.Buildpack +} + +// GetBuildpackOk returns a tuple with the Buildpack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetBuildpackOk() (*AppUsageEventBuildpack, bool) { + if o == nil || IsNil(o.Buildpack) { + return nil, false + } + return o.Buildpack, true +} + +// HasBuildpack returns a boolean if a field has been set. +func (o *AppUsageEvent) HasBuildpack() bool { + if o != nil && !IsNil(o.Buildpack) { + return true + } + + return false +} + +// SetBuildpack gets a reference to the given AppUsageEventBuildpack and assigns it to the Buildpack field. +func (o *AppUsageEvent) SetBuildpack(v AppUsageEventBuildpack) { + o.Buildpack = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AppUsageEvent) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AppUsageEvent) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AppUsageEvent) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AppUsageEvent) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEvent) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AppUsageEvent) SetGuid(v string) { + o.Guid = &v +} + +// GetInstanceCount returns the InstanceCount field value if set, zero value otherwise. +func (o *AppUsageEvent) GetInstanceCount() AppUsageEventInstanceCount { + if o == nil || IsNil(o.InstanceCount) { + var ret AppUsageEventInstanceCount + return ret + } + return *o.InstanceCount +} + +// GetInstanceCountOk returns a tuple with the InstanceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetInstanceCountOk() (*AppUsageEventInstanceCount, bool) { + if o == nil || IsNil(o.InstanceCount) { + return nil, false + } + return o.InstanceCount, true +} + +// HasInstanceCount returns a boolean if a field has been set. +func (o *AppUsageEvent) HasInstanceCount() bool { + if o != nil && !IsNil(o.InstanceCount) { + return true + } + + return false +} + +// SetInstanceCount gets a reference to the given AppUsageEventInstanceCount and assigns it to the InstanceCount field. +func (o *AppUsageEvent) SetInstanceCount(v AppUsageEventInstanceCount) { + o.InstanceCount = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *AppUsageEvent) GetLinks() AppUsageEventLinks { + if o == nil || IsNil(o.Links) { + var ret AppUsageEventLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetLinksOk() (*AppUsageEventLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *AppUsageEvent) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given AppUsageEventLinks and assigns it to the Links field. +func (o *AppUsageEvent) SetLinks(v AppUsageEventLinks) { + o.Links = &v +} + +// GetMemoryInMbPerInstance returns the MemoryInMbPerInstance field value if set, zero value otherwise. +func (o *AppUsageEvent) GetMemoryInMbPerInstance() AppUsageEventMemoryInMbPerInstance { + if o == nil || IsNil(o.MemoryInMbPerInstance) { + var ret AppUsageEventMemoryInMbPerInstance + return ret + } + return *o.MemoryInMbPerInstance +} + +// GetMemoryInMbPerInstanceOk returns a tuple with the MemoryInMbPerInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetMemoryInMbPerInstanceOk() (*AppUsageEventMemoryInMbPerInstance, bool) { + if o == nil || IsNil(o.MemoryInMbPerInstance) { + return nil, false + } + return o.MemoryInMbPerInstance, true +} + +// HasMemoryInMbPerInstance returns a boolean if a field has been set. +func (o *AppUsageEvent) HasMemoryInMbPerInstance() bool { + if o != nil && !IsNil(o.MemoryInMbPerInstance) { + return true + } + + return false +} + +// SetMemoryInMbPerInstance gets a reference to the given AppUsageEventMemoryInMbPerInstance and assigns it to the MemoryInMbPerInstance field. +func (o *AppUsageEvent) SetMemoryInMbPerInstance(v AppUsageEventMemoryInMbPerInstance) { + o.MemoryInMbPerInstance = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *AppUsageEvent) GetOrganization() AppUsageEventOrganization { + if o == nil || IsNil(o.Organization) { + var ret AppUsageEventOrganization + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetOrganizationOk() (*AppUsageEventOrganization, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *AppUsageEvent) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given AppUsageEventOrganization and assigns it to the Organization field. +func (o *AppUsageEvent) SetOrganization(v AppUsageEventOrganization) { + o.Organization = &v +} + +// GetProcess returns the Process field value if set, zero value otherwise. +func (o *AppUsageEvent) GetProcess() AppUsageEventProcess { + if o == nil || IsNil(o.Process) { + var ret AppUsageEventProcess + return ret + } + return *o.Process +} + +// GetProcessOk returns a tuple with the Process field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetProcessOk() (*AppUsageEventProcess, bool) { + if o == nil || IsNil(o.Process) { + return nil, false + } + return o.Process, true +} + +// HasProcess returns a boolean if a field has been set. +func (o *AppUsageEvent) HasProcess() bool { + if o != nil && !IsNil(o.Process) { + return true + } + + return false +} + +// SetProcess gets a reference to the given AppUsageEventProcess and assigns it to the Process field. +func (o *AppUsageEvent) SetProcess(v AppUsageEventProcess) { + o.Process = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *AppUsageEvent) GetSpace() AppUsageEventSpace { + if o == nil || IsNil(o.Space) { + var ret AppUsageEventSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetSpaceOk() (*AppUsageEventSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *AppUsageEvent) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given AppUsageEventSpace and assigns it to the Space field. +func (o *AppUsageEvent) SetSpace(v AppUsageEventSpace) { + o.Space = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *AppUsageEvent) GetState() AppUsageEventState { + if o == nil || IsNil(o.State) { + var ret AppUsageEventState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetStateOk() (*AppUsageEventState, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *AppUsageEvent) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given AppUsageEventState and assigns it to the State field. +func (o *AppUsageEvent) SetState(v AppUsageEventState) { + o.State = &v +} + +// GetTask returns the Task field value if set, zero value otherwise. +func (o *AppUsageEvent) GetTask() AppUsageEventTask { + if o == nil || IsNil(o.Task) { + var ret AppUsageEventTask + return ret + } + return *o.Task +} + +// GetTaskOk returns a tuple with the Task field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetTaskOk() (*AppUsageEventTask, bool) { + if o == nil || IsNil(o.Task) { + return nil, false + } + return o.Task, true +} + +// HasTask returns a boolean if a field has been set. +func (o *AppUsageEvent) HasTask() bool { + if o != nil && !IsNil(o.Task) { + return true + } + + return false +} + +// SetTask gets a reference to the given AppUsageEventTask and assigns it to the Task field. +func (o *AppUsageEvent) SetTask(v AppUsageEventTask) { + o.Task = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AppUsageEvent) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEvent) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AppUsageEvent) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AppUsageEvent) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AppUsageEvent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEvent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Buildpack) { + toSerialize["buildpack"] = o.Buildpack + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.InstanceCount) { + toSerialize["instance_count"] = o.InstanceCount + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.MemoryInMbPerInstance) { + toSerialize["memory_in_mb_per_instance"] = o.MemoryInMbPerInstance + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Process) { + toSerialize["process"] = o.Process + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Task) { + toSerialize["task"] = o.Task + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableAppUsageEvent struct { + value *AppUsageEvent + isSet bool +} + +func (v NullableAppUsageEvent) Get() *AppUsageEvent { + return v.value +} + +func (v *NullableAppUsageEvent) Set(val *AppUsageEvent) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEvent(val *AppUsageEvent) *NullableAppUsageEvent { + return &NullableAppUsageEvent{value: val, isSet: true} +} + +func (v NullableAppUsageEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_app.go b/model_app_usage_event_app.go new file mode 100644 index 0000000..060b21d --- /dev/null +++ b/model_app_usage_event_app.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventApp{} + +// AppUsageEventApp struct for AppUsageEventApp +type AppUsageEventApp struct { + // Unique identifier of the app that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` + // Name of the app that this event pertains to, if applicable + Name NullableString `json:"name,omitempty"` +} + +// NewAppUsageEventApp instantiates a new AppUsageEventApp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventApp() *AppUsageEventApp { + this := AppUsageEventApp{} + return &this +} + +// NewAppUsageEventAppWithDefaults instantiates a new AppUsageEventApp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventAppWithDefaults() *AppUsageEventApp { + this := AppUsageEventApp{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventApp) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventApp) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventApp) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventApp) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventApp) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventApp) UnsetGuid() { + o.Guid.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventApp) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventApp) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *AppUsageEventApp) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *AppUsageEventApp) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *AppUsageEventApp) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *AppUsageEventApp) UnsetName() { + o.Name.Unset() +} + +func (o AppUsageEventApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventApp struct { + value *AppUsageEventApp + isSet bool +} + +func (v NullableAppUsageEventApp) Get() *AppUsageEventApp { + return v.value +} + +func (v *NullableAppUsageEventApp) Set(val *AppUsageEventApp) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventApp) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventApp(val *AppUsageEventApp) *NullableAppUsageEventApp { + return &NullableAppUsageEventApp{value: val, isSet: true} +} + +func (v NullableAppUsageEventApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_buildpack.go b/model_app_usage_event_buildpack.go new file mode 100644 index 0000000..c6dc0a5 --- /dev/null +++ b/model_app_usage_event_buildpack.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventBuildpack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventBuildpack{} + +// AppUsageEventBuildpack struct for AppUsageEventBuildpack +type AppUsageEventBuildpack struct { + // Unique identifier of the buildpack that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` + // Name of the buildpack that this event pertains to, if applicable + Name NullableString `json:"name,omitempty"` +} + +// NewAppUsageEventBuildpack instantiates a new AppUsageEventBuildpack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventBuildpack() *AppUsageEventBuildpack { + this := AppUsageEventBuildpack{} + return &this +} + +// NewAppUsageEventBuildpackWithDefaults instantiates a new AppUsageEventBuildpack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventBuildpackWithDefaults() *AppUsageEventBuildpack { + this := AppUsageEventBuildpack{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventBuildpack) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventBuildpack) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventBuildpack) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventBuildpack) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventBuildpack) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventBuildpack) UnsetGuid() { + o.Guid.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventBuildpack) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventBuildpack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *AppUsageEventBuildpack) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *AppUsageEventBuildpack) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *AppUsageEventBuildpack) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *AppUsageEventBuildpack) UnsetName() { + o.Name.Unset() +} + +func (o AppUsageEventBuildpack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventBuildpack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventBuildpack struct { + value *AppUsageEventBuildpack + isSet bool +} + +func (v NullableAppUsageEventBuildpack) Get() *AppUsageEventBuildpack { + return v.value +} + +func (v *NullableAppUsageEventBuildpack) Set(val *AppUsageEventBuildpack) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventBuildpack) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventBuildpack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventBuildpack(val *AppUsageEventBuildpack) *NullableAppUsageEventBuildpack { + return &NullableAppUsageEventBuildpack{value: val, isSet: true} +} + +func (v NullableAppUsageEventBuildpack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventBuildpack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_instance_count.go b/model_app_usage_event_instance_count.go new file mode 100644 index 0000000..258a8f8 --- /dev/null +++ b/model_app_usage_event_instance_count.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventInstanceCount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventInstanceCount{} + +// AppUsageEventInstanceCount struct for AppUsageEventInstanceCount +type AppUsageEventInstanceCount struct { + // Current instance count of the app that this event pertains to, if applicable + Current NullableInt32 `json:"current,omitempty"` + // Previous instance count of the app that this event pertains to, if applicable + Previous NullableInt32 `json:"previous,omitempty"` +} + +// NewAppUsageEventInstanceCount instantiates a new AppUsageEventInstanceCount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventInstanceCount() *AppUsageEventInstanceCount { + this := AppUsageEventInstanceCount{} + return &this +} + +// NewAppUsageEventInstanceCountWithDefaults instantiates a new AppUsageEventInstanceCount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventInstanceCountWithDefaults() *AppUsageEventInstanceCount { + this := AppUsageEventInstanceCount{} + return &this +} + +// GetCurrent returns the Current field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventInstanceCount) GetCurrent() int32 { + if o == nil || IsNil(o.Current.Get()) { + var ret int32 + return ret + } + return *o.Current.Get() +} + +// GetCurrentOk returns a tuple with the Current field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventInstanceCount) GetCurrentOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Current.Get(), o.Current.IsSet() +} + +// HasCurrent returns a boolean if a field has been set. +func (o *AppUsageEventInstanceCount) HasCurrent() bool { + if o != nil && o.Current.IsSet() { + return true + } + + return false +} + +// SetCurrent gets a reference to the given NullableInt32 and assigns it to the Current field. +func (o *AppUsageEventInstanceCount) SetCurrent(v int32) { + o.Current.Set(&v) +} +// SetCurrentNil sets the value for Current to be an explicit nil +func (o *AppUsageEventInstanceCount) SetCurrentNil() { + o.Current.Set(nil) +} + +// UnsetCurrent ensures that no value is present for Current, not even an explicit nil +func (o *AppUsageEventInstanceCount) UnsetCurrent() { + o.Current.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventInstanceCount) GetPrevious() int32 { + if o == nil || IsNil(o.Previous.Get()) { + var ret int32 + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventInstanceCount) GetPreviousOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *AppUsageEventInstanceCount) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableInt32 and assigns it to the Previous field. +func (o *AppUsageEventInstanceCount) SetPrevious(v int32) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *AppUsageEventInstanceCount) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *AppUsageEventInstanceCount) UnsetPrevious() { + o.Previous.Unset() +} + +func (o AppUsageEventInstanceCount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventInstanceCount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Current.IsSet() { + toSerialize["current"] = o.Current.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventInstanceCount struct { + value *AppUsageEventInstanceCount + isSet bool +} + +func (v NullableAppUsageEventInstanceCount) Get() *AppUsageEventInstanceCount { + return v.value +} + +func (v *NullableAppUsageEventInstanceCount) Set(val *AppUsageEventInstanceCount) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventInstanceCount) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventInstanceCount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventInstanceCount(val *AppUsageEventInstanceCount) *NullableAppUsageEventInstanceCount { + return &NullableAppUsageEventInstanceCount{value: val, isSet: true} +} + +func (v NullableAppUsageEventInstanceCount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventInstanceCount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_links.go b/model_app_usage_event_links.go new file mode 100644 index 0000000..8942b1a --- /dev/null +++ b/model_app_usage_event_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventLinks{} + +// AppUsageEventLinks struct for AppUsageEventLinks +type AppUsageEventLinks struct { + Self *AppUsageEventLinksSelf `json:"self,omitempty"` +} + +// NewAppUsageEventLinks instantiates a new AppUsageEventLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventLinks() *AppUsageEventLinks { + this := AppUsageEventLinks{} + return &this +} + +// NewAppUsageEventLinksWithDefaults instantiates a new AppUsageEventLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventLinksWithDefaults() *AppUsageEventLinks { + this := AppUsageEventLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *AppUsageEventLinks) GetSelf() AppUsageEventLinksSelf { + if o == nil || IsNil(o.Self) { + var ret AppUsageEventLinksSelf + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventLinks) GetSelfOk() (*AppUsageEventLinksSelf, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *AppUsageEventLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given AppUsageEventLinksSelf and assigns it to the Self field. +func (o *AppUsageEventLinks) SetSelf(v AppUsageEventLinksSelf) { + o.Self = &v +} + +func (o AppUsageEventLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableAppUsageEventLinks struct { + value *AppUsageEventLinks + isSet bool +} + +func (v NullableAppUsageEventLinks) Get() *AppUsageEventLinks { + return v.value +} + +func (v *NullableAppUsageEventLinks) Set(val *AppUsageEventLinks) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventLinks(val *AppUsageEventLinks) *NullableAppUsageEventLinks { + return &NullableAppUsageEventLinks{value: val, isSet: true} +} + +func (v NullableAppUsageEventLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_links_self.go b/model_app_usage_event_links_self.go new file mode 100644 index 0000000..011bb3d --- /dev/null +++ b/model_app_usage_event_links_self.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventLinksSelf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventLinksSelf{} + +// AppUsageEventLinksSelf struct for AppUsageEventLinksSelf +type AppUsageEventLinksSelf struct { + // Link to the app usage event resource + Href *string `json:"href,omitempty"` +} + +// NewAppUsageEventLinksSelf instantiates a new AppUsageEventLinksSelf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventLinksSelf() *AppUsageEventLinksSelf { + this := AppUsageEventLinksSelf{} + return &this +} + +// NewAppUsageEventLinksSelfWithDefaults instantiates a new AppUsageEventLinksSelf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventLinksSelfWithDefaults() *AppUsageEventLinksSelf { + this := AppUsageEventLinksSelf{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AppUsageEventLinksSelf) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventLinksSelf) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AppUsageEventLinksSelf) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AppUsageEventLinksSelf) SetHref(v string) { + o.Href = &v +} + +func (o AppUsageEventLinksSelf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventLinksSelf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableAppUsageEventLinksSelf struct { + value *AppUsageEventLinksSelf + isSet bool +} + +func (v NullableAppUsageEventLinksSelf) Get() *AppUsageEventLinksSelf { + return v.value +} + +func (v *NullableAppUsageEventLinksSelf) Set(val *AppUsageEventLinksSelf) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventLinksSelf) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventLinksSelf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventLinksSelf(val *AppUsageEventLinksSelf) *NullableAppUsageEventLinksSelf { + return &NullableAppUsageEventLinksSelf{value: val, isSet: true} +} + +func (v NullableAppUsageEventLinksSelf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventLinksSelf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_list.go b/model_app_usage_event_list.go new file mode 100644 index 0000000..55e0440 --- /dev/null +++ b/model_app_usage_event_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventList{} + +// AppUsageEventList struct for AppUsageEventList +type AppUsageEventList struct { + Pagination *AppUsageEventListPagination `json:"pagination,omitempty"` + Resources []AppUsageEvent `json:"resources,omitempty"` +} + +// NewAppUsageEventList instantiates a new AppUsageEventList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventList() *AppUsageEventList { + this := AppUsageEventList{} + return &this +} + +// NewAppUsageEventListWithDefaults instantiates a new AppUsageEventList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventListWithDefaults() *AppUsageEventList { + this := AppUsageEventList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *AppUsageEventList) GetPagination() AppUsageEventListPagination { + if o == nil || IsNil(o.Pagination) { + var ret AppUsageEventListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventList) GetPaginationOk() (*AppUsageEventListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *AppUsageEventList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given AppUsageEventListPagination and assigns it to the Pagination field. +func (o *AppUsageEventList) SetPagination(v AppUsageEventListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *AppUsageEventList) GetResources() []AppUsageEvent { + if o == nil || IsNil(o.Resources) { + var ret []AppUsageEvent + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventList) GetResourcesOk() ([]AppUsageEvent, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *AppUsageEventList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []AppUsageEvent and assigns it to the Resources field. +func (o *AppUsageEventList) SetResources(v []AppUsageEvent) { + o.Resources = v +} + +func (o AppUsageEventList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableAppUsageEventList struct { + value *AppUsageEventList + isSet bool +} + +func (v NullableAppUsageEventList) Get() *AppUsageEventList { + return v.value +} + +func (v *NullableAppUsageEventList) Set(val *AppUsageEventList) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventList) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventList(val *AppUsageEventList) *NullableAppUsageEventList { + return &NullableAppUsageEventList{value: val, isSet: true} +} + +func (v NullableAppUsageEventList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_list_pagination.go b/model_app_usage_event_list_pagination.go new file mode 100644 index 0000000..7574edc --- /dev/null +++ b/model_app_usage_event_list_pagination.go @@ -0,0 +1,310 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventListPagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventListPagination{} + +// AppUsageEventListPagination struct for AppUsageEventListPagination +type AppUsageEventListPagination struct { + First *AppUsageEventListPaginationFirst `json:"first,omitempty"` + Last *AppUsageEventListPaginationLast `json:"last,omitempty"` + Next *AppUsageEventListPaginationNext `json:"next,omitempty"` + // Link to the previous page, if applicable + Previous map[string]interface{} `json:"previous,omitempty"` + // Total number of pages + TotalPages *int32 `json:"total_pages,omitempty"` + // Total number of results + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewAppUsageEventListPagination instantiates a new AppUsageEventListPagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventListPagination() *AppUsageEventListPagination { + this := AppUsageEventListPagination{} + return &this +} + +// NewAppUsageEventListPaginationWithDefaults instantiates a new AppUsageEventListPagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventListPaginationWithDefaults() *AppUsageEventListPagination { + this := AppUsageEventListPagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *AppUsageEventListPagination) GetFirst() AppUsageEventListPaginationFirst { + if o == nil || IsNil(o.First) { + var ret AppUsageEventListPaginationFirst + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPagination) GetFirstOk() (*AppUsageEventListPaginationFirst, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given AppUsageEventListPaginationFirst and assigns it to the First field. +func (o *AppUsageEventListPagination) SetFirst(v AppUsageEventListPaginationFirst) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *AppUsageEventListPagination) GetLast() AppUsageEventListPaginationLast { + if o == nil || IsNil(o.Last) { + var ret AppUsageEventListPaginationLast + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPagination) GetLastOk() (*AppUsageEventListPaginationLast, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given AppUsageEventListPaginationLast and assigns it to the Last field. +func (o *AppUsageEventListPagination) SetLast(v AppUsageEventListPaginationLast) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *AppUsageEventListPagination) GetNext() AppUsageEventListPaginationNext { + if o == nil || IsNil(o.Next) { + var ret AppUsageEventListPaginationNext + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPagination) GetNextOk() (*AppUsageEventListPaginationNext, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given AppUsageEventListPaginationNext and assigns it to the Next field. +func (o *AppUsageEventListPagination) SetNext(v AppUsageEventListPaginationNext) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventListPagination) GetPrevious() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventListPagination) GetPreviousOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Previous) { + return map[string]interface{}{}, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given map[string]interface{} and assigns it to the Previous field. +func (o *AppUsageEventListPagination) SetPrevious(v map[string]interface{}) { + o.Previous = v +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *AppUsageEventListPagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *AppUsageEventListPagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *AppUsageEventListPagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *AppUsageEventListPagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *AppUsageEventListPagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o AppUsageEventListPagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventListPagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if o.Previous != nil { + toSerialize["previous"] = o.Previous + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableAppUsageEventListPagination struct { + value *AppUsageEventListPagination + isSet bool +} + +func (v NullableAppUsageEventListPagination) Get() *AppUsageEventListPagination { + return v.value +} + +func (v *NullableAppUsageEventListPagination) Set(val *AppUsageEventListPagination) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventListPagination) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventListPagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventListPagination(val *AppUsageEventListPagination) *NullableAppUsageEventListPagination { + return &NullableAppUsageEventListPagination{value: val, isSet: true} +} + +func (v NullableAppUsageEventListPagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventListPagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_list_pagination_first.go b/model_app_usage_event_list_pagination_first.go new file mode 100644 index 0000000..003b325 --- /dev/null +++ b/model_app_usage_event_list_pagination_first.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventListPaginationFirst type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventListPaginationFirst{} + +// AppUsageEventListPaginationFirst struct for AppUsageEventListPaginationFirst +type AppUsageEventListPaginationFirst struct { + // Link to the first page + Href *string `json:"href,omitempty"` +} + +// NewAppUsageEventListPaginationFirst instantiates a new AppUsageEventListPaginationFirst object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventListPaginationFirst() *AppUsageEventListPaginationFirst { + this := AppUsageEventListPaginationFirst{} + return &this +} + +// NewAppUsageEventListPaginationFirstWithDefaults instantiates a new AppUsageEventListPaginationFirst object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventListPaginationFirstWithDefaults() *AppUsageEventListPaginationFirst { + this := AppUsageEventListPaginationFirst{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AppUsageEventListPaginationFirst) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPaginationFirst) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AppUsageEventListPaginationFirst) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AppUsageEventListPaginationFirst) SetHref(v string) { + o.Href = &v +} + +func (o AppUsageEventListPaginationFirst) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventListPaginationFirst) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableAppUsageEventListPaginationFirst struct { + value *AppUsageEventListPaginationFirst + isSet bool +} + +func (v NullableAppUsageEventListPaginationFirst) Get() *AppUsageEventListPaginationFirst { + return v.value +} + +func (v *NullableAppUsageEventListPaginationFirst) Set(val *AppUsageEventListPaginationFirst) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventListPaginationFirst) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventListPaginationFirst) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventListPaginationFirst(val *AppUsageEventListPaginationFirst) *NullableAppUsageEventListPaginationFirst { + return &NullableAppUsageEventListPaginationFirst{value: val, isSet: true} +} + +func (v NullableAppUsageEventListPaginationFirst) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventListPaginationFirst) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_list_pagination_last.go b/model_app_usage_event_list_pagination_last.go new file mode 100644 index 0000000..592e539 --- /dev/null +++ b/model_app_usage_event_list_pagination_last.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventListPaginationLast type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventListPaginationLast{} + +// AppUsageEventListPaginationLast struct for AppUsageEventListPaginationLast +type AppUsageEventListPaginationLast struct { + // Link to the last page + Href *string `json:"href,omitempty"` +} + +// NewAppUsageEventListPaginationLast instantiates a new AppUsageEventListPaginationLast object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventListPaginationLast() *AppUsageEventListPaginationLast { + this := AppUsageEventListPaginationLast{} + return &this +} + +// NewAppUsageEventListPaginationLastWithDefaults instantiates a new AppUsageEventListPaginationLast object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventListPaginationLastWithDefaults() *AppUsageEventListPaginationLast { + this := AppUsageEventListPaginationLast{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AppUsageEventListPaginationLast) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPaginationLast) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AppUsageEventListPaginationLast) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AppUsageEventListPaginationLast) SetHref(v string) { + o.Href = &v +} + +func (o AppUsageEventListPaginationLast) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventListPaginationLast) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableAppUsageEventListPaginationLast struct { + value *AppUsageEventListPaginationLast + isSet bool +} + +func (v NullableAppUsageEventListPaginationLast) Get() *AppUsageEventListPaginationLast { + return v.value +} + +func (v *NullableAppUsageEventListPaginationLast) Set(val *AppUsageEventListPaginationLast) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventListPaginationLast) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventListPaginationLast) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventListPaginationLast(val *AppUsageEventListPaginationLast) *NullableAppUsageEventListPaginationLast { + return &NullableAppUsageEventListPaginationLast{value: val, isSet: true} +} + +func (v NullableAppUsageEventListPaginationLast) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventListPaginationLast) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_list_pagination_next.go b/model_app_usage_event_list_pagination_next.go new file mode 100644 index 0000000..253a85d --- /dev/null +++ b/model_app_usage_event_list_pagination_next.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventListPaginationNext type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventListPaginationNext{} + +// AppUsageEventListPaginationNext struct for AppUsageEventListPaginationNext +type AppUsageEventListPaginationNext struct { + // Link to the next page + Href *string `json:"href,omitempty"` +} + +// NewAppUsageEventListPaginationNext instantiates a new AppUsageEventListPaginationNext object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventListPaginationNext() *AppUsageEventListPaginationNext { + this := AppUsageEventListPaginationNext{} + return &this +} + +// NewAppUsageEventListPaginationNextWithDefaults instantiates a new AppUsageEventListPaginationNext object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventListPaginationNextWithDefaults() *AppUsageEventListPaginationNext { + this := AppUsageEventListPaginationNext{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AppUsageEventListPaginationNext) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppUsageEventListPaginationNext) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AppUsageEventListPaginationNext) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AppUsageEventListPaginationNext) SetHref(v string) { + o.Href = &v +} + +func (o AppUsageEventListPaginationNext) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventListPaginationNext) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableAppUsageEventListPaginationNext struct { + value *AppUsageEventListPaginationNext + isSet bool +} + +func (v NullableAppUsageEventListPaginationNext) Get() *AppUsageEventListPaginationNext { + return v.value +} + +func (v *NullableAppUsageEventListPaginationNext) Set(val *AppUsageEventListPaginationNext) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventListPaginationNext) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventListPaginationNext) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventListPaginationNext(val *AppUsageEventListPaginationNext) *NullableAppUsageEventListPaginationNext { + return &NullableAppUsageEventListPaginationNext{value: val, isSet: true} +} + +func (v NullableAppUsageEventListPaginationNext) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventListPaginationNext) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_memory_in_mb_per_instance.go b/model_app_usage_event_memory_in_mb_per_instance.go new file mode 100644 index 0000000..04b2926 --- /dev/null +++ b/model_app_usage_event_memory_in_mb_per_instance.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventMemoryInMbPerInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventMemoryInMbPerInstance{} + +// AppUsageEventMemoryInMbPerInstance struct for AppUsageEventMemoryInMbPerInstance +type AppUsageEventMemoryInMbPerInstance struct { + // Current memory in MB of the app that this event pertains to, if applicable + Current NullableInt32 `json:"current,omitempty"` + // Previous memory in MB of the app that this event pertains to, if applicable + Previous NullableInt32 `json:"previous,omitempty"` +} + +// NewAppUsageEventMemoryInMbPerInstance instantiates a new AppUsageEventMemoryInMbPerInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventMemoryInMbPerInstance() *AppUsageEventMemoryInMbPerInstance { + this := AppUsageEventMemoryInMbPerInstance{} + return &this +} + +// NewAppUsageEventMemoryInMbPerInstanceWithDefaults instantiates a new AppUsageEventMemoryInMbPerInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventMemoryInMbPerInstanceWithDefaults() *AppUsageEventMemoryInMbPerInstance { + this := AppUsageEventMemoryInMbPerInstance{} + return &this +} + +// GetCurrent returns the Current field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventMemoryInMbPerInstance) GetCurrent() int32 { + if o == nil || IsNil(o.Current.Get()) { + var ret int32 + return ret + } + return *o.Current.Get() +} + +// GetCurrentOk returns a tuple with the Current field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventMemoryInMbPerInstance) GetCurrentOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Current.Get(), o.Current.IsSet() +} + +// HasCurrent returns a boolean if a field has been set. +func (o *AppUsageEventMemoryInMbPerInstance) HasCurrent() bool { + if o != nil && o.Current.IsSet() { + return true + } + + return false +} + +// SetCurrent gets a reference to the given NullableInt32 and assigns it to the Current field. +func (o *AppUsageEventMemoryInMbPerInstance) SetCurrent(v int32) { + o.Current.Set(&v) +} +// SetCurrentNil sets the value for Current to be an explicit nil +func (o *AppUsageEventMemoryInMbPerInstance) SetCurrentNil() { + o.Current.Set(nil) +} + +// UnsetCurrent ensures that no value is present for Current, not even an explicit nil +func (o *AppUsageEventMemoryInMbPerInstance) UnsetCurrent() { + o.Current.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventMemoryInMbPerInstance) GetPrevious() int32 { + if o == nil || IsNil(o.Previous.Get()) { + var ret int32 + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventMemoryInMbPerInstance) GetPreviousOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *AppUsageEventMemoryInMbPerInstance) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableInt32 and assigns it to the Previous field. +func (o *AppUsageEventMemoryInMbPerInstance) SetPrevious(v int32) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *AppUsageEventMemoryInMbPerInstance) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *AppUsageEventMemoryInMbPerInstance) UnsetPrevious() { + o.Previous.Unset() +} + +func (o AppUsageEventMemoryInMbPerInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventMemoryInMbPerInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Current.IsSet() { + toSerialize["current"] = o.Current.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventMemoryInMbPerInstance struct { + value *AppUsageEventMemoryInMbPerInstance + isSet bool +} + +func (v NullableAppUsageEventMemoryInMbPerInstance) Get() *AppUsageEventMemoryInMbPerInstance { + return v.value +} + +func (v *NullableAppUsageEventMemoryInMbPerInstance) Set(val *AppUsageEventMemoryInMbPerInstance) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventMemoryInMbPerInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventMemoryInMbPerInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventMemoryInMbPerInstance(val *AppUsageEventMemoryInMbPerInstance) *NullableAppUsageEventMemoryInMbPerInstance { + return &NullableAppUsageEventMemoryInMbPerInstance{value: val, isSet: true} +} + +func (v NullableAppUsageEventMemoryInMbPerInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventMemoryInMbPerInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_organization.go b/model_app_usage_event_organization.go new file mode 100644 index 0000000..ebabc46 --- /dev/null +++ b/model_app_usage_event_organization.go @@ -0,0 +1,137 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventOrganization{} + +// AppUsageEventOrganization struct for AppUsageEventOrganization +type AppUsageEventOrganization struct { + // Unique identifier of the org that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` +} + +// NewAppUsageEventOrganization instantiates a new AppUsageEventOrganization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventOrganization() *AppUsageEventOrganization { + this := AppUsageEventOrganization{} + return &this +} + +// NewAppUsageEventOrganizationWithDefaults instantiates a new AppUsageEventOrganization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventOrganizationWithDefaults() *AppUsageEventOrganization { + this := AppUsageEventOrganization{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventOrganization) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventOrganization) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventOrganization) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventOrganization) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventOrganization) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventOrganization) UnsetGuid() { + o.Guid.Unset() +} + +func (o AppUsageEventOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventOrganization struct { + value *AppUsageEventOrganization + isSet bool +} + +func (v NullableAppUsageEventOrganization) Get() *AppUsageEventOrganization { + return v.value +} + +func (v *NullableAppUsageEventOrganization) Set(val *AppUsageEventOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventOrganization(val *AppUsageEventOrganization) *NullableAppUsageEventOrganization { + return &NullableAppUsageEventOrganization{value: val, isSet: true} +} + +func (v NullableAppUsageEventOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_process.go b/model_app_usage_event_process.go new file mode 100644 index 0000000..4eb56b5 --- /dev/null +++ b/model_app_usage_event_process.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventProcess type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventProcess{} + +// AppUsageEventProcess struct for AppUsageEventProcess +type AppUsageEventProcess struct { + // Unique identifier of the process that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` + // Type of the process that this event pertains to, if applicable + Type NullableString `json:"type,omitempty"` +} + +// NewAppUsageEventProcess instantiates a new AppUsageEventProcess object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventProcess() *AppUsageEventProcess { + this := AppUsageEventProcess{} + return &this +} + +// NewAppUsageEventProcessWithDefaults instantiates a new AppUsageEventProcess object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventProcessWithDefaults() *AppUsageEventProcess { + this := AppUsageEventProcess{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventProcess) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventProcess) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventProcess) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventProcess) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventProcess) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventProcess) UnsetGuid() { + o.Guid.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventProcess) GetType() string { + if o == nil || IsNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventProcess) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *AppUsageEventProcess) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *AppUsageEventProcess) SetType(v string) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *AppUsageEventProcess) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *AppUsageEventProcess) UnsetType() { + o.Type.Unset() +} + +func (o AppUsageEventProcess) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventProcess) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventProcess struct { + value *AppUsageEventProcess + isSet bool +} + +func (v NullableAppUsageEventProcess) Get() *AppUsageEventProcess { + return v.value +} + +func (v *NullableAppUsageEventProcess) Set(val *AppUsageEventProcess) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventProcess) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventProcess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventProcess(val *AppUsageEventProcess) *NullableAppUsageEventProcess { + return &NullableAppUsageEventProcess{value: val, isSet: true} +} + +func (v NullableAppUsageEventProcess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventProcess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_space.go b/model_app_usage_event_space.go new file mode 100644 index 0000000..b03bd27 --- /dev/null +++ b/model_app_usage_event_space.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventSpace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventSpace{} + +// AppUsageEventSpace struct for AppUsageEventSpace +type AppUsageEventSpace struct { + // Unique identifier of the space that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` + // Name of the space that this event pertains to, if applicable + Name NullableString `json:"name,omitempty"` +} + +// NewAppUsageEventSpace instantiates a new AppUsageEventSpace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventSpace() *AppUsageEventSpace { + this := AppUsageEventSpace{} + return &this +} + +// NewAppUsageEventSpaceWithDefaults instantiates a new AppUsageEventSpace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventSpaceWithDefaults() *AppUsageEventSpace { + this := AppUsageEventSpace{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventSpace) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventSpace) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventSpace) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventSpace) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventSpace) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventSpace) UnsetGuid() { + o.Guid.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventSpace) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventSpace) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *AppUsageEventSpace) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *AppUsageEventSpace) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *AppUsageEventSpace) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *AppUsageEventSpace) UnsetName() { + o.Name.Unset() +} + +func (o AppUsageEventSpace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventSpace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventSpace struct { + value *AppUsageEventSpace + isSet bool +} + +func (v NullableAppUsageEventSpace) Get() *AppUsageEventSpace { + return v.value +} + +func (v *NullableAppUsageEventSpace) Set(val *AppUsageEventSpace) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventSpace) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventSpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventSpace(val *AppUsageEventSpace) *NullableAppUsageEventSpace { + return &NullableAppUsageEventSpace{value: val, isSet: true} +} + +func (v NullableAppUsageEventSpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventSpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_state.go b/model_app_usage_event_state.go new file mode 100644 index 0000000..369a983 --- /dev/null +++ b/model_app_usage_event_state.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventState type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventState{} + +// AppUsageEventState struct for AppUsageEventState +type AppUsageEventState struct { + // Current state of the app that this event pertains to, if applicable + Current NullableString `json:"current,omitempty"` + // Previous state of the app that this event pertains to, if applicable + Previous NullableString `json:"previous,omitempty"` +} + +// NewAppUsageEventState instantiates a new AppUsageEventState object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventState() *AppUsageEventState { + this := AppUsageEventState{} + return &this +} + +// NewAppUsageEventStateWithDefaults instantiates a new AppUsageEventState object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventStateWithDefaults() *AppUsageEventState { + this := AppUsageEventState{} + return &this +} + +// GetCurrent returns the Current field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventState) GetCurrent() string { + if o == nil || IsNil(o.Current.Get()) { + var ret string + return ret + } + return *o.Current.Get() +} + +// GetCurrentOk returns a tuple with the Current field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventState) GetCurrentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Current.Get(), o.Current.IsSet() +} + +// HasCurrent returns a boolean if a field has been set. +func (o *AppUsageEventState) HasCurrent() bool { + if o != nil && o.Current.IsSet() { + return true + } + + return false +} + +// SetCurrent gets a reference to the given NullableString and assigns it to the Current field. +func (o *AppUsageEventState) SetCurrent(v string) { + o.Current.Set(&v) +} +// SetCurrentNil sets the value for Current to be an explicit nil +func (o *AppUsageEventState) SetCurrentNil() { + o.Current.Set(nil) +} + +// UnsetCurrent ensures that no value is present for Current, not even an explicit nil +func (o *AppUsageEventState) UnsetCurrent() { + o.Current.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventState) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventState) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *AppUsageEventState) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *AppUsageEventState) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *AppUsageEventState) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *AppUsageEventState) UnsetPrevious() { + o.Previous.Unset() +} + +func (o AppUsageEventState) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventState) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Current.IsSet() { + toSerialize["current"] = o.Current.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventState struct { + value *AppUsageEventState + isSet bool +} + +func (v NullableAppUsageEventState) Get() *AppUsageEventState { + return v.value +} + +func (v *NullableAppUsageEventState) Set(val *AppUsageEventState) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventState) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventState(val *AppUsageEventState) *NullableAppUsageEventState { + return &NullableAppUsageEventState{value: val, isSet: true} +} + +func (v NullableAppUsageEventState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_app_usage_event_task.go b/model_app_usage_event_task.go new file mode 100644 index 0000000..ec089d6 --- /dev/null +++ b/model_app_usage_event_task.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppUsageEventTask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppUsageEventTask{} + +// AppUsageEventTask struct for AppUsageEventTask +type AppUsageEventTask struct { + // Unique identifier of the task that this event pertains to, if applicable + Guid NullableString `json:"guid,omitempty"` + // Name of the task that this event pertains to, if applicable + Name NullableString `json:"name,omitempty"` +} + +// NewAppUsageEventTask instantiates a new AppUsageEventTask object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppUsageEventTask() *AppUsageEventTask { + this := AppUsageEventTask{} + return &this +} + +// NewAppUsageEventTaskWithDefaults instantiates a new AppUsageEventTask object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppUsageEventTaskWithDefaults() *AppUsageEventTask { + this := AppUsageEventTask{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventTask) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventTask) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *AppUsageEventTask) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *AppUsageEventTask) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *AppUsageEventTask) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *AppUsageEventTask) UnsetGuid() { + o.Guid.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppUsageEventTask) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppUsageEventTask) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *AppUsageEventTask) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *AppUsageEventTask) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *AppUsageEventTask) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *AppUsageEventTask) UnsetName() { + o.Name.Unset() +} + +func (o AppUsageEventTask) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppUsageEventTask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableAppUsageEventTask struct { + value *AppUsageEventTask + isSet bool +} + +func (v NullableAppUsageEventTask) Get() *AppUsageEventTask { + return v.value +} + +func (v *NullableAppUsageEventTask) Set(val *AppUsageEventTask) { + v.value = val + v.isSet = true +} + +func (v NullableAppUsageEventTask) IsSet() bool { + return v.isSet +} + +func (v *NullableAppUsageEventTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppUsageEventTask(val *AppUsageEventTask) *NullableAppUsageEventTask { + return &NullableAppUsageEventTask{value: val, isSet: true} +} + +func (v NullableAppUsageEventTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppUsageEventTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_apply_organization_quota_to_organizations_201_response.go b/model_apply_organization_quota_to_organizations_201_response.go new file mode 100644 index 0000000..1c53933 --- /dev/null +++ b/model_apply_organization_quota_to_organizations_201_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ApplyOrganizationQuotaToOrganizations201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApplyOrganizationQuotaToOrganizations201Response{} + +// ApplyOrganizationQuotaToOrganizations201Response struct for ApplyOrganizationQuotaToOrganizations201Response +type ApplyOrganizationQuotaToOrganizations201Response struct { + Data []V3DropletsPostRequestRelationshipsAppData `json:"data,omitempty"` + Links *ApplyOrganizationQuotaToOrganizations201ResponseLinks `json:"links,omitempty"` +} + +// NewApplyOrganizationQuotaToOrganizations201Response instantiates a new ApplyOrganizationQuotaToOrganizations201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApplyOrganizationQuotaToOrganizations201Response() *ApplyOrganizationQuotaToOrganizations201Response { + this := ApplyOrganizationQuotaToOrganizations201Response{} + return &this +} + +// NewApplyOrganizationQuotaToOrganizations201ResponseWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizations201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApplyOrganizationQuotaToOrganizations201ResponseWithDefaults() *ApplyOrganizationQuotaToOrganizations201Response { + this := ApplyOrganizationQuotaToOrganizations201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ApplyOrganizationQuotaToOrganizations201Response) GetData() []V3DropletsPostRequestRelationshipsAppData { + if o == nil || IsNil(o.Data) { + var ret []V3DropletsPostRequestRelationshipsAppData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplyOrganizationQuotaToOrganizations201Response) GetDataOk() ([]V3DropletsPostRequestRelationshipsAppData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ApplyOrganizationQuotaToOrganizations201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3DropletsPostRequestRelationshipsAppData and assigns it to the Data field. +func (o *ApplyOrganizationQuotaToOrganizations201Response) SetData(v []V3DropletsPostRequestRelationshipsAppData) { + o.Data = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ApplyOrganizationQuotaToOrganizations201Response) GetLinks() ApplyOrganizationQuotaToOrganizations201ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret ApplyOrganizationQuotaToOrganizations201ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplyOrganizationQuotaToOrganizations201Response) GetLinksOk() (*ApplyOrganizationQuotaToOrganizations201ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ApplyOrganizationQuotaToOrganizations201Response) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ApplyOrganizationQuotaToOrganizations201ResponseLinks and assigns it to the Links field. +func (o *ApplyOrganizationQuotaToOrganizations201Response) SetLinks(v ApplyOrganizationQuotaToOrganizations201ResponseLinks) { + o.Links = &v +} + +func (o ApplyOrganizationQuotaToOrganizations201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApplyOrganizationQuotaToOrganizations201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + return toSerialize, nil +} + +type NullableApplyOrganizationQuotaToOrganizations201Response struct { + value *ApplyOrganizationQuotaToOrganizations201Response + isSet bool +} + +func (v NullableApplyOrganizationQuotaToOrganizations201Response) Get() *ApplyOrganizationQuotaToOrganizations201Response { + return v.value +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201Response) Set(val *ApplyOrganizationQuotaToOrganizations201Response) { + v.value = val + v.isSet = true +} + +func (v NullableApplyOrganizationQuotaToOrganizations201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApplyOrganizationQuotaToOrganizations201Response(val *ApplyOrganizationQuotaToOrganizations201Response) *NullableApplyOrganizationQuotaToOrganizations201Response { + return &NullableApplyOrganizationQuotaToOrganizations201Response{value: val, isSet: true} +} + +func (v NullableApplyOrganizationQuotaToOrganizations201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_apply_organization_quota_to_organizations_201_response_links.go b/model_apply_organization_quota_to_organizations_201_response_links.go new file mode 100644 index 0000000..44123e0 --- /dev/null +++ b/model_apply_organization_quota_to_organizations_201_response_links.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ApplyOrganizationQuotaToOrganizations201ResponseLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApplyOrganizationQuotaToOrganizations201ResponseLinks{} + +// ApplyOrganizationQuotaToOrganizations201ResponseLinks struct for ApplyOrganizationQuotaToOrganizations201ResponseLinks +type ApplyOrganizationQuotaToOrganizations201ResponseLinks struct { + // URL of the applied quota relationship + Self *string `json:"self,omitempty"` +} + +// NewApplyOrganizationQuotaToOrganizations201ResponseLinks instantiates a new ApplyOrganizationQuotaToOrganizations201ResponseLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApplyOrganizationQuotaToOrganizations201ResponseLinks() *ApplyOrganizationQuotaToOrganizations201ResponseLinks { + this := ApplyOrganizationQuotaToOrganizations201ResponseLinks{} + return &this +} + +// NewApplyOrganizationQuotaToOrganizations201ResponseLinksWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizations201ResponseLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApplyOrganizationQuotaToOrganizations201ResponseLinksWithDefaults() *ApplyOrganizationQuotaToOrganizations201ResponseLinks { + this := ApplyOrganizationQuotaToOrganizations201ResponseLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *ApplyOrganizationQuotaToOrganizations201ResponseLinks) SetSelf(v string) { + o.Self = &v +} + +func (o ApplyOrganizationQuotaToOrganizations201ResponseLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApplyOrganizationQuotaToOrganizations201ResponseLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableApplyOrganizationQuotaToOrganizations201ResponseLinks struct { + value *ApplyOrganizationQuotaToOrganizations201ResponseLinks + isSet bool +} + +func (v NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) Get() *ApplyOrganizationQuotaToOrganizations201ResponseLinks { + return v.value +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) Set(val *ApplyOrganizationQuotaToOrganizations201ResponseLinks) { + v.value = val + v.isSet = true +} + +func (v NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApplyOrganizationQuotaToOrganizations201ResponseLinks(val *ApplyOrganizationQuotaToOrganizations201ResponseLinks) *NullableApplyOrganizationQuotaToOrganizations201ResponseLinks { + return &NullableApplyOrganizationQuotaToOrganizations201ResponseLinks{value: val, isSet: true} +} + +func (v NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApplyOrganizationQuotaToOrganizations201ResponseLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_apply_organization_quota_to_organizations_request.go b/model_apply_organization_quota_to_organizations_request.go new file mode 100644 index 0000000..388c9ff --- /dev/null +++ b/model_apply_organization_quota_to_organizations_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ApplyOrganizationQuotaToOrganizationsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApplyOrganizationQuotaToOrganizationsRequest{} + +// ApplyOrganizationQuotaToOrganizationsRequest struct for ApplyOrganizationQuotaToOrganizationsRequest +type ApplyOrganizationQuotaToOrganizationsRequest struct { + Data []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner `json:"data,omitempty"` +} + +// NewApplyOrganizationQuotaToOrganizationsRequest instantiates a new ApplyOrganizationQuotaToOrganizationsRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApplyOrganizationQuotaToOrganizationsRequest() *ApplyOrganizationQuotaToOrganizationsRequest { + this := ApplyOrganizationQuotaToOrganizationsRequest{} + return &this +} + +// NewApplyOrganizationQuotaToOrganizationsRequestWithDefaults instantiates a new ApplyOrganizationQuotaToOrganizationsRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApplyOrganizationQuotaToOrganizationsRequestWithDefaults() *ApplyOrganizationQuotaToOrganizationsRequest { + this := ApplyOrganizationQuotaToOrganizationsRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ApplyOrganizationQuotaToOrganizationsRequest) GetData() []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + if o == nil || IsNil(o.Data) { + var ret []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApplyOrganizationQuotaToOrganizationsRequest) GetDataOk() ([]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ApplyOrganizationQuotaToOrganizationsRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner and assigns it to the Data field. +func (o *ApplyOrganizationQuotaToOrganizationsRequest) SetData(v []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) { + o.Data = v +} + +func (o ApplyOrganizationQuotaToOrganizationsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApplyOrganizationQuotaToOrganizationsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableApplyOrganizationQuotaToOrganizationsRequest struct { + value *ApplyOrganizationQuotaToOrganizationsRequest + isSet bool +} + +func (v NullableApplyOrganizationQuotaToOrganizationsRequest) Get() *ApplyOrganizationQuotaToOrganizationsRequest { + return v.value +} + +func (v *NullableApplyOrganizationQuotaToOrganizationsRequest) Set(val *ApplyOrganizationQuotaToOrganizationsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableApplyOrganizationQuotaToOrganizationsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableApplyOrganizationQuotaToOrganizationsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApplyOrganizationQuotaToOrganizationsRequest(val *ApplyOrganizationQuotaToOrganizationsRequest) *NullableApplyOrganizationQuotaToOrganizationsRequest { + return &NullableApplyOrganizationQuotaToOrganizationsRequest{value: val, isSet: true} +} + +func (v NullableApplyOrganizationQuotaToOrganizationsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApplyOrganizationQuotaToOrganizationsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_apps_quota.go b/model_apps_quota.go new file mode 100644 index 0000000..875ec9b --- /dev/null +++ b/model_apps_quota.go @@ -0,0 +1,325 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AppsQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppsQuota{} + +// AppsQuota struct for AppsQuota +type AppsQuota struct { + // Total log rate limit allowed for all the started processes and running tasks in an organization + LogRateLimitInBytesPerSecond NullableInt32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + // Maximum number of running tasks in an organization + PerAppTasks NullableInt32 `json:"per_app_tasks,omitempty"` + // Maximum memory for a single process or task + PerProcessMemoryInMb NullableInt32 `json:"per_process_memory_in_mb,omitempty"` + // Total instances of all the started processes allowed in an organization + TotalInstances NullableInt32 `json:"total_instances,omitempty"` + // Total memory allowed for all the started processes and running tasks in an organization + TotalMemoryInMb NullableInt32 `json:"total_memory_in_mb,omitempty"` +} + +// NewAppsQuota instantiates a new AppsQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppsQuota() *AppsQuota { + this := AppsQuota{} + return &this +} + +// NewAppsQuotaWithDefaults instantiates a new AppsQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppsQuotaWithDefaults() *AppsQuota { + this := AppsQuota{} + return &this +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppsQuota) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond.Get()) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond.Get() +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppsQuota) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LogRateLimitInBytesPerSecond.Get(), o.LogRateLimitInBytesPerSecond.IsSet() +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *AppsQuota) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && o.LogRateLimitInBytesPerSecond.IsSet() { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given NullableInt32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *AppsQuota) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond.Set(&v) +} +// SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil +func (o *AppsQuota) SetLogRateLimitInBytesPerSecondNil() { + o.LogRateLimitInBytesPerSecond.Set(nil) +} + +// UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +func (o *AppsQuota) UnsetLogRateLimitInBytesPerSecond() { + o.LogRateLimitInBytesPerSecond.Unset() +} + +// GetPerAppTasks returns the PerAppTasks field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppsQuota) GetPerAppTasks() int32 { + if o == nil || IsNil(o.PerAppTasks.Get()) { + var ret int32 + return ret + } + return *o.PerAppTasks.Get() +} + +// GetPerAppTasksOk returns a tuple with the PerAppTasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppsQuota) GetPerAppTasksOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerAppTasks.Get(), o.PerAppTasks.IsSet() +} + +// HasPerAppTasks returns a boolean if a field has been set. +func (o *AppsQuota) HasPerAppTasks() bool { + if o != nil && o.PerAppTasks.IsSet() { + return true + } + + return false +} + +// SetPerAppTasks gets a reference to the given NullableInt32 and assigns it to the PerAppTasks field. +func (o *AppsQuota) SetPerAppTasks(v int32) { + o.PerAppTasks.Set(&v) +} +// SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil +func (o *AppsQuota) SetPerAppTasksNil() { + o.PerAppTasks.Set(nil) +} + +// UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +func (o *AppsQuota) UnsetPerAppTasks() { + o.PerAppTasks.Unset() +} + +// GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppsQuota) GetPerProcessMemoryInMb() int32 { + if o == nil || IsNil(o.PerProcessMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.PerProcessMemoryInMb.Get() +} + +// GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppsQuota) GetPerProcessMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerProcessMemoryInMb.Get(), o.PerProcessMemoryInMb.IsSet() +} + +// HasPerProcessMemoryInMb returns a boolean if a field has been set. +func (o *AppsQuota) HasPerProcessMemoryInMb() bool { + if o != nil && o.PerProcessMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetPerProcessMemoryInMb gets a reference to the given NullableInt32 and assigns it to the PerProcessMemoryInMb field. +func (o *AppsQuota) SetPerProcessMemoryInMb(v int32) { + o.PerProcessMemoryInMb.Set(&v) +} +// SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil +func (o *AppsQuota) SetPerProcessMemoryInMbNil() { + o.PerProcessMemoryInMb.Set(nil) +} + +// UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +func (o *AppsQuota) UnsetPerProcessMemoryInMb() { + o.PerProcessMemoryInMb.Unset() +} + +// GetTotalInstances returns the TotalInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppsQuota) GetTotalInstances() int32 { + if o == nil || IsNil(o.TotalInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalInstances.Get() +} + +// GetTotalInstancesOk returns a tuple with the TotalInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppsQuota) GetTotalInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalInstances.Get(), o.TotalInstances.IsSet() +} + +// HasTotalInstances returns a boolean if a field has been set. +func (o *AppsQuota) HasTotalInstances() bool { + if o != nil && o.TotalInstances.IsSet() { + return true + } + + return false +} + +// SetTotalInstances gets a reference to the given NullableInt32 and assigns it to the TotalInstances field. +func (o *AppsQuota) SetTotalInstances(v int32) { + o.TotalInstances.Set(&v) +} +// SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil +func (o *AppsQuota) SetTotalInstancesNil() { + o.TotalInstances.Set(nil) +} + +// UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +func (o *AppsQuota) UnsetTotalInstances() { + o.TotalInstances.Unset() +} + +// GetTotalMemoryInMb returns the TotalMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppsQuota) GetTotalMemoryInMb() int32 { + if o == nil || IsNil(o.TotalMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.TotalMemoryInMb.Get() +} + +// GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppsQuota) GetTotalMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalMemoryInMb.Get(), o.TotalMemoryInMb.IsSet() +} + +// HasTotalMemoryInMb returns a boolean if a field has been set. +func (o *AppsQuota) HasTotalMemoryInMb() bool { + if o != nil && o.TotalMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetTotalMemoryInMb gets a reference to the given NullableInt32 and assigns it to the TotalMemoryInMb field. +func (o *AppsQuota) SetTotalMemoryInMb(v int32) { + o.TotalMemoryInMb.Set(&v) +} +// SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil +func (o *AppsQuota) SetTotalMemoryInMbNil() { + o.TotalMemoryInMb.Set(nil) +} + +// UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil +func (o *AppsQuota) UnsetTotalMemoryInMb() { + o.TotalMemoryInMb.Unset() +} + +func (o AppsQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppsQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LogRateLimitInBytesPerSecond.IsSet() { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond.Get() + } + if o.PerAppTasks.IsSet() { + toSerialize["per_app_tasks"] = o.PerAppTasks.Get() + } + if o.PerProcessMemoryInMb.IsSet() { + toSerialize["per_process_memory_in_mb"] = o.PerProcessMemoryInMb.Get() + } + if o.TotalInstances.IsSet() { + toSerialize["total_instances"] = o.TotalInstances.Get() + } + if o.TotalMemoryInMb.IsSet() { + toSerialize["total_memory_in_mb"] = o.TotalMemoryInMb.Get() + } + return toSerialize, nil +} + +type NullableAppsQuota struct { + value *AppsQuota + isSet bool +} + +func (v NullableAppsQuota) Get() *AppsQuota { + return v.value +} + +func (v *NullableAppsQuota) Set(val *AppsQuota) { + v.value = val + v.isSet = true +} + +func (v NullableAppsQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableAppsQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppsQuota(val *AppsQuota) *NullableAppsQuota { + return &NullableAppsQuota{value: val, isSet: true} +} + +func (v NullableAppsQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppsQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event.go b/model_audit_event.go new file mode 100644 index 0000000..6c47cdc --- /dev/null +++ b/model_audit_event.go @@ -0,0 +1,456 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the AuditEvent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEvent{} + +// AuditEvent struct for AuditEvent +type AuditEvent struct { + Actor *AuditEventActor `json:"actor,omitempty"` + // The time with zone when the object was created + CreatedAt *time.Time `json:"created_at,omitempty"` + // Additional information about event + Data map[string]interface{} `json:"data,omitempty"` + // Unique identifier for the event + Guid *string `json:"guid,omitempty"` + Links *AuditEventLinks `json:"links,omitempty"` + Organization *AuditEventOrganization `json:"organization,omitempty"` + Space *AuditEventSpace `json:"space,omitempty"` + Target *AuditEventTarget `json:"target,omitempty"` + // The type of the event + Type *string `json:"type,omitempty"` + // The time with zone when the object was last updated + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAuditEvent instantiates a new AuditEvent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEvent() *AuditEvent { + this := AuditEvent{} + return &this +} + +// NewAuditEventWithDefaults instantiates a new AuditEvent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventWithDefaults() *AuditEvent { + this := AuditEvent{} + return &this +} + +// GetActor returns the Actor field value if set, zero value otherwise. +func (o *AuditEvent) GetActor() AuditEventActor { + if o == nil || IsNil(o.Actor) { + var ret AuditEventActor + return ret + } + return *o.Actor +} + +// GetActorOk returns a tuple with the Actor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetActorOk() (*AuditEventActor, bool) { + if o == nil || IsNil(o.Actor) { + return nil, false + } + return o.Actor, true +} + +// HasActor returns a boolean if a field has been set. +func (o *AuditEvent) HasActor() bool { + if o != nil && !IsNil(o.Actor) { + return true + } + + return false +} + +// SetActor gets a reference to the given AuditEventActor and assigns it to the Actor field. +func (o *AuditEvent) SetActor(v AuditEventActor) { + o.Actor = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AuditEvent) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AuditEvent) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AuditEvent) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AuditEvent) GetData() map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AuditEvent) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *AuditEvent) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AuditEvent) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AuditEvent) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AuditEvent) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *AuditEvent) GetLinks() AuditEventLinks { + if o == nil || IsNil(o.Links) { + var ret AuditEventLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetLinksOk() (*AuditEventLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *AuditEvent) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given AuditEventLinks and assigns it to the Links field. +func (o *AuditEvent) SetLinks(v AuditEventLinks) { + o.Links = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *AuditEvent) GetOrganization() AuditEventOrganization { + if o == nil || IsNil(o.Organization) { + var ret AuditEventOrganization + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetOrganizationOk() (*AuditEventOrganization, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *AuditEvent) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given AuditEventOrganization and assigns it to the Organization field. +func (o *AuditEvent) SetOrganization(v AuditEventOrganization) { + o.Organization = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *AuditEvent) GetSpace() AuditEventSpace { + if o == nil || IsNil(o.Space) { + var ret AuditEventSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetSpaceOk() (*AuditEventSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *AuditEvent) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given AuditEventSpace and assigns it to the Space field. +func (o *AuditEvent) SetSpace(v AuditEventSpace) { + o.Space = &v +} + +// GetTarget returns the Target field value if set, zero value otherwise. +func (o *AuditEvent) GetTarget() AuditEventTarget { + if o == nil || IsNil(o.Target) { + var ret AuditEventTarget + return ret + } + return *o.Target +} + +// GetTargetOk returns a tuple with the Target field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetTargetOk() (*AuditEventTarget, bool) { + if o == nil || IsNil(o.Target) { + return nil, false + } + return o.Target, true +} + +// HasTarget returns a boolean if a field has been set. +func (o *AuditEvent) HasTarget() bool { + if o != nil && !IsNil(o.Target) { + return true + } + + return false +} + +// SetTarget gets a reference to the given AuditEventTarget and assigns it to the Target field. +func (o *AuditEvent) SetTarget(v AuditEventTarget) { + o.Target = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AuditEvent) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AuditEvent) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AuditEvent) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AuditEvent) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEvent) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AuditEvent) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AuditEvent) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AuditEvent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEvent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Actor) { + toSerialize["actor"] = o.Actor + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.Target) { + toSerialize["target"] = o.Target + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableAuditEvent struct { + value *AuditEvent + isSet bool +} + +func (v NullableAuditEvent) Get() *AuditEvent { + return v.value +} + +func (v *NullableAuditEvent) Set(val *AuditEvent) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEvent(val *AuditEvent) *NullableAuditEvent { + return &NullableAuditEvent{value: val, isSet: true} +} + +func (v NullableAuditEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_actor.go b/model_audit_event_actor.go new file mode 100644 index 0000000..131421d --- /dev/null +++ b/model_audit_event_actor.go @@ -0,0 +1,201 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventActor type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventActor{} + +// AuditEventActor struct for AuditEventActor +type AuditEventActor struct { + // Unique identifier for the actor + Guid *string `json:"guid,omitempty"` + // The name of the actor + Name *string `json:"name,omitempty"` + // The actor type + Type *string `json:"type,omitempty"` +} + +// NewAuditEventActor instantiates a new AuditEventActor object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventActor() *AuditEventActor { + this := AuditEventActor{} + return &this +} + +// NewAuditEventActorWithDefaults instantiates a new AuditEventActor object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventActorWithDefaults() *AuditEventActor { + this := AuditEventActor{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AuditEventActor) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventActor) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AuditEventActor) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AuditEventActor) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AuditEventActor) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventActor) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *AuditEventActor) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *AuditEventActor) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AuditEventActor) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventActor) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AuditEventActor) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AuditEventActor) SetType(v string) { + o.Type = &v +} + +func (o AuditEventActor) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventActor) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableAuditEventActor struct { + value *AuditEventActor + isSet bool +} + +func (v NullableAuditEventActor) Get() *AuditEventActor { + return v.value +} + +func (v *NullableAuditEventActor) Set(val *AuditEventActor) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventActor) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventActor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventActor(val *AuditEventActor) *NullableAuditEventActor { + return &NullableAuditEventActor{value: val, isSet: true} +} + +func (v NullableAuditEventActor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventActor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_links.go b/model_audit_event_links.go new file mode 100644 index 0000000..ba462b1 --- /dev/null +++ b/model_audit_event_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventLinks{} + +// AuditEventLinks struct for AuditEventLinks +type AuditEventLinks struct { + Self *AuditEventLinksSelf `json:"self,omitempty"` +} + +// NewAuditEventLinks instantiates a new AuditEventLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventLinks() *AuditEventLinks { + this := AuditEventLinks{} + return &this +} + +// NewAuditEventLinksWithDefaults instantiates a new AuditEventLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventLinksWithDefaults() *AuditEventLinks { + this := AuditEventLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *AuditEventLinks) GetSelf() AuditEventLinksSelf { + if o == nil || IsNil(o.Self) { + var ret AuditEventLinksSelf + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventLinks) GetSelfOk() (*AuditEventLinksSelf, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *AuditEventLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given AuditEventLinksSelf and assigns it to the Self field. +func (o *AuditEventLinks) SetSelf(v AuditEventLinksSelf) { + o.Self = &v +} + +func (o AuditEventLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableAuditEventLinks struct { + value *AuditEventLinks + isSet bool +} + +func (v NullableAuditEventLinks) Get() *AuditEventLinks { + return v.value +} + +func (v *NullableAuditEventLinks) Set(val *AuditEventLinks) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventLinks(val *AuditEventLinks) *NullableAuditEventLinks { + return &NullableAuditEventLinks{value: val, isSet: true} +} + +func (v NullableAuditEventLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_links_self.go b/model_audit_event_links_self.go new file mode 100644 index 0000000..377b939 --- /dev/null +++ b/model_audit_event_links_self.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventLinksSelf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventLinksSelf{} + +// AuditEventLinksSelf struct for AuditEventLinksSelf +type AuditEventLinksSelf struct { + // Link to the audit event resource + Href *string `json:"href,omitempty"` +} + +// NewAuditEventLinksSelf instantiates a new AuditEventLinksSelf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventLinksSelf() *AuditEventLinksSelf { + this := AuditEventLinksSelf{} + return &this +} + +// NewAuditEventLinksSelfWithDefaults instantiates a new AuditEventLinksSelf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventLinksSelfWithDefaults() *AuditEventLinksSelf { + this := AuditEventLinksSelf{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AuditEventLinksSelf) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventLinksSelf) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AuditEventLinksSelf) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AuditEventLinksSelf) SetHref(v string) { + o.Href = &v +} + +func (o AuditEventLinksSelf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventLinksSelf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableAuditEventLinksSelf struct { + value *AuditEventLinksSelf + isSet bool +} + +func (v NullableAuditEventLinksSelf) Get() *AuditEventLinksSelf { + return v.value +} + +func (v *NullableAuditEventLinksSelf) Set(val *AuditEventLinksSelf) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventLinksSelf) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventLinksSelf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventLinksSelf(val *AuditEventLinksSelf) *NullableAuditEventLinksSelf { + return &NullableAuditEventLinksSelf{value: val, isSet: true} +} + +func (v NullableAuditEventLinksSelf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventLinksSelf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_list.go b/model_audit_event_list.go new file mode 100644 index 0000000..5c7829d --- /dev/null +++ b/model_audit_event_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventList{} + +// AuditEventList struct for AuditEventList +type AuditEventList struct { + Pagination *AuditEventListPagination `json:"pagination,omitempty"` + Resources []AuditEvent `json:"resources,omitempty"` +} + +// NewAuditEventList instantiates a new AuditEventList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventList() *AuditEventList { + this := AuditEventList{} + return &this +} + +// NewAuditEventListWithDefaults instantiates a new AuditEventList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventListWithDefaults() *AuditEventList { + this := AuditEventList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *AuditEventList) GetPagination() AuditEventListPagination { + if o == nil || IsNil(o.Pagination) { + var ret AuditEventListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventList) GetPaginationOk() (*AuditEventListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *AuditEventList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given AuditEventListPagination and assigns it to the Pagination field. +func (o *AuditEventList) SetPagination(v AuditEventListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *AuditEventList) GetResources() []AuditEvent { + if o == nil || IsNil(o.Resources) { + var ret []AuditEvent + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventList) GetResourcesOk() ([]AuditEvent, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *AuditEventList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []AuditEvent and assigns it to the Resources field. +func (o *AuditEventList) SetResources(v []AuditEvent) { + o.Resources = v +} + +func (o AuditEventList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableAuditEventList struct { + value *AuditEventList + isSet bool +} + +func (v NullableAuditEventList) Get() *AuditEventList { + return v.value +} + +func (v *NullableAuditEventList) Set(val *AuditEventList) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventList) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventList(val *AuditEventList) *NullableAuditEventList { + return &NullableAuditEventList{value: val, isSet: true} +} + +func (v NullableAuditEventList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_list_pagination.go b/model_audit_event_list_pagination.go new file mode 100644 index 0000000..30dc556 --- /dev/null +++ b/model_audit_event_list_pagination.go @@ -0,0 +1,312 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventListPagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventListPagination{} + +// AuditEventListPagination struct for AuditEventListPagination +type AuditEventListPagination struct { + First *AppUsageEventListPaginationFirst `json:"first,omitempty"` + Last *AppUsageEventListPaginationLast `json:"last,omitempty"` + // Link to the next page, if applicable + Next map[string]interface{} `json:"next,omitempty"` + // Link to the previous page, if applicable + Previous map[string]interface{} `json:"previous,omitempty"` + // Total number of pages + TotalPages *int32 `json:"total_pages,omitempty"` + // Total number of results + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewAuditEventListPagination instantiates a new AuditEventListPagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventListPagination() *AuditEventListPagination { + this := AuditEventListPagination{} + return &this +} + +// NewAuditEventListPaginationWithDefaults instantiates a new AuditEventListPagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventListPaginationWithDefaults() *AuditEventListPagination { + this := AuditEventListPagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *AuditEventListPagination) GetFirst() AppUsageEventListPaginationFirst { + if o == nil || IsNil(o.First) { + var ret AppUsageEventListPaginationFirst + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventListPagination) GetFirstOk() (*AppUsageEventListPaginationFirst, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given AppUsageEventListPaginationFirst and assigns it to the First field. +func (o *AuditEventListPagination) SetFirst(v AppUsageEventListPaginationFirst) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *AuditEventListPagination) GetLast() AppUsageEventListPaginationLast { + if o == nil || IsNil(o.Last) { + var ret AppUsageEventListPaginationLast + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventListPagination) GetLastOk() (*AppUsageEventListPaginationLast, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given AppUsageEventListPaginationLast and assigns it to the Last field. +func (o *AuditEventListPagination) SetLast(v AppUsageEventListPaginationLast) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuditEventListPagination) GetNext() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuditEventListPagination) GetNextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Next) { + return map[string]interface{}{}, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given map[string]interface{} and assigns it to the Next field. +func (o *AuditEventListPagination) SetNext(v map[string]interface{}) { + o.Next = v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AuditEventListPagination) GetPrevious() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AuditEventListPagination) GetPreviousOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Previous) { + return map[string]interface{}{}, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given map[string]interface{} and assigns it to the Previous field. +func (o *AuditEventListPagination) SetPrevious(v map[string]interface{}) { + o.Previous = v +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *AuditEventListPagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventListPagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *AuditEventListPagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *AuditEventListPagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventListPagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *AuditEventListPagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *AuditEventListPagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o AuditEventListPagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventListPagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if o.Next != nil { + toSerialize["next"] = o.Next + } + if o.Previous != nil { + toSerialize["previous"] = o.Previous + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableAuditEventListPagination struct { + value *AuditEventListPagination + isSet bool +} + +func (v NullableAuditEventListPagination) Get() *AuditEventListPagination { + return v.value +} + +func (v *NullableAuditEventListPagination) Set(val *AuditEventListPagination) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventListPagination) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventListPagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventListPagination(val *AuditEventListPagination) *NullableAuditEventListPagination { + return &NullableAuditEventListPagination{value: val, isSet: true} +} + +func (v NullableAuditEventListPagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventListPagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_organization.go b/model_audit_event_organization.go new file mode 100644 index 0000000..cc5d2fb --- /dev/null +++ b/model_audit_event_organization.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventOrganization{} + +// AuditEventOrganization struct for AuditEventOrganization +type AuditEventOrganization struct { + // Unique identifier for the organization where the event occurred + Guid *string `json:"guid,omitempty"` +} + +// NewAuditEventOrganization instantiates a new AuditEventOrganization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventOrganization() *AuditEventOrganization { + this := AuditEventOrganization{} + return &this +} + +// NewAuditEventOrganizationWithDefaults instantiates a new AuditEventOrganization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventOrganizationWithDefaults() *AuditEventOrganization { + this := AuditEventOrganization{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AuditEventOrganization) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventOrganization) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AuditEventOrganization) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AuditEventOrganization) SetGuid(v string) { + o.Guid = &v +} + +func (o AuditEventOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableAuditEventOrganization struct { + value *AuditEventOrganization + isSet bool +} + +func (v NullableAuditEventOrganization) Get() *AuditEventOrganization { + return v.value +} + +func (v *NullableAuditEventOrganization) Set(val *AuditEventOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventOrganization(val *AuditEventOrganization) *NullableAuditEventOrganization { + return &NullableAuditEventOrganization{value: val, isSet: true} +} + +func (v NullableAuditEventOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_space.go b/model_audit_event_space.go new file mode 100644 index 0000000..3f2e14f --- /dev/null +++ b/model_audit_event_space.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventSpace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventSpace{} + +// AuditEventSpace struct for AuditEventSpace +type AuditEventSpace struct { + // Unique identifier for the space where the event occurred + Guid *string `json:"guid,omitempty"` +} + +// NewAuditEventSpace instantiates a new AuditEventSpace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventSpace() *AuditEventSpace { + this := AuditEventSpace{} + return &this +} + +// NewAuditEventSpaceWithDefaults instantiates a new AuditEventSpace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventSpaceWithDefaults() *AuditEventSpace { + this := AuditEventSpace{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AuditEventSpace) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventSpace) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AuditEventSpace) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AuditEventSpace) SetGuid(v string) { + o.Guid = &v +} + +func (o AuditEventSpace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventSpace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableAuditEventSpace struct { + value *AuditEventSpace + isSet bool +} + +func (v NullableAuditEventSpace) Get() *AuditEventSpace { + return v.value +} + +func (v *NullableAuditEventSpace) Set(val *AuditEventSpace) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventSpace) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventSpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventSpace(val *AuditEventSpace) *NullableAuditEventSpace { + return &NullableAuditEventSpace{value: val, isSet: true} +} + +func (v NullableAuditEventSpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventSpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_audit_event_target.go b/model_audit_event_target.go new file mode 100644 index 0000000..cb217c3 --- /dev/null +++ b/model_audit_event_target.go @@ -0,0 +1,201 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuditEventTarget type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuditEventTarget{} + +// AuditEventTarget struct for AuditEventTarget +type AuditEventTarget struct { + // Unique identifier for the target + Guid *string `json:"guid,omitempty"` + // The name of the target + Name *string `json:"name,omitempty"` + // The target type + Type *string `json:"type,omitempty"` +} + +// NewAuditEventTarget instantiates a new AuditEventTarget object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuditEventTarget() *AuditEventTarget { + this := AuditEventTarget{} + return &this +} + +// NewAuditEventTargetWithDefaults instantiates a new AuditEventTarget object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuditEventTargetWithDefaults() *AuditEventTarget { + this := AuditEventTarget{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *AuditEventTarget) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventTarget) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *AuditEventTarget) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *AuditEventTarget) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AuditEventTarget) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventTarget) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *AuditEventTarget) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *AuditEventTarget) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AuditEventTarget) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuditEventTarget) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AuditEventTarget) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AuditEventTarget) SetType(v string) { + o.Type = &v +} + +func (o AuditEventTarget) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuditEventTarget) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableAuditEventTarget struct { + value *AuditEventTarget + isSet bool +} + +func (v NullableAuditEventTarget) Get() *AuditEventTarget { + return v.value +} + +func (v *NullableAuditEventTarget) Set(val *AuditEventTarget) { + v.value = val + v.isSet = true +} + +func (v NullableAuditEventTarget) IsSet() bool { + return v.isSet +} + +func (v *NullableAuditEventTarget) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuditEventTarget(val *AuditEventTarget) *NullableAuditEventTarget { + return &NullableAuditEventTarget{value: val, isSet: true} +} + +func (v NullableAuditEventTarget) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuditEventTarget) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_authentication.go b/model_authentication.go new file mode 100644 index 0000000..8742ee7 --- /dev/null +++ b/model_authentication.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Authentication type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Authentication{} + +// Authentication struct for Authentication +type Authentication struct { + Credentials *AuthenticationCredentials `json:"credentials,omitempty"` + // Type of the authentication mechanisms. Valid value is basic. + Type *string `json:"type,omitempty"` +} + +// NewAuthentication instantiates a new Authentication object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthentication() *Authentication { + this := Authentication{} + return &this +} + +// NewAuthenticationWithDefaults instantiates a new Authentication object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationWithDefaults() *Authentication { + this := Authentication{} + return &this +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *Authentication) GetCredentials() AuthenticationCredentials { + if o == nil || IsNil(o.Credentials) { + var ret AuthenticationCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Authentication) GetCredentialsOk() (*AuthenticationCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *Authentication) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given AuthenticationCredentials and assigns it to the Credentials field. +func (o *Authentication) SetCredentials(v AuthenticationCredentials) { + o.Credentials = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Authentication) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Authentication) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Authentication) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Authentication) SetType(v string) { + o.Type = &v +} + +func (o Authentication) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Authentication) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableAuthentication struct { + value *Authentication + isSet bool +} + +func (v NullableAuthentication) Get() *Authentication { + return v.value +} + +func (v *NullableAuthentication) Set(val *Authentication) { + v.value = val + v.isSet = true +} + +func (v NullableAuthentication) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthentication) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthentication(val *Authentication) *NullableAuthentication { + return &NullableAuthentication{value: val, isSet: true} +} + +func (v NullableAuthentication) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthentication) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_authentication_credentials.go b/model_authentication_credentials.go new file mode 100644 index 0000000..c7e0b43 --- /dev/null +++ b/model_authentication_credentials.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the AuthenticationCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthenticationCredentials{} + +// AuthenticationCredentials struct for AuthenticationCredentials +type AuthenticationCredentials struct { + // The password to authenticate against the service broker. + Password *string `json:"password,omitempty"` + // The username to authenticate against the service broker. + Username *string `json:"username,omitempty"` +} + +// NewAuthenticationCredentials instantiates a new AuthenticationCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthenticationCredentials() *AuthenticationCredentials { + this := AuthenticationCredentials{} + return &this +} + +// NewAuthenticationCredentialsWithDefaults instantiates a new AuthenticationCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthenticationCredentialsWithDefaults() *AuthenticationCredentials { + this := AuthenticationCredentials{} + return &this +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *AuthenticationCredentials) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationCredentials) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *AuthenticationCredentials) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *AuthenticationCredentials) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *AuthenticationCredentials) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthenticationCredentials) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *AuthenticationCredentials) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *AuthenticationCredentials) SetUsername(v string) { + o.Username = &v +} + +func (o AuthenticationCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthenticationCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableAuthenticationCredentials struct { + value *AuthenticationCredentials + isSet bool +} + +func (v NullableAuthenticationCredentials) Get() *AuthenticationCredentials { + return v.value +} + +func (v *NullableAuthenticationCredentials) Set(val *AuthenticationCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationCredentials(val *AuthenticationCredentials) *NullableAuthenticationCredentials { + return &NullableAuthenticationCredentials{value: val, isSet: true} +} + +func (v NullableAuthenticationCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_broker_catalog.go b/model_broker_catalog.go new file mode 100644 index 0000000..c9c6673 --- /dev/null +++ b/model_broker_catalog.go @@ -0,0 +1,244 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the BrokerCatalog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BrokerCatalog{} + +// BrokerCatalog struct for BrokerCatalog +type BrokerCatalog struct { + Features *BrokerCatalogFeatures `json:"features,omitempty"` + Id *string `json:"id,omitempty"` + MaximumPollingDuration NullableInt32 `json:"maximum_polling_duration,omitempty"` + Metadata *BrokerCatalogMetadata `json:"metadata,omitempty"` +} + +// NewBrokerCatalog instantiates a new BrokerCatalog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBrokerCatalog() *BrokerCatalog { + this := BrokerCatalog{} + return &this +} + +// NewBrokerCatalogWithDefaults instantiates a new BrokerCatalog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBrokerCatalogWithDefaults() *BrokerCatalog { + this := BrokerCatalog{} + return &this +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *BrokerCatalog) GetFeatures() BrokerCatalogFeatures { + if o == nil || IsNil(o.Features) { + var ret BrokerCatalogFeatures + return ret + } + return *o.Features +} + +// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalog) GetFeaturesOk() (*BrokerCatalogFeatures, bool) { + if o == nil || IsNil(o.Features) { + return nil, false + } + return o.Features, true +} + +// HasFeatures returns a boolean if a field has been set. +func (o *BrokerCatalog) HasFeatures() bool { + if o != nil && !IsNil(o.Features) { + return true + } + + return false +} + +// SetFeatures gets a reference to the given BrokerCatalogFeatures and assigns it to the Features field. +func (o *BrokerCatalog) SetFeatures(v BrokerCatalogFeatures) { + o.Features = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *BrokerCatalog) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalog) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *BrokerCatalog) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *BrokerCatalog) SetId(v string) { + o.Id = &v +} + +// GetMaximumPollingDuration returns the MaximumPollingDuration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BrokerCatalog) GetMaximumPollingDuration() int32 { + if o == nil || IsNil(o.MaximumPollingDuration.Get()) { + var ret int32 + return ret + } + return *o.MaximumPollingDuration.Get() +} + +// GetMaximumPollingDurationOk returns a tuple with the MaximumPollingDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BrokerCatalog) GetMaximumPollingDurationOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumPollingDuration.Get(), o.MaximumPollingDuration.IsSet() +} + +// HasMaximumPollingDuration returns a boolean if a field has been set. +func (o *BrokerCatalog) HasMaximumPollingDuration() bool { + if o != nil && o.MaximumPollingDuration.IsSet() { + return true + } + + return false +} + +// SetMaximumPollingDuration gets a reference to the given NullableInt32 and assigns it to the MaximumPollingDuration field. +func (o *BrokerCatalog) SetMaximumPollingDuration(v int32) { + o.MaximumPollingDuration.Set(&v) +} +// SetMaximumPollingDurationNil sets the value for MaximumPollingDuration to be an explicit nil +func (o *BrokerCatalog) SetMaximumPollingDurationNil() { + o.MaximumPollingDuration.Set(nil) +} + +// UnsetMaximumPollingDuration ensures that no value is present for MaximumPollingDuration, not even an explicit nil +func (o *BrokerCatalog) UnsetMaximumPollingDuration() { + o.MaximumPollingDuration.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *BrokerCatalog) GetMetadata() BrokerCatalogMetadata { + if o == nil || IsNil(o.Metadata) { + var ret BrokerCatalogMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalog) GetMetadataOk() (*BrokerCatalogMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *BrokerCatalog) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given BrokerCatalogMetadata and assigns it to the Metadata field. +func (o *BrokerCatalog) SetMetadata(v BrokerCatalogMetadata) { + o.Metadata = &v +} + +func (o BrokerCatalog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BrokerCatalog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Features) { + toSerialize["features"] = o.Features + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if o.MaximumPollingDuration.IsSet() { + toSerialize["maximum_polling_duration"] = o.MaximumPollingDuration.Get() + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableBrokerCatalog struct { + value *BrokerCatalog + isSet bool +} + +func (v NullableBrokerCatalog) Get() *BrokerCatalog { + return v.value +} + +func (v *NullableBrokerCatalog) Set(val *BrokerCatalog) { + v.value = val + v.isSet = true +} + +func (v NullableBrokerCatalog) IsSet() bool { + return v.isSet +} + +func (v *NullableBrokerCatalog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBrokerCatalog(val *BrokerCatalog) *NullableBrokerCatalog { + return &NullableBrokerCatalog{value: val, isSet: true} +} + +func (v NullableBrokerCatalog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBrokerCatalog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_broker_catalog_features.go b/model_broker_catalog_features.go new file mode 100644 index 0000000..8a5a5c5 --- /dev/null +++ b/model_broker_catalog_features.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the BrokerCatalogFeatures type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BrokerCatalogFeatures{} + +// BrokerCatalogFeatures struct for BrokerCatalogFeatures +type BrokerCatalogFeatures struct { + AllowContextUpdates *bool `json:"allow_context_updates,omitempty"` + Bindable *bool `json:"bindable,omitempty"` + BindingsRetrievable *bool `json:"bindings_retrievable,omitempty"` + InstancesRetrievable *bool `json:"instances_retrievable,omitempty"` + PlanUpdateable *bool `json:"plan_updateable,omitempty"` +} + +// NewBrokerCatalogFeatures instantiates a new BrokerCatalogFeatures object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBrokerCatalogFeatures() *BrokerCatalogFeatures { + this := BrokerCatalogFeatures{} + return &this +} + +// NewBrokerCatalogFeaturesWithDefaults instantiates a new BrokerCatalogFeatures object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBrokerCatalogFeaturesWithDefaults() *BrokerCatalogFeatures { + this := BrokerCatalogFeatures{} + return &this +} + +// GetAllowContextUpdates returns the AllowContextUpdates field value if set, zero value otherwise. +func (o *BrokerCatalogFeatures) GetAllowContextUpdates() bool { + if o == nil || IsNil(o.AllowContextUpdates) { + var ret bool + return ret + } + return *o.AllowContextUpdates +} + +// GetAllowContextUpdatesOk returns a tuple with the AllowContextUpdates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogFeatures) GetAllowContextUpdatesOk() (*bool, bool) { + if o == nil || IsNil(o.AllowContextUpdates) { + return nil, false + } + return o.AllowContextUpdates, true +} + +// HasAllowContextUpdates returns a boolean if a field has been set. +func (o *BrokerCatalogFeatures) HasAllowContextUpdates() bool { + if o != nil && !IsNil(o.AllowContextUpdates) { + return true + } + + return false +} + +// SetAllowContextUpdates gets a reference to the given bool and assigns it to the AllowContextUpdates field. +func (o *BrokerCatalogFeatures) SetAllowContextUpdates(v bool) { + o.AllowContextUpdates = &v +} + +// GetBindable returns the Bindable field value if set, zero value otherwise. +func (o *BrokerCatalogFeatures) GetBindable() bool { + if o == nil || IsNil(o.Bindable) { + var ret bool + return ret + } + return *o.Bindable +} + +// GetBindableOk returns a tuple with the Bindable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogFeatures) GetBindableOk() (*bool, bool) { + if o == nil || IsNil(o.Bindable) { + return nil, false + } + return o.Bindable, true +} + +// HasBindable returns a boolean if a field has been set. +func (o *BrokerCatalogFeatures) HasBindable() bool { + if o != nil && !IsNil(o.Bindable) { + return true + } + + return false +} + +// SetBindable gets a reference to the given bool and assigns it to the Bindable field. +func (o *BrokerCatalogFeatures) SetBindable(v bool) { + o.Bindable = &v +} + +// GetBindingsRetrievable returns the BindingsRetrievable field value if set, zero value otherwise. +func (o *BrokerCatalogFeatures) GetBindingsRetrievable() bool { + if o == nil || IsNil(o.BindingsRetrievable) { + var ret bool + return ret + } + return *o.BindingsRetrievable +} + +// GetBindingsRetrievableOk returns a tuple with the BindingsRetrievable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogFeatures) GetBindingsRetrievableOk() (*bool, bool) { + if o == nil || IsNil(o.BindingsRetrievable) { + return nil, false + } + return o.BindingsRetrievable, true +} + +// HasBindingsRetrievable returns a boolean if a field has been set. +func (o *BrokerCatalogFeatures) HasBindingsRetrievable() bool { + if o != nil && !IsNil(o.BindingsRetrievable) { + return true + } + + return false +} + +// SetBindingsRetrievable gets a reference to the given bool and assigns it to the BindingsRetrievable field. +func (o *BrokerCatalogFeatures) SetBindingsRetrievable(v bool) { + o.BindingsRetrievable = &v +} + +// GetInstancesRetrievable returns the InstancesRetrievable field value if set, zero value otherwise. +func (o *BrokerCatalogFeatures) GetInstancesRetrievable() bool { + if o == nil || IsNil(o.InstancesRetrievable) { + var ret bool + return ret + } + return *o.InstancesRetrievable +} + +// GetInstancesRetrievableOk returns a tuple with the InstancesRetrievable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogFeatures) GetInstancesRetrievableOk() (*bool, bool) { + if o == nil || IsNil(o.InstancesRetrievable) { + return nil, false + } + return o.InstancesRetrievable, true +} + +// HasInstancesRetrievable returns a boolean if a field has been set. +func (o *BrokerCatalogFeatures) HasInstancesRetrievable() bool { + if o != nil && !IsNil(o.InstancesRetrievable) { + return true + } + + return false +} + +// SetInstancesRetrievable gets a reference to the given bool and assigns it to the InstancesRetrievable field. +func (o *BrokerCatalogFeatures) SetInstancesRetrievable(v bool) { + o.InstancesRetrievable = &v +} + +// GetPlanUpdateable returns the PlanUpdateable field value if set, zero value otherwise. +func (o *BrokerCatalogFeatures) GetPlanUpdateable() bool { + if o == nil || IsNil(o.PlanUpdateable) { + var ret bool + return ret + } + return *o.PlanUpdateable +} + +// GetPlanUpdateableOk returns a tuple with the PlanUpdateable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogFeatures) GetPlanUpdateableOk() (*bool, bool) { + if o == nil || IsNil(o.PlanUpdateable) { + return nil, false + } + return o.PlanUpdateable, true +} + +// HasPlanUpdateable returns a boolean if a field has been set. +func (o *BrokerCatalogFeatures) HasPlanUpdateable() bool { + if o != nil && !IsNil(o.PlanUpdateable) { + return true + } + + return false +} + +// SetPlanUpdateable gets a reference to the given bool and assigns it to the PlanUpdateable field. +func (o *BrokerCatalogFeatures) SetPlanUpdateable(v bool) { + o.PlanUpdateable = &v +} + +func (o BrokerCatalogFeatures) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BrokerCatalogFeatures) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowContextUpdates) { + toSerialize["allow_context_updates"] = o.AllowContextUpdates + } + if !IsNil(o.Bindable) { + toSerialize["bindable"] = o.Bindable + } + if !IsNil(o.BindingsRetrievable) { + toSerialize["bindings_retrievable"] = o.BindingsRetrievable + } + if !IsNil(o.InstancesRetrievable) { + toSerialize["instances_retrievable"] = o.InstancesRetrievable + } + if !IsNil(o.PlanUpdateable) { + toSerialize["plan_updateable"] = o.PlanUpdateable + } + return toSerialize, nil +} + +type NullableBrokerCatalogFeatures struct { + value *BrokerCatalogFeatures + isSet bool +} + +func (v NullableBrokerCatalogFeatures) Get() *BrokerCatalogFeatures { + return v.value +} + +func (v *NullableBrokerCatalogFeatures) Set(val *BrokerCatalogFeatures) { + v.value = val + v.isSet = true +} + +func (v NullableBrokerCatalogFeatures) IsSet() bool { + return v.isSet +} + +func (v *NullableBrokerCatalogFeatures) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBrokerCatalogFeatures(val *BrokerCatalogFeatures) *NullableBrokerCatalogFeatures { + return &NullableBrokerCatalogFeatures{value: val, isSet: true} +} + +func (v NullableBrokerCatalogFeatures) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBrokerCatalogFeatures) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_broker_catalog_metadata.go b/model_broker_catalog_metadata.go new file mode 100644 index 0000000..03592b2 --- /dev/null +++ b/model_broker_catalog_metadata.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the BrokerCatalogMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BrokerCatalogMetadata{} + +// BrokerCatalogMetadata struct for BrokerCatalogMetadata +type BrokerCatalogMetadata struct { + Shareable *bool `json:"shareable,omitempty"` +} + +// NewBrokerCatalogMetadata instantiates a new BrokerCatalogMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBrokerCatalogMetadata() *BrokerCatalogMetadata { + this := BrokerCatalogMetadata{} + return &this +} + +// NewBrokerCatalogMetadataWithDefaults instantiates a new BrokerCatalogMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBrokerCatalogMetadataWithDefaults() *BrokerCatalogMetadata { + this := BrokerCatalogMetadata{} + return &this +} + +// GetShareable returns the Shareable field value if set, zero value otherwise. +func (o *BrokerCatalogMetadata) GetShareable() bool { + if o == nil || IsNil(o.Shareable) { + var ret bool + return ret + } + return *o.Shareable +} + +// GetShareableOk returns a tuple with the Shareable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BrokerCatalogMetadata) GetShareableOk() (*bool, bool) { + if o == nil || IsNil(o.Shareable) { + return nil, false + } + return o.Shareable, true +} + +// HasShareable returns a boolean if a field has been set. +func (o *BrokerCatalogMetadata) HasShareable() bool { + if o != nil && !IsNil(o.Shareable) { + return true + } + + return false +} + +// SetShareable gets a reference to the given bool and assigns it to the Shareable field. +func (o *BrokerCatalogMetadata) SetShareable(v bool) { + o.Shareable = &v +} + +func (o BrokerCatalogMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BrokerCatalogMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Shareable) { + toSerialize["shareable"] = o.Shareable + } + return toSerialize, nil +} + +type NullableBrokerCatalogMetadata struct { + value *BrokerCatalogMetadata + isSet bool +} + +func (v NullableBrokerCatalogMetadata) Get() *BrokerCatalogMetadata { + return v.value +} + +func (v *NullableBrokerCatalogMetadata) Set(val *BrokerCatalogMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableBrokerCatalogMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableBrokerCatalogMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBrokerCatalogMetadata(val *BrokerCatalogMetadata) *NullableBrokerCatalogMetadata { + return &NullableBrokerCatalogMetadata{value: val, isSet: true} +} + +func (v NullableBrokerCatalogMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBrokerCatalogMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_buildpack.go b/model_buildpack.go new file mode 100644 index 0000000..dd22530 --- /dev/null +++ b/model_buildpack.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Buildpack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Buildpack{} + +// Buildpack struct for Buildpack +type Buildpack struct { + BuildpackName *string `json:"buildpack_name,omitempty"` + DetectOutput *string `json:"detect_output,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewBuildpack instantiates a new Buildpack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuildpack() *Buildpack { + this := Buildpack{} + return &this +} + +// NewBuildpackWithDefaults instantiates a new Buildpack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuildpackWithDefaults() *Buildpack { + this := Buildpack{} + return &this +} + +// GetBuildpackName returns the BuildpackName field value if set, zero value otherwise. +func (o *Buildpack) GetBuildpackName() string { + if o == nil || IsNil(o.BuildpackName) { + var ret string + return ret + } + return *o.BuildpackName +} + +// GetBuildpackNameOk returns a tuple with the BuildpackName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Buildpack) GetBuildpackNameOk() (*string, bool) { + if o == nil || IsNil(o.BuildpackName) { + return nil, false + } + return o.BuildpackName, true +} + +// HasBuildpackName returns a boolean if a field has been set. +func (o *Buildpack) HasBuildpackName() bool { + if o != nil && !IsNil(o.BuildpackName) { + return true + } + + return false +} + +// SetBuildpackName gets a reference to the given string and assigns it to the BuildpackName field. +func (o *Buildpack) SetBuildpackName(v string) { + o.BuildpackName = &v +} + +// GetDetectOutput returns the DetectOutput field value if set, zero value otherwise. +func (o *Buildpack) GetDetectOutput() string { + if o == nil || IsNil(o.DetectOutput) { + var ret string + return ret + } + return *o.DetectOutput +} + +// GetDetectOutputOk returns a tuple with the DetectOutput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Buildpack) GetDetectOutputOk() (*string, bool) { + if o == nil || IsNil(o.DetectOutput) { + return nil, false + } + return o.DetectOutput, true +} + +// HasDetectOutput returns a boolean if a field has been set. +func (o *Buildpack) HasDetectOutput() bool { + if o != nil && !IsNil(o.DetectOutput) { + return true + } + + return false +} + +// SetDetectOutput gets a reference to the given string and assigns it to the DetectOutput field. +func (o *Buildpack) SetDetectOutput(v string) { + o.DetectOutput = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Buildpack) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Buildpack) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Buildpack) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Buildpack) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *Buildpack) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Buildpack) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *Buildpack) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *Buildpack) SetVersion(v string) { + o.Version = &v +} + +func (o Buildpack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Buildpack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildpackName) { + toSerialize["buildpack_name"] = o.BuildpackName + } + if !IsNil(o.DetectOutput) { + toSerialize["detect_output"] = o.DetectOutput + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableBuildpack struct { + value *Buildpack + isSet bool +} + +func (v NullableBuildpack) Get() *Buildpack { + return v.value +} + +func (v *NullableBuildpack) Set(val *Buildpack) { + v.value = val + v.isSet = true +} + +func (v NullableBuildpack) IsSet() bool { + return v.isSet +} + +func (v *NullableBuildpack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuildpack(val *Buildpack) *NullableBuildpack { + return &NullableBuildpack{value: val, isSet: true} +} + +func (v NullableBuildpack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuildpack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cost.go b/model_cost.go new file mode 100644 index 0000000..9f68fc4 --- /dev/null +++ b/model_cost.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Cost type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Cost{} + +// Cost struct for Cost +type Cost struct { + Amount *float32 `json:"amount,omitempty"` + Currency *string `json:"currency,omitempty"` + Unit *string `json:"unit,omitempty"` +} + +// NewCost instantiates a new Cost object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCost() *Cost { + this := Cost{} + return &this +} + +// NewCostWithDefaults instantiates a new Cost object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCostWithDefaults() *Cost { + this := Cost{} + return &this +} + +// GetAmount returns the Amount field value if set, zero value otherwise. +func (o *Cost) GetAmount() float32 { + if o == nil || IsNil(o.Amount) { + var ret float32 + return ret + } + return *o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cost) GetAmountOk() (*float32, bool) { + if o == nil || IsNil(o.Amount) { + return nil, false + } + return o.Amount, true +} + +// HasAmount returns a boolean if a field has been set. +func (o *Cost) HasAmount() bool { + if o != nil && !IsNil(o.Amount) { + return true + } + + return false +} + +// SetAmount gets a reference to the given float32 and assigns it to the Amount field. +func (o *Cost) SetAmount(v float32) { + o.Amount = &v +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *Cost) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cost) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *Cost) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *Cost) SetCurrency(v string) { + o.Currency = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *Cost) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cost) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *Cost) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *Cost) SetUnit(v string) { + o.Unit = &v +} + +func (o Cost) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Cost) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + return toSerialize, nil +} + +type NullableCost struct { + value *Cost + isSet bool +} + +func (v NullableCost) Get() *Cost { + return v.value +} + +func (v *NullableCost) Set(val *Cost) { + v.value = val + v.isSet = true +} + +func (v NullableCost) IsSet() bool { + return v.isSet +} + +func (v *NullableCost) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCost(val *Cost) *NullableCost { + return &NullableCost{value: val, isSet: true} +} + +func (v NullableCost) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCost) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request.go b/model_create_organization_quota_request.go new file mode 100644 index 0000000..643b9b3 --- /dev/null +++ b/model_create_organization_quota_request.go @@ -0,0 +1,307 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequest{} + +// CreateOrganizationQuotaRequest struct for CreateOrganizationQuotaRequest +type CreateOrganizationQuotaRequest struct { + Apps *CreateOrganizationQuotaRequestApps `json:"apps,omitempty"` + Domains *CreateOrganizationQuotaRequestDomains `json:"domains,omitempty"` + // Name of the quota + Name *string `json:"name,omitempty"` + Relationships *CreateOrganizationQuotaRequestRelationships `json:"relationships,omitempty"` + Routes *CreateOrganizationQuotaRequestRoutes `json:"routes,omitempty"` + Services *CreateOrganizationQuotaRequestServices `json:"services,omitempty"` +} + +// NewCreateOrganizationQuotaRequest instantiates a new CreateOrganizationQuotaRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequest() *CreateOrganizationQuotaRequest { + this := CreateOrganizationQuotaRequest{} + return &this +} + +// NewCreateOrganizationQuotaRequestWithDefaults instantiates a new CreateOrganizationQuotaRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestWithDefaults() *CreateOrganizationQuotaRequest { + this := CreateOrganizationQuotaRequest{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetApps() CreateOrganizationQuotaRequestApps { + if o == nil || IsNil(o.Apps) { + var ret CreateOrganizationQuotaRequestApps + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetAppsOk() (*CreateOrganizationQuotaRequestApps, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given CreateOrganizationQuotaRequestApps and assigns it to the Apps field. +func (o *CreateOrganizationQuotaRequest) SetApps(v CreateOrganizationQuotaRequestApps) { + o.Apps = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetDomains() CreateOrganizationQuotaRequestDomains { + if o == nil || IsNil(o.Domains) { + var ret CreateOrganizationQuotaRequestDomains + return ret + } + return *o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetDomainsOk() (*CreateOrganizationQuotaRequestDomains, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given CreateOrganizationQuotaRequestDomains and assigns it to the Domains field. +func (o *CreateOrganizationQuotaRequest) SetDomains(v CreateOrganizationQuotaRequestDomains) { + o.Domains = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateOrganizationQuotaRequest) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetRelationships() CreateOrganizationQuotaRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret CreateOrganizationQuotaRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetRelationshipsOk() (*CreateOrganizationQuotaRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given CreateOrganizationQuotaRequestRelationships and assigns it to the Relationships field. +func (o *CreateOrganizationQuotaRequest) SetRelationships(v CreateOrganizationQuotaRequestRelationships) { + o.Relationships = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetRoutes() CreateOrganizationQuotaRequestRoutes { + if o == nil || IsNil(o.Routes) { + var ret CreateOrganizationQuotaRequestRoutes + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetRoutesOk() (*CreateOrganizationQuotaRequestRoutes, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given CreateOrganizationQuotaRequestRoutes and assigns it to the Routes field. +func (o *CreateOrganizationQuotaRequest) SetRoutes(v CreateOrganizationQuotaRequestRoutes) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequest) GetServices() CreateOrganizationQuotaRequestServices { + if o == nil || IsNil(o.Services) { + var ret CreateOrganizationQuotaRequestServices + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequest) GetServicesOk() (*CreateOrganizationQuotaRequestServices, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequest) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given CreateOrganizationQuotaRequestServices and assigns it to the Services field. +func (o *CreateOrganizationQuotaRequest) SetServices(v CreateOrganizationQuotaRequestServices) { + o.Services = &v +} + +func (o CreateOrganizationQuotaRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequest struct { + value *CreateOrganizationQuotaRequest + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequest) Get() *CreateOrganizationQuotaRequest { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequest) Set(val *CreateOrganizationQuotaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequest(val *CreateOrganizationQuotaRequest) *NullableCreateOrganizationQuotaRequest { + return &NullableCreateOrganizationQuotaRequest{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_apps.go b/model_create_organization_quota_request_apps.go new file mode 100644 index 0000000..1c5548d --- /dev/null +++ b/model_create_organization_quota_request_apps.go @@ -0,0 +1,325 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestApps type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestApps{} + +// CreateOrganizationQuotaRequestApps struct for CreateOrganizationQuotaRequestApps +type CreateOrganizationQuotaRequestApps struct { + // Total log rate limit allowed for all the started processes and running tasks in an organization + LogRateLimitInBytesPerSecond NullableInt32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + // Maximum number of running tasks in an organization + PerAppTasks NullableInt32 `json:"per_app_tasks,omitempty"` + // Maximum memory for a single process or task + PerProcessMemoryInMb NullableInt32 `json:"per_process_memory_in_mb,omitempty"` + // Total instances of all the started processes allowed in an organization + TotalInstances NullableInt32 `json:"total_instances,omitempty"` + // Total memory allowed for all the started processes and running tasks in an organization + TotalMemoryInMb NullableInt32 `json:"total_memory_in_mb,omitempty"` +} + +// NewCreateOrganizationQuotaRequestApps instantiates a new CreateOrganizationQuotaRequestApps object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestApps() *CreateOrganizationQuotaRequestApps { + this := CreateOrganizationQuotaRequestApps{} + return &this +} + +// NewCreateOrganizationQuotaRequestAppsWithDefaults instantiates a new CreateOrganizationQuotaRequestApps object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestAppsWithDefaults() *CreateOrganizationQuotaRequestApps { + this := CreateOrganizationQuotaRequestApps{} + return &this +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestApps) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond.Get()) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond.Get() +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestApps) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LogRateLimitInBytesPerSecond.Get(), o.LogRateLimitInBytesPerSecond.IsSet() +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestApps) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && o.LogRateLimitInBytesPerSecond.IsSet() { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given NullableInt32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *CreateOrganizationQuotaRequestApps) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond.Set(&v) +} +// SetLogRateLimitInBytesPerSecondNil sets the value for LogRateLimitInBytesPerSecond to be an explicit nil +func (o *CreateOrganizationQuotaRequestApps) SetLogRateLimitInBytesPerSecondNil() { + o.LogRateLimitInBytesPerSecond.Set(nil) +} + +// UnsetLogRateLimitInBytesPerSecond ensures that no value is present for LogRateLimitInBytesPerSecond, not even an explicit nil +func (o *CreateOrganizationQuotaRequestApps) UnsetLogRateLimitInBytesPerSecond() { + o.LogRateLimitInBytesPerSecond.Unset() +} + +// GetPerAppTasks returns the PerAppTasks field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestApps) GetPerAppTasks() int32 { + if o == nil || IsNil(o.PerAppTasks.Get()) { + var ret int32 + return ret + } + return *o.PerAppTasks.Get() +} + +// GetPerAppTasksOk returns a tuple with the PerAppTasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestApps) GetPerAppTasksOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerAppTasks.Get(), o.PerAppTasks.IsSet() +} + +// HasPerAppTasks returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestApps) HasPerAppTasks() bool { + if o != nil && o.PerAppTasks.IsSet() { + return true + } + + return false +} + +// SetPerAppTasks gets a reference to the given NullableInt32 and assigns it to the PerAppTasks field. +func (o *CreateOrganizationQuotaRequestApps) SetPerAppTasks(v int32) { + o.PerAppTasks.Set(&v) +} +// SetPerAppTasksNil sets the value for PerAppTasks to be an explicit nil +func (o *CreateOrganizationQuotaRequestApps) SetPerAppTasksNil() { + o.PerAppTasks.Set(nil) +} + +// UnsetPerAppTasks ensures that no value is present for PerAppTasks, not even an explicit nil +func (o *CreateOrganizationQuotaRequestApps) UnsetPerAppTasks() { + o.PerAppTasks.Unset() +} + +// GetPerProcessMemoryInMb returns the PerProcessMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestApps) GetPerProcessMemoryInMb() int32 { + if o == nil || IsNil(o.PerProcessMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.PerProcessMemoryInMb.Get() +} + +// GetPerProcessMemoryInMbOk returns a tuple with the PerProcessMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestApps) GetPerProcessMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PerProcessMemoryInMb.Get(), o.PerProcessMemoryInMb.IsSet() +} + +// HasPerProcessMemoryInMb returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestApps) HasPerProcessMemoryInMb() bool { + if o != nil && o.PerProcessMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetPerProcessMemoryInMb gets a reference to the given NullableInt32 and assigns it to the PerProcessMemoryInMb field. +func (o *CreateOrganizationQuotaRequestApps) SetPerProcessMemoryInMb(v int32) { + o.PerProcessMemoryInMb.Set(&v) +} +// SetPerProcessMemoryInMbNil sets the value for PerProcessMemoryInMb to be an explicit nil +func (o *CreateOrganizationQuotaRequestApps) SetPerProcessMemoryInMbNil() { + o.PerProcessMemoryInMb.Set(nil) +} + +// UnsetPerProcessMemoryInMb ensures that no value is present for PerProcessMemoryInMb, not even an explicit nil +func (o *CreateOrganizationQuotaRequestApps) UnsetPerProcessMemoryInMb() { + o.PerProcessMemoryInMb.Unset() +} + +// GetTotalInstances returns the TotalInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestApps) GetTotalInstances() int32 { + if o == nil || IsNil(o.TotalInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalInstances.Get() +} + +// GetTotalInstancesOk returns a tuple with the TotalInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestApps) GetTotalInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalInstances.Get(), o.TotalInstances.IsSet() +} + +// HasTotalInstances returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestApps) HasTotalInstances() bool { + if o != nil && o.TotalInstances.IsSet() { + return true + } + + return false +} + +// SetTotalInstances gets a reference to the given NullableInt32 and assigns it to the TotalInstances field. +func (o *CreateOrganizationQuotaRequestApps) SetTotalInstances(v int32) { + o.TotalInstances.Set(&v) +} +// SetTotalInstancesNil sets the value for TotalInstances to be an explicit nil +func (o *CreateOrganizationQuotaRequestApps) SetTotalInstancesNil() { + o.TotalInstances.Set(nil) +} + +// UnsetTotalInstances ensures that no value is present for TotalInstances, not even an explicit nil +func (o *CreateOrganizationQuotaRequestApps) UnsetTotalInstances() { + o.TotalInstances.Unset() +} + +// GetTotalMemoryInMb returns the TotalMemoryInMb field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestApps) GetTotalMemoryInMb() int32 { + if o == nil || IsNil(o.TotalMemoryInMb.Get()) { + var ret int32 + return ret + } + return *o.TotalMemoryInMb.Get() +} + +// GetTotalMemoryInMbOk returns a tuple with the TotalMemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestApps) GetTotalMemoryInMbOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalMemoryInMb.Get(), o.TotalMemoryInMb.IsSet() +} + +// HasTotalMemoryInMb returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestApps) HasTotalMemoryInMb() bool { + if o != nil && o.TotalMemoryInMb.IsSet() { + return true + } + + return false +} + +// SetTotalMemoryInMb gets a reference to the given NullableInt32 and assigns it to the TotalMemoryInMb field. +func (o *CreateOrganizationQuotaRequestApps) SetTotalMemoryInMb(v int32) { + o.TotalMemoryInMb.Set(&v) +} +// SetTotalMemoryInMbNil sets the value for TotalMemoryInMb to be an explicit nil +func (o *CreateOrganizationQuotaRequestApps) SetTotalMemoryInMbNil() { + o.TotalMemoryInMb.Set(nil) +} + +// UnsetTotalMemoryInMb ensures that no value is present for TotalMemoryInMb, not even an explicit nil +func (o *CreateOrganizationQuotaRequestApps) UnsetTotalMemoryInMb() { + o.TotalMemoryInMb.Unset() +} + +func (o CreateOrganizationQuotaRequestApps) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestApps) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LogRateLimitInBytesPerSecond.IsSet() { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond.Get() + } + if o.PerAppTasks.IsSet() { + toSerialize["per_app_tasks"] = o.PerAppTasks.Get() + } + if o.PerProcessMemoryInMb.IsSet() { + toSerialize["per_process_memory_in_mb"] = o.PerProcessMemoryInMb.Get() + } + if o.TotalInstances.IsSet() { + toSerialize["total_instances"] = o.TotalInstances.Get() + } + if o.TotalMemoryInMb.IsSet() { + toSerialize["total_memory_in_mb"] = o.TotalMemoryInMb.Get() + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestApps struct { + value *CreateOrganizationQuotaRequestApps + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestApps) Get() *CreateOrganizationQuotaRequestApps { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestApps) Set(val *CreateOrganizationQuotaRequestApps) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestApps) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestApps) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestApps(val *CreateOrganizationQuotaRequestApps) *NullableCreateOrganizationQuotaRequestApps { + return &NullableCreateOrganizationQuotaRequestApps{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestApps) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestApps) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_domains.go b/model_create_organization_quota_request_domains.go new file mode 100644 index 0000000..a716cc4 --- /dev/null +++ b/model_create_organization_quota_request_domains.go @@ -0,0 +1,137 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestDomains type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestDomains{} + +// CreateOrganizationQuotaRequestDomains struct for CreateOrganizationQuotaRequestDomains +type CreateOrganizationQuotaRequestDomains struct { + // Total number of domains that can be scoped to an organization + TotalDomains NullableInt32 `json:"total_domains,omitempty"` +} + +// NewCreateOrganizationQuotaRequestDomains instantiates a new CreateOrganizationQuotaRequestDomains object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestDomains() *CreateOrganizationQuotaRequestDomains { + this := CreateOrganizationQuotaRequestDomains{} + return &this +} + +// NewCreateOrganizationQuotaRequestDomainsWithDefaults instantiates a new CreateOrganizationQuotaRequestDomains object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestDomainsWithDefaults() *CreateOrganizationQuotaRequestDomains { + this := CreateOrganizationQuotaRequestDomains{} + return &this +} + +// GetTotalDomains returns the TotalDomains field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestDomains) GetTotalDomains() int32 { + if o == nil || IsNil(o.TotalDomains.Get()) { + var ret int32 + return ret + } + return *o.TotalDomains.Get() +} + +// GetTotalDomainsOk returns a tuple with the TotalDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestDomains) GetTotalDomainsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalDomains.Get(), o.TotalDomains.IsSet() +} + +// HasTotalDomains returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestDomains) HasTotalDomains() bool { + if o != nil && o.TotalDomains.IsSet() { + return true + } + + return false +} + +// SetTotalDomains gets a reference to the given NullableInt32 and assigns it to the TotalDomains field. +func (o *CreateOrganizationQuotaRequestDomains) SetTotalDomains(v int32) { + o.TotalDomains.Set(&v) +} +// SetTotalDomainsNil sets the value for TotalDomains to be an explicit nil +func (o *CreateOrganizationQuotaRequestDomains) SetTotalDomainsNil() { + o.TotalDomains.Set(nil) +} + +// UnsetTotalDomains ensures that no value is present for TotalDomains, not even an explicit nil +func (o *CreateOrganizationQuotaRequestDomains) UnsetTotalDomains() { + o.TotalDomains.Unset() +} + +func (o CreateOrganizationQuotaRequestDomains) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestDomains) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TotalDomains.IsSet() { + toSerialize["total_domains"] = o.TotalDomains.Get() + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestDomains struct { + value *CreateOrganizationQuotaRequestDomains + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestDomains) Get() *CreateOrganizationQuotaRequestDomains { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestDomains) Set(val *CreateOrganizationQuotaRequestDomains) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestDomains) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestDomains) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestDomains(val *CreateOrganizationQuotaRequestDomains) *NullableCreateOrganizationQuotaRequestDomains { + return &NullableCreateOrganizationQuotaRequestDomains{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestDomains) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestDomains) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_relationships.go b/model_create_organization_quota_request_relationships.go new file mode 100644 index 0000000..710205e --- /dev/null +++ b/model_create_organization_quota_request_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestRelationships{} + +// CreateOrganizationQuotaRequestRelationships struct for CreateOrganizationQuotaRequestRelationships +type CreateOrganizationQuotaRequestRelationships struct { + Organizations []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner `json:"organizations,omitempty"` +} + +// NewCreateOrganizationQuotaRequestRelationships instantiates a new CreateOrganizationQuotaRequestRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestRelationships() *CreateOrganizationQuotaRequestRelationships { + this := CreateOrganizationQuotaRequestRelationships{} + return &this +} + +// NewCreateOrganizationQuotaRequestRelationshipsWithDefaults instantiates a new CreateOrganizationQuotaRequestRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestRelationshipsWithDefaults() *CreateOrganizationQuotaRequestRelationships { + this := CreateOrganizationQuotaRequestRelationships{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequestRelationships) GetOrganizations() []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + if o == nil || IsNil(o.Organizations) { + var ret []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner + return ret + } + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequestRelationships) GetOrganizationsOk() ([]CreateOrganizationQuotaRequestRelationshipsOrganizationsInner, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestRelationships) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner and assigns it to the Organizations field. +func (o *CreateOrganizationQuotaRequestRelationships) SetOrganizations(v []CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) { + o.Organizations = v +} + +func (o CreateOrganizationQuotaRequestRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestRelationships struct { + value *CreateOrganizationQuotaRequestRelationships + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestRelationships) Get() *CreateOrganizationQuotaRequestRelationships { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestRelationships) Set(val *CreateOrganizationQuotaRequestRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestRelationships(val *CreateOrganizationQuotaRequestRelationships) *NullableCreateOrganizationQuotaRequestRelationships { + return &NullableCreateOrganizationQuotaRequestRelationships{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_relationships_organizations_inner.go b/model_create_organization_quota_request_relationships_organizations_inner.go new file mode 100644 index 0000000..410cac2 --- /dev/null +++ b/model_create_organization_quota_request_relationships_organizations_inner.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestRelationshipsOrganizationsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestRelationshipsOrganizationsInner{} + +// CreateOrganizationQuotaRequestRelationshipsOrganizationsInner struct for CreateOrganizationQuotaRequestRelationshipsOrganizationsInner +type CreateOrganizationQuotaRequestRelationshipsOrganizationsInner struct { + // GUID of the organization + Guid *string `json:"guid,omitempty"` +} + +// NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInner instantiates a new CreateOrganizationQuotaRequestRelationshipsOrganizationsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInner() *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + this := CreateOrganizationQuotaRequestRelationshipsOrganizationsInner{} + return &this +} + +// NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInnerWithDefaults instantiates a new CreateOrganizationQuotaRequestRelationshipsOrganizationsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestRelationshipsOrganizationsInnerWithDefaults() *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + this := CreateOrganizationQuotaRequestRelationshipsOrganizationsInner{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) SetGuid(v string) { + o.Guid = &v +} + +func (o CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner struct { + value *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) Get() *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) Set(val *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner(val *CreateOrganizationQuotaRequestRelationshipsOrganizationsInner) *NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner { + return &NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestRelationshipsOrganizationsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_routes.go b/model_create_organization_quota_request_routes.go new file mode 100644 index 0000000..6f9fd58 --- /dev/null +++ b/model_create_organization_quota_request_routes.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestRoutes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestRoutes{} + +// CreateOrganizationQuotaRequestRoutes struct for CreateOrganizationQuotaRequestRoutes +type CreateOrganizationQuotaRequestRoutes struct { + // Total number of ports that are reservable by routes in an organization + TotalReservedPorts NullableInt32 `json:"total_reserved_ports,omitempty"` + // Total number of routes allowed in an organization + TotalRoutes NullableInt32 `json:"total_routes,omitempty"` +} + +// NewCreateOrganizationQuotaRequestRoutes instantiates a new CreateOrganizationQuotaRequestRoutes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestRoutes() *CreateOrganizationQuotaRequestRoutes { + this := CreateOrganizationQuotaRequestRoutes{} + return &this +} + +// NewCreateOrganizationQuotaRequestRoutesWithDefaults instantiates a new CreateOrganizationQuotaRequestRoutes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestRoutesWithDefaults() *CreateOrganizationQuotaRequestRoutes { + this := CreateOrganizationQuotaRequestRoutes{} + return &this +} + +// GetTotalReservedPorts returns the TotalReservedPorts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestRoutes) GetTotalReservedPorts() int32 { + if o == nil || IsNil(o.TotalReservedPorts.Get()) { + var ret int32 + return ret + } + return *o.TotalReservedPorts.Get() +} + +// GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestRoutes) GetTotalReservedPortsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalReservedPorts.Get(), o.TotalReservedPorts.IsSet() +} + +// HasTotalReservedPorts returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestRoutes) HasTotalReservedPorts() bool { + if o != nil && o.TotalReservedPorts.IsSet() { + return true + } + + return false +} + +// SetTotalReservedPorts gets a reference to the given NullableInt32 and assigns it to the TotalReservedPorts field. +func (o *CreateOrganizationQuotaRequestRoutes) SetTotalReservedPorts(v int32) { + o.TotalReservedPorts.Set(&v) +} +// SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil +func (o *CreateOrganizationQuotaRequestRoutes) SetTotalReservedPortsNil() { + o.TotalReservedPorts.Set(nil) +} + +// UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +func (o *CreateOrganizationQuotaRequestRoutes) UnsetTotalReservedPorts() { + o.TotalReservedPorts.Unset() +} + +// GetTotalRoutes returns the TotalRoutes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestRoutes) GetTotalRoutes() int32 { + if o == nil || IsNil(o.TotalRoutes.Get()) { + var ret int32 + return ret + } + return *o.TotalRoutes.Get() +} + +// GetTotalRoutesOk returns a tuple with the TotalRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestRoutes) GetTotalRoutesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalRoutes.Get(), o.TotalRoutes.IsSet() +} + +// HasTotalRoutes returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestRoutes) HasTotalRoutes() bool { + if o != nil && o.TotalRoutes.IsSet() { + return true + } + + return false +} + +// SetTotalRoutes gets a reference to the given NullableInt32 and assigns it to the TotalRoutes field. +func (o *CreateOrganizationQuotaRequestRoutes) SetTotalRoutes(v int32) { + o.TotalRoutes.Set(&v) +} +// SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil +func (o *CreateOrganizationQuotaRequestRoutes) SetTotalRoutesNil() { + o.TotalRoutes.Set(nil) +} + +// UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil +func (o *CreateOrganizationQuotaRequestRoutes) UnsetTotalRoutes() { + o.TotalRoutes.Unset() +} + +func (o CreateOrganizationQuotaRequestRoutes) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestRoutes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TotalReservedPorts.IsSet() { + toSerialize["total_reserved_ports"] = o.TotalReservedPorts.Get() + } + if o.TotalRoutes.IsSet() { + toSerialize["total_routes"] = o.TotalRoutes.Get() + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestRoutes struct { + value *CreateOrganizationQuotaRequestRoutes + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestRoutes) Get() *CreateOrganizationQuotaRequestRoutes { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestRoutes) Set(val *CreateOrganizationQuotaRequestRoutes) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestRoutes) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestRoutes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestRoutes(val *CreateOrganizationQuotaRequestRoutes) *NullableCreateOrganizationQuotaRequestRoutes { + return &NullableCreateOrganizationQuotaRequestRoutes{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestRoutes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestRoutes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_quota_request_services.go b/model_create_organization_quota_request_services.go new file mode 100644 index 0000000..1d5d025 --- /dev/null +++ b/model_create_organization_quota_request_services.go @@ -0,0 +1,221 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the CreateOrganizationQuotaRequestServices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationQuotaRequestServices{} + +// CreateOrganizationQuotaRequestServices struct for CreateOrganizationQuotaRequestServices +type CreateOrganizationQuotaRequestServices struct { + // Specifies whether instances of paid service plans can be created + PaidServicesAllowed *bool `json:"paid_services_allowed,omitempty"` + // Total number of service instances allowed in an organization + TotalServiceInstances NullableInt32 `json:"total_service_instances,omitempty"` + // Total number of service keys allowed in an organization + TotalServiceKeys NullableInt32 `json:"total_service_keys,omitempty"` +} + +// NewCreateOrganizationQuotaRequestServices instantiates a new CreateOrganizationQuotaRequestServices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationQuotaRequestServices() *CreateOrganizationQuotaRequestServices { + this := CreateOrganizationQuotaRequestServices{} + return &this +} + +// NewCreateOrganizationQuotaRequestServicesWithDefaults instantiates a new CreateOrganizationQuotaRequestServices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationQuotaRequestServicesWithDefaults() *CreateOrganizationQuotaRequestServices { + this := CreateOrganizationQuotaRequestServices{} + return &this +} + +// GetPaidServicesAllowed returns the PaidServicesAllowed field value if set, zero value otherwise. +func (o *CreateOrganizationQuotaRequestServices) GetPaidServicesAllowed() bool { + if o == nil || IsNil(o.PaidServicesAllowed) { + var ret bool + return ret + } + return *o.PaidServicesAllowed +} + +// GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationQuotaRequestServices) GetPaidServicesAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.PaidServicesAllowed) { + return nil, false + } + return o.PaidServicesAllowed, true +} + +// HasPaidServicesAllowed returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestServices) HasPaidServicesAllowed() bool { + if o != nil && !IsNil(o.PaidServicesAllowed) { + return true + } + + return false +} + +// SetPaidServicesAllowed gets a reference to the given bool and assigns it to the PaidServicesAllowed field. +func (o *CreateOrganizationQuotaRequestServices) SetPaidServicesAllowed(v bool) { + o.PaidServicesAllowed = &v +} + +// GetTotalServiceInstances returns the TotalServiceInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceInstances() int32 { + if o == nil || IsNil(o.TotalServiceInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceInstances.Get() +} + +// GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceInstances.Get(), o.TotalServiceInstances.IsSet() +} + +// HasTotalServiceInstances returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestServices) HasTotalServiceInstances() bool { + if o != nil && o.TotalServiceInstances.IsSet() { + return true + } + + return false +} + +// SetTotalServiceInstances gets a reference to the given NullableInt32 and assigns it to the TotalServiceInstances field. +func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceInstances(v int32) { + o.TotalServiceInstances.Set(&v) +} +// SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil +func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceInstancesNil() { + o.TotalServiceInstances.Set(nil) +} + +// UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +func (o *CreateOrganizationQuotaRequestServices) UnsetTotalServiceInstances() { + o.TotalServiceInstances.Unset() +} + +// GetTotalServiceKeys returns the TotalServiceKeys field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceKeys() int32 { + if o == nil || IsNil(o.TotalServiceKeys.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceKeys.Get() +} + +// GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateOrganizationQuotaRequestServices) GetTotalServiceKeysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceKeys.Get(), o.TotalServiceKeys.IsSet() +} + +// HasTotalServiceKeys returns a boolean if a field has been set. +func (o *CreateOrganizationQuotaRequestServices) HasTotalServiceKeys() bool { + if o != nil && o.TotalServiceKeys.IsSet() { + return true + } + + return false +} + +// SetTotalServiceKeys gets a reference to the given NullableInt32 and assigns it to the TotalServiceKeys field. +func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceKeys(v int32) { + o.TotalServiceKeys.Set(&v) +} +// SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil +func (o *CreateOrganizationQuotaRequestServices) SetTotalServiceKeysNil() { + o.TotalServiceKeys.Set(nil) +} + +// UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil +func (o *CreateOrganizationQuotaRequestServices) UnsetTotalServiceKeys() { + o.TotalServiceKeys.Unset() +} + +func (o CreateOrganizationQuotaRequestServices) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationQuotaRequestServices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PaidServicesAllowed) { + toSerialize["paid_services_allowed"] = o.PaidServicesAllowed + } + if o.TotalServiceInstances.IsSet() { + toSerialize["total_service_instances"] = o.TotalServiceInstances.Get() + } + if o.TotalServiceKeys.IsSet() { + toSerialize["total_service_keys"] = o.TotalServiceKeys.Get() + } + return toSerialize, nil +} + +type NullableCreateOrganizationQuotaRequestServices struct { + value *CreateOrganizationQuotaRequestServices + isSet bool +} + +func (v NullableCreateOrganizationQuotaRequestServices) Get() *CreateOrganizationQuotaRequestServices { + return v.value +} + +func (v *NullableCreateOrganizationQuotaRequestServices) Set(val *CreateOrganizationQuotaRequestServices) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationQuotaRequestServices) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationQuotaRequestServices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationQuotaRequestServices(val *CreateOrganizationQuotaRequestServices) *NullableCreateOrganizationQuotaRequestServices { + return &NullableCreateOrganizationQuotaRequestServices{value: val, isSet: true} +} + +func (v NullableCreateOrganizationQuotaRequestServices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationQuotaRequestServices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_organization_request.go b/model_create_organization_request.go new file mode 100644 index 0000000..6705466 --- /dev/null +++ b/model_create_organization_request.go @@ -0,0 +1,230 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the CreateOrganizationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrganizationRequest{} + +// CreateOrganizationRequest struct for CreateOrganizationRequest +type CreateOrganizationRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name string `json:"name"` + Suspended *bool `json:"suspended,omitempty"` +} + +type _CreateOrganizationRequest CreateOrganizationRequest + +// NewCreateOrganizationRequest instantiates a new CreateOrganizationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateOrganizationRequest(name string) *CreateOrganizationRequest { + this := CreateOrganizationRequest{} + this.Name = name + return &this +} + +// NewCreateOrganizationRequestWithDefaults instantiates a new CreateOrganizationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateOrganizationRequestWithDefaults() *CreateOrganizationRequest { + this := CreateOrganizationRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *CreateOrganizationRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CreateOrganizationRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *CreateOrganizationRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value +func (o *CreateOrganizationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateOrganizationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateOrganizationRequest) SetName(v string) { + o.Name = v +} + +// GetSuspended returns the Suspended field value if set, zero value otherwise. +func (o *CreateOrganizationRequest) GetSuspended() bool { + if o == nil || IsNil(o.Suspended) { + var ret bool + return ret + } + return *o.Suspended +} + +// GetSuspendedOk returns a tuple with the Suspended field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrganizationRequest) GetSuspendedOk() (*bool, bool) { + if o == nil || IsNil(o.Suspended) { + return nil, false + } + return o.Suspended, true +} + +// HasSuspended returns a boolean if a field has been set. +func (o *CreateOrganizationRequest) HasSuspended() bool { + if o != nil && !IsNil(o.Suspended) { + return true + } + + return false +} + +// SetSuspended gets a reference to the given bool and assigns it to the Suspended field. +func (o *CreateOrganizationRequest) SetSuspended(v bool) { + o.Suspended = &v +} + +func (o CreateOrganizationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrganizationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + toSerialize["name"] = o.Name + if !IsNil(o.Suspended) { + toSerialize["suspended"] = o.Suspended + } + return toSerialize, nil +} + +func (o *CreateOrganizationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateOrganizationRequest := _CreateOrganizationRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateOrganizationRequest) + + if err != nil { + return err + } + + *o = CreateOrganizationRequest(varCreateOrganizationRequest) + + return err +} + +type NullableCreateOrganizationRequest struct { + value *CreateOrganizationRequest + isSet bool +} + +func (v NullableCreateOrganizationRequest) Get() *CreateOrganizationRequest { + return v.value +} + +func (v *NullableCreateOrganizationRequest) Set(val *CreateOrganizationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrganizationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrganizationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrganizationRequest(val *CreateOrganizationRequest) *NullableCreateOrganizationRequest { + return &NullableCreateOrganizationRequest{value: val, isSet: true} +} + +func (v NullableCreateOrganizationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrganizationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_organization_quota_202_response.go b/model_delete_organization_quota_202_response.go new file mode 100644 index 0000000..34e871b --- /dev/null +++ b/model_delete_organization_quota_202_response.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DeleteOrganizationQuota202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteOrganizationQuota202Response{} + +// DeleteOrganizationQuota202Response struct for DeleteOrganizationQuota202Response +type DeleteOrganizationQuota202Response struct { + // URL to track the deletion job + Location *string `json:"location,omitempty"` +} + +// NewDeleteOrganizationQuota202Response instantiates a new DeleteOrganizationQuota202Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteOrganizationQuota202Response() *DeleteOrganizationQuota202Response { + this := DeleteOrganizationQuota202Response{} + return &this +} + +// NewDeleteOrganizationQuota202ResponseWithDefaults instantiates a new DeleteOrganizationQuota202Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteOrganizationQuota202ResponseWithDefaults() *DeleteOrganizationQuota202Response { + this := DeleteOrganizationQuota202Response{} + return &this +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *DeleteOrganizationQuota202Response) GetLocation() string { + if o == nil || IsNil(o.Location) { + var ret string + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteOrganizationQuota202Response) GetLocationOk() (*string, bool) { + if o == nil || IsNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *DeleteOrganizationQuota202Response) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given string and assigns it to the Location field. +func (o *DeleteOrganizationQuota202Response) SetLocation(v string) { + o.Location = &v +} + +func (o DeleteOrganizationQuota202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteOrganizationQuota202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + return toSerialize, nil +} + +type NullableDeleteOrganizationQuota202Response struct { + value *DeleteOrganizationQuota202Response + isSet bool +} + +func (v NullableDeleteOrganizationQuota202Response) Get() *DeleteOrganizationQuota202Response { + return v.value +} + +func (v *NullableDeleteOrganizationQuota202Response) Set(val *DeleteOrganizationQuota202Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteOrganizationQuota202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteOrganizationQuota202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteOrganizationQuota202Response(val *DeleteOrganizationQuota202Response) *NullableDeleteOrganizationQuota202Response { + return &NullableDeleteOrganizationQuota202Response{value: val, isSet: true} +} + +func (v NullableDeleteOrganizationQuota202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteOrganizationQuota202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_destination.go b/model_destination.go new file mode 100644 index 0000000..9beed78 --- /dev/null +++ b/model_destination.go @@ -0,0 +1,290 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Destination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Destination{} + +// Destination struct for Destination +type Destination struct { + App *DestinationApp `json:"app,omitempty"` + Guid *string `json:"guid,omitempty"` + Port *int32 `json:"port,omitempty"` + Protocol NullableString `json:"protocol,omitempty"` + Weight NullableInt32 `json:"weight,omitempty"` +} + +// NewDestination instantiates a new Destination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDestination() *Destination { + this := Destination{} + return &this +} + +// NewDestinationWithDefaults instantiates a new Destination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDestinationWithDefaults() *Destination { + this := Destination{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *Destination) GetApp() DestinationApp { + if o == nil || IsNil(o.App) { + var ret DestinationApp + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Destination) GetAppOk() (*DestinationApp, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *Destination) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given DestinationApp and assigns it to the App field. +func (o *Destination) SetApp(v DestinationApp) { + o.App = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Destination) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Destination) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Destination) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Destination) SetGuid(v string) { + o.Guid = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *Destination) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Destination) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *Destination) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *Destination) SetPort(v int32) { + o.Port = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Destination) GetProtocol() string { + if o == nil || IsNil(o.Protocol.Get()) { + var ret string + return ret + } + return *o.Protocol.Get() +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Destination) GetProtocolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Protocol.Get(), o.Protocol.IsSet() +} + +// HasProtocol returns a boolean if a field has been set. +func (o *Destination) HasProtocol() bool { + if o != nil && o.Protocol.IsSet() { + return true + } + + return false +} + +// SetProtocol gets a reference to the given NullableString and assigns it to the Protocol field. +func (o *Destination) SetProtocol(v string) { + o.Protocol.Set(&v) +} +// SetProtocolNil sets the value for Protocol to be an explicit nil +func (o *Destination) SetProtocolNil() { + o.Protocol.Set(nil) +} + +// UnsetProtocol ensures that no value is present for Protocol, not even an explicit nil +func (o *Destination) UnsetProtocol() { + o.Protocol.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Destination) GetWeight() int32 { + if o == nil || IsNil(o.Weight.Get()) { + var ret int32 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Destination) GetWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *Destination) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableInt32 and assigns it to the Weight field. +func (o *Destination) SetWeight(v int32) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *Destination) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *Destination) UnsetWeight() { + o.Weight.Unset() +} + +func (o Destination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Destination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if o.Protocol.IsSet() { + toSerialize["protocol"] = o.Protocol.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + return toSerialize, nil +} + +type NullableDestination struct { + value *Destination + isSet bool +} + +func (v NullableDestination) Get() *Destination { + return v.value +} + +func (v *NullableDestination) Set(val *Destination) { + v.value = val + v.isSet = true +} + +func (v NullableDestination) IsSet() bool { + return v.isSet +} + +func (v *NullableDestination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDestination(val *Destination) *NullableDestination { + return &NullableDestination{value: val, isSet: true} +} + +func (v NullableDestination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDestination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_destination_app.go b/model_destination_app.go new file mode 100644 index 0000000..8f77456 --- /dev/null +++ b/model_destination_app.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DestinationApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DestinationApp{} + +// DestinationApp struct for DestinationApp +type DestinationApp struct { + Guid *string `json:"guid,omitempty"` + Process *DestinationAppProcess `json:"process,omitempty"` +} + +// NewDestinationApp instantiates a new DestinationApp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDestinationApp() *DestinationApp { + this := DestinationApp{} + return &this +} + +// NewDestinationAppWithDefaults instantiates a new DestinationApp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDestinationAppWithDefaults() *DestinationApp { + this := DestinationApp{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *DestinationApp) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DestinationApp) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *DestinationApp) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *DestinationApp) SetGuid(v string) { + o.Guid = &v +} + +// GetProcess returns the Process field value if set, zero value otherwise. +func (o *DestinationApp) GetProcess() DestinationAppProcess { + if o == nil || IsNil(o.Process) { + var ret DestinationAppProcess + return ret + } + return *o.Process +} + +// GetProcessOk returns a tuple with the Process field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DestinationApp) GetProcessOk() (*DestinationAppProcess, bool) { + if o == nil || IsNil(o.Process) { + return nil, false + } + return o.Process, true +} + +// HasProcess returns a boolean if a field has been set. +func (o *DestinationApp) HasProcess() bool { + if o != nil && !IsNil(o.Process) { + return true + } + + return false +} + +// SetProcess gets a reference to the given DestinationAppProcess and assigns it to the Process field. +func (o *DestinationApp) SetProcess(v DestinationAppProcess) { + o.Process = &v +} + +func (o DestinationApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DestinationApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Process) { + toSerialize["process"] = o.Process + } + return toSerialize, nil +} + +type NullableDestinationApp struct { + value *DestinationApp + isSet bool +} + +func (v NullableDestinationApp) Get() *DestinationApp { + return v.value +} + +func (v *NullableDestinationApp) Set(val *DestinationApp) { + v.value = val + v.isSet = true +} + +func (v NullableDestinationApp) IsSet() bool { + return v.isSet +} + +func (v *NullableDestinationApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDestinationApp(val *DestinationApp) *NullableDestinationApp { + return &NullableDestinationApp{value: val, isSet: true} +} + +func (v NullableDestinationApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDestinationApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_destination_app_process.go b/model_destination_app_process.go new file mode 100644 index 0000000..eff44a8 --- /dev/null +++ b/model_destination_app_process.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DestinationAppProcess type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DestinationAppProcess{} + +// DestinationAppProcess struct for DestinationAppProcess +type DestinationAppProcess struct { + Type *string `json:"type,omitempty"` +} + +// NewDestinationAppProcess instantiates a new DestinationAppProcess object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDestinationAppProcess() *DestinationAppProcess { + this := DestinationAppProcess{} + return &this +} + +// NewDestinationAppProcessWithDefaults instantiates a new DestinationAppProcess object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDestinationAppProcessWithDefaults() *DestinationAppProcess { + this := DestinationAppProcess{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *DestinationAppProcess) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DestinationAppProcess) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *DestinationAppProcess) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *DestinationAppProcess) SetType(v string) { + o.Type = &v +} + +func (o DestinationAppProcess) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DestinationAppProcess) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableDestinationAppProcess struct { + value *DestinationAppProcess + isSet bool +} + +func (v NullableDestinationAppProcess) Get() *DestinationAppProcess { + return v.value +} + +func (v *NullableDestinationAppProcess) Set(val *DestinationAppProcess) { + v.value = val + v.isSet = true +} + +func (v NullableDestinationAppProcess) IsSet() bool { + return v.isSet +} + +func (v *NullableDestinationAppProcess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDestinationAppProcess(val *DestinationAppProcess) *NullableDestinationAppProcess { + return &NullableDestinationAppProcess{value: val, isSet: true} +} + +func (v NullableDestinationAppProcess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDestinationAppProcess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domain.go b/model_domain.go new file mode 100644 index 0000000..30ea018 --- /dev/null +++ b/model_domain.go @@ -0,0 +1,451 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Domain type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Domain{} + +// Domain struct for Domain +type Domain struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Internal *bool `json:"internal,omitempty"` + Links *DomainLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *DomainRelationships `json:"relationships,omitempty"` + RouterGroup *V3DropletsPostRequestRelationshipsAppData `json:"router_group,omitempty"` + SupportedProtocols []string `json:"supported_protocols,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewDomain instantiates a new Domain object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomain() *Domain { + this := Domain{} + return &this +} + +// NewDomainWithDefaults instantiates a new Domain object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainWithDefaults() *Domain { + this := Domain{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Domain) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Domain) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Domain) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Domain) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Domain) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Domain) SetGuid(v string) { + o.Guid = &v +} + +// GetInternal returns the Internal field value if set, zero value otherwise. +func (o *Domain) GetInternal() bool { + if o == nil || IsNil(o.Internal) { + var ret bool + return ret + } + return *o.Internal +} + +// GetInternalOk returns a tuple with the Internal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetInternalOk() (*bool, bool) { + if o == nil || IsNil(o.Internal) { + return nil, false + } + return o.Internal, true +} + +// HasInternal returns a boolean if a field has been set. +func (o *Domain) HasInternal() bool { + if o != nil && !IsNil(o.Internal) { + return true + } + + return false +} + +// SetInternal gets a reference to the given bool and assigns it to the Internal field. +func (o *Domain) SetInternal(v bool) { + o.Internal = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Domain) GetLinks() DomainLinks { + if o == nil || IsNil(o.Links) { + var ret DomainLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetLinksOk() (*DomainLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Domain) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given DomainLinks and assigns it to the Links field. +func (o *Domain) SetLinks(v DomainLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Domain) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Domain) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Domain) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Domain) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Domain) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Domain) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Domain) GetRelationships() DomainRelationships { + if o == nil || IsNil(o.Relationships) { + var ret DomainRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetRelationshipsOk() (*DomainRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Domain) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given DomainRelationships and assigns it to the Relationships field. +func (o *Domain) SetRelationships(v DomainRelationships) { + o.Relationships = &v +} + +// GetRouterGroup returns the RouterGroup field value if set, zero value otherwise. +func (o *Domain) GetRouterGroup() V3DropletsPostRequestRelationshipsAppData { + if o == nil || IsNil(o.RouterGroup) { + var ret V3DropletsPostRequestRelationshipsAppData + return ret + } + return *o.RouterGroup +} + +// GetRouterGroupOk returns a tuple with the RouterGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetRouterGroupOk() (*V3DropletsPostRequestRelationshipsAppData, bool) { + if o == nil || IsNil(o.RouterGroup) { + return nil, false + } + return o.RouterGroup, true +} + +// HasRouterGroup returns a boolean if a field has been set. +func (o *Domain) HasRouterGroup() bool { + if o != nil && !IsNil(o.RouterGroup) { + return true + } + + return false +} + +// SetRouterGroup gets a reference to the given V3DropletsPostRequestRelationshipsAppData and assigns it to the RouterGroup field. +func (o *Domain) SetRouterGroup(v V3DropletsPostRequestRelationshipsAppData) { + o.RouterGroup = &v +} + +// GetSupportedProtocols returns the SupportedProtocols field value if set, zero value otherwise. +func (o *Domain) GetSupportedProtocols() []string { + if o == nil || IsNil(o.SupportedProtocols) { + var ret []string + return ret + } + return o.SupportedProtocols +} + +// GetSupportedProtocolsOk returns a tuple with the SupportedProtocols field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetSupportedProtocolsOk() ([]string, bool) { + if o == nil || IsNil(o.SupportedProtocols) { + return nil, false + } + return o.SupportedProtocols, true +} + +// HasSupportedProtocols returns a boolean if a field has been set. +func (o *Domain) HasSupportedProtocols() bool { + if o != nil && !IsNil(o.SupportedProtocols) { + return true + } + + return false +} + +// SetSupportedProtocols gets a reference to the given []string and assigns it to the SupportedProtocols field. +func (o *Domain) SetSupportedProtocols(v []string) { + o.SupportedProtocols = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Domain) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Domain) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Domain) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Domain) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Domain) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Domain) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Internal) { + toSerialize["internal"] = o.Internal + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.RouterGroup) { + toSerialize["router_group"] = o.RouterGroup + } + if !IsNil(o.SupportedProtocols) { + toSerialize["supported_protocols"] = o.SupportedProtocols + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableDomain struct { + value *Domain + isSet bool +} + +func (v NullableDomain) Get() *Domain { + return v.value +} + +func (v *NullableDomain) Set(val *Domain) { + v.value = val + v.isSet = true +} + +func (v NullableDomain) IsSet() bool { + return v.isSet +} + +func (v *NullableDomain) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDomain(val *Domain) *NullableDomain { + return &NullableDomain{value: val, isSet: true} +} + +func (v NullableDomain) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDomain) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domain_links.go b/model_domain_links.go new file mode 100644 index 0000000..b833dbb --- /dev/null +++ b/model_domain_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DomainLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DomainLinks{} + +// DomainLinks struct for DomainLinks +type DomainLinks struct { + Organization *Get200ResponseLinksLogCache `json:"organization,omitempty"` + RouteReservations *Get200ResponseLinksLogCache `json:"route_reservations,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + SharedOrganizations *Get200ResponseLinksLogCache `json:"shared_organizations,omitempty"` +} + +// NewDomainLinks instantiates a new DomainLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainLinks() *DomainLinks { + this := DomainLinks{} + return &this +} + +// NewDomainLinksWithDefaults instantiates a new DomainLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainLinksWithDefaults() *DomainLinks { + this := DomainLinks{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *DomainLinks) GetOrganization() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Organization) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainLinks) GetOrganizationOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *DomainLinks) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Organization field. +func (o *DomainLinks) SetOrganization(v Get200ResponseLinksLogCache) { + o.Organization = &v +} + +// GetRouteReservations returns the RouteReservations field value if set, zero value otherwise. +func (o *DomainLinks) GetRouteReservations() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.RouteReservations) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.RouteReservations +} + +// GetRouteReservationsOk returns a tuple with the RouteReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainLinks) GetRouteReservationsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.RouteReservations) { + return nil, false + } + return o.RouteReservations, true +} + +// HasRouteReservations returns a boolean if a field has been set. +func (o *DomainLinks) HasRouteReservations() bool { + if o != nil && !IsNil(o.RouteReservations) { + return true + } + + return false +} + +// SetRouteReservations gets a reference to the given Get200ResponseLinksLogCache and assigns it to the RouteReservations field. +func (o *DomainLinks) SetRouteReservations(v Get200ResponseLinksLogCache) { + o.RouteReservations = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *DomainLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *DomainLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *DomainLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetSharedOrganizations returns the SharedOrganizations field value if set, zero value otherwise. +func (o *DomainLinks) GetSharedOrganizations() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.SharedOrganizations) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.SharedOrganizations +} + +// GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainLinks) GetSharedOrganizationsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.SharedOrganizations) { + return nil, false + } + return o.SharedOrganizations, true +} + +// HasSharedOrganizations returns a boolean if a field has been set. +func (o *DomainLinks) HasSharedOrganizations() bool { + if o != nil && !IsNil(o.SharedOrganizations) { + return true + } + + return false +} + +// SetSharedOrganizations gets a reference to the given Get200ResponseLinksLogCache and assigns it to the SharedOrganizations field. +func (o *DomainLinks) SetSharedOrganizations(v Get200ResponseLinksLogCache) { + o.SharedOrganizations = &v +} + +func (o DomainLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DomainLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.RouteReservations) { + toSerialize["route_reservations"] = o.RouteReservations + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.SharedOrganizations) { + toSerialize["shared_organizations"] = o.SharedOrganizations + } + return toSerialize, nil +} + +type NullableDomainLinks struct { + value *DomainLinks + isSet bool +} + +func (v NullableDomainLinks) Get() *DomainLinks { + return v.value +} + +func (v *NullableDomainLinks) Set(val *DomainLinks) { + v.value = val + v.isSet = true +} + +func (v NullableDomainLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableDomainLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDomainLinks(val *DomainLinks) *NullableDomainLinks { + return &NullableDomainLinks{value: val, isSet: true} +} + +func (v NullableDomainLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDomainLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domain_relationships.go b/model_domain_relationships.go new file mode 100644 index 0000000..b331554 --- /dev/null +++ b/model_domain_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DomainRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DomainRelationships{} + +// DomainRelationships struct for DomainRelationships +type DomainRelationships struct { + Organization *V3DropletsPostRequestRelationshipsApp `json:"organization,omitempty"` + SharedOrganizations *DomainRelationshipsSharedOrganizations `json:"shared_organizations,omitempty"` +} + +// NewDomainRelationships instantiates a new DomainRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainRelationships() *DomainRelationships { + this := DomainRelationships{} + return &this +} + +// NewDomainRelationshipsWithDefaults instantiates a new DomainRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainRelationshipsWithDefaults() *DomainRelationships { + this := DomainRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *DomainRelationships) GetOrganization() V3DropletsPostRequestRelationshipsApp { + if o == nil || IsNil(o.Organization) { + var ret V3DropletsPostRequestRelationshipsApp + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainRelationships) GetOrganizationOk() (*V3DropletsPostRequestRelationshipsApp, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *DomainRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3DropletsPostRequestRelationshipsApp and assigns it to the Organization field. +func (o *DomainRelationships) SetOrganization(v V3DropletsPostRequestRelationshipsApp) { + o.Organization = &v +} + +// GetSharedOrganizations returns the SharedOrganizations field value if set, zero value otherwise. +func (o *DomainRelationships) GetSharedOrganizations() DomainRelationshipsSharedOrganizations { + if o == nil || IsNil(o.SharedOrganizations) { + var ret DomainRelationshipsSharedOrganizations + return ret + } + return *o.SharedOrganizations +} + +// GetSharedOrganizationsOk returns a tuple with the SharedOrganizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainRelationships) GetSharedOrganizationsOk() (*DomainRelationshipsSharedOrganizations, bool) { + if o == nil || IsNil(o.SharedOrganizations) { + return nil, false + } + return o.SharedOrganizations, true +} + +// HasSharedOrganizations returns a boolean if a field has been set. +func (o *DomainRelationships) HasSharedOrganizations() bool { + if o != nil && !IsNil(o.SharedOrganizations) { + return true + } + + return false +} + +// SetSharedOrganizations gets a reference to the given DomainRelationshipsSharedOrganizations and assigns it to the SharedOrganizations field. +func (o *DomainRelationships) SetSharedOrganizations(v DomainRelationshipsSharedOrganizations) { + o.SharedOrganizations = &v +} + +func (o DomainRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DomainRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.SharedOrganizations) { + toSerialize["shared_organizations"] = o.SharedOrganizations + } + return toSerialize, nil +} + +type NullableDomainRelationships struct { + value *DomainRelationships + isSet bool +} + +func (v NullableDomainRelationships) Get() *DomainRelationships { + return v.value +} + +func (v *NullableDomainRelationships) Set(val *DomainRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableDomainRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableDomainRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDomainRelationships(val *DomainRelationships) *NullableDomainRelationships { + return &NullableDomainRelationships{value: val, isSet: true} +} + +func (v NullableDomainRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDomainRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domain_relationships_shared_organizations.go b/model_domain_relationships_shared_organizations.go new file mode 100644 index 0000000..a777f73 --- /dev/null +++ b/model_domain_relationships_shared_organizations.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DomainRelationshipsSharedOrganizations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DomainRelationshipsSharedOrganizations{} + +// DomainRelationshipsSharedOrganizations struct for DomainRelationshipsSharedOrganizations +type DomainRelationshipsSharedOrganizations struct { + Data []V3DropletsPostRequestRelationshipsAppData `json:"data,omitempty"` +} + +// NewDomainRelationshipsSharedOrganizations instantiates a new DomainRelationshipsSharedOrganizations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainRelationshipsSharedOrganizations() *DomainRelationshipsSharedOrganizations { + this := DomainRelationshipsSharedOrganizations{} + return &this +} + +// NewDomainRelationshipsSharedOrganizationsWithDefaults instantiates a new DomainRelationshipsSharedOrganizations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainRelationshipsSharedOrganizationsWithDefaults() *DomainRelationshipsSharedOrganizations { + this := DomainRelationshipsSharedOrganizations{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DomainRelationshipsSharedOrganizations) GetData() []V3DropletsPostRequestRelationshipsAppData { + if o == nil || IsNil(o.Data) { + var ret []V3DropletsPostRequestRelationshipsAppData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainRelationshipsSharedOrganizations) GetDataOk() ([]V3DropletsPostRequestRelationshipsAppData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DomainRelationshipsSharedOrganizations) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V3DropletsPostRequestRelationshipsAppData and assigns it to the Data field. +func (o *DomainRelationshipsSharedOrganizations) SetData(v []V3DropletsPostRequestRelationshipsAppData) { + o.Data = v +} + +func (o DomainRelationshipsSharedOrganizations) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DomainRelationshipsSharedOrganizations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableDomainRelationshipsSharedOrganizations struct { + value *DomainRelationshipsSharedOrganizations + isSet bool +} + +func (v NullableDomainRelationshipsSharedOrganizations) Get() *DomainRelationshipsSharedOrganizations { + return v.value +} + +func (v *NullableDomainRelationshipsSharedOrganizations) Set(val *DomainRelationshipsSharedOrganizations) { + v.value = val + v.isSet = true +} + +func (v NullableDomainRelationshipsSharedOrganizations) IsSet() bool { + return v.isSet +} + +func (v *NullableDomainRelationshipsSharedOrganizations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDomainRelationshipsSharedOrganizations(val *DomainRelationshipsSharedOrganizations) *NullableDomainRelationshipsSharedOrganizations { + return &NullableDomainRelationshipsSharedOrganizations{value: val, isSet: true} +} + +func (v NullableDomainRelationshipsSharedOrganizations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDomainRelationshipsSharedOrganizations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domains_quota.go b/model_domains_quota.go new file mode 100644 index 0000000..0227d2d --- /dev/null +++ b/model_domains_quota.go @@ -0,0 +1,137 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DomainsQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DomainsQuota{} + +// DomainsQuota struct for DomainsQuota +type DomainsQuota struct { + // Total number of domains that can be scoped to an organization + TotalDomains NullableInt32 `json:"total_domains,omitempty"` +} + +// NewDomainsQuota instantiates a new DomainsQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainsQuota() *DomainsQuota { + this := DomainsQuota{} + return &this +} + +// NewDomainsQuotaWithDefaults instantiates a new DomainsQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainsQuotaWithDefaults() *DomainsQuota { + this := DomainsQuota{} + return &this +} + +// GetTotalDomains returns the TotalDomains field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DomainsQuota) GetTotalDomains() int32 { + if o == nil || IsNil(o.TotalDomains.Get()) { + var ret int32 + return ret + } + return *o.TotalDomains.Get() +} + +// GetTotalDomainsOk returns a tuple with the TotalDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DomainsQuota) GetTotalDomainsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalDomains.Get(), o.TotalDomains.IsSet() +} + +// HasTotalDomains returns a boolean if a field has been set. +func (o *DomainsQuota) HasTotalDomains() bool { + if o != nil && o.TotalDomains.IsSet() { + return true + } + + return false +} + +// SetTotalDomains gets a reference to the given NullableInt32 and assigns it to the TotalDomains field. +func (o *DomainsQuota) SetTotalDomains(v int32) { + o.TotalDomains.Set(&v) +} +// SetTotalDomainsNil sets the value for TotalDomains to be an explicit nil +func (o *DomainsQuota) SetTotalDomainsNil() { + o.TotalDomains.Set(nil) +} + +// UnsetTotalDomains ensures that no value is present for TotalDomains, not even an explicit nil +func (o *DomainsQuota) UnsetTotalDomains() { + o.TotalDomains.Unset() +} + +func (o DomainsQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DomainsQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TotalDomains.IsSet() { + toSerialize["total_domains"] = o.TotalDomains.Get() + } + return toSerialize, nil +} + +type NullableDomainsQuota struct { + value *DomainsQuota + isSet bool +} + +func (v NullableDomainsQuota) Get() *DomainsQuota { + return v.value +} + +func (v *NullableDomainsQuota) Set(val *DomainsQuota) { + v.value = val + v.isSet = true +} + +func (v NullableDomainsQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableDomainsQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDomainsQuota(val *DomainsQuota) *NullableDomainsQuota { + return &NullableDomainsQuota{value: val, isSet: true} +} + +func (v NullableDomainsQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDomainsQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_droplet.go b/model_droplet.go new file mode 100644 index 0000000..29d0c63 --- /dev/null +++ b/model_droplet.go @@ -0,0 +1,631 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Droplet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Droplet{} + +// Droplet struct for Droplet +type Droplet struct { + Buildpacks []Buildpack `json:"buildpacks,omitempty"` + Checksum *DropletChecksum `json:"checksum,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Error *string `json:"error,omitempty"` + ExecutionMetadata *string `json:"execution_metadata,omitempty"` + Guid *string `json:"guid,omitempty"` + Image *string `json:"image,omitempty"` + Lifecycle *DropletLifecycle `json:"lifecycle,omitempty"` + Links *DropletLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + ProcessTypes *map[string]string `json:"process_types,omitempty"` + Relationships *V3DropletsPostRequestRelationships `json:"relationships,omitempty"` + Stack *string `json:"stack,omitempty"` + State *string `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewDroplet instantiates a new Droplet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDroplet() *Droplet { + this := Droplet{} + return &this +} + +// NewDropletWithDefaults instantiates a new Droplet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDropletWithDefaults() *Droplet { + this := Droplet{} + return &this +} + +// GetBuildpacks returns the Buildpacks field value if set, zero value otherwise. +func (o *Droplet) GetBuildpacks() []Buildpack { + if o == nil || IsNil(o.Buildpacks) { + var ret []Buildpack + return ret + } + return o.Buildpacks +} + +// GetBuildpacksOk returns a tuple with the Buildpacks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetBuildpacksOk() ([]Buildpack, bool) { + if o == nil || IsNil(o.Buildpacks) { + return nil, false + } + return o.Buildpacks, true +} + +// HasBuildpacks returns a boolean if a field has been set. +func (o *Droplet) HasBuildpacks() bool { + if o != nil && !IsNil(o.Buildpacks) { + return true + } + + return false +} + +// SetBuildpacks gets a reference to the given []Buildpack and assigns it to the Buildpacks field. +func (o *Droplet) SetBuildpacks(v []Buildpack) { + o.Buildpacks = v +} + +// GetChecksum returns the Checksum field value if set, zero value otherwise. +func (o *Droplet) GetChecksum() DropletChecksum { + if o == nil || IsNil(o.Checksum) { + var ret DropletChecksum + return ret + } + return *o.Checksum +} + +// GetChecksumOk returns a tuple with the Checksum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetChecksumOk() (*DropletChecksum, bool) { + if o == nil || IsNil(o.Checksum) { + return nil, false + } + return o.Checksum, true +} + +// HasChecksum returns a boolean if a field has been set. +func (o *Droplet) HasChecksum() bool { + if o != nil && !IsNil(o.Checksum) { + return true + } + + return false +} + +// SetChecksum gets a reference to the given DropletChecksum and assigns it to the Checksum field. +func (o *Droplet) SetChecksum(v DropletChecksum) { + o.Checksum = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Droplet) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Droplet) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Droplet) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *Droplet) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *Droplet) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *Droplet) SetError(v string) { + o.Error = &v +} + +// GetExecutionMetadata returns the ExecutionMetadata field value if set, zero value otherwise. +func (o *Droplet) GetExecutionMetadata() string { + if o == nil || IsNil(o.ExecutionMetadata) { + var ret string + return ret + } + return *o.ExecutionMetadata +} + +// GetExecutionMetadataOk returns a tuple with the ExecutionMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetExecutionMetadataOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionMetadata) { + return nil, false + } + return o.ExecutionMetadata, true +} + +// HasExecutionMetadata returns a boolean if a field has been set. +func (o *Droplet) HasExecutionMetadata() bool { + if o != nil && !IsNil(o.ExecutionMetadata) { + return true + } + + return false +} + +// SetExecutionMetadata gets a reference to the given string and assigns it to the ExecutionMetadata field. +func (o *Droplet) SetExecutionMetadata(v string) { + o.ExecutionMetadata = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Droplet) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Droplet) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Droplet) SetGuid(v string) { + o.Guid = &v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *Droplet) GetImage() string { + if o == nil || IsNil(o.Image) { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetImageOk() (*string, bool) { + if o == nil || IsNil(o.Image) { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *Droplet) HasImage() bool { + if o != nil && !IsNil(o.Image) { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *Droplet) SetImage(v string) { + o.Image = &v +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *Droplet) GetLifecycle() DropletLifecycle { + if o == nil || IsNil(o.Lifecycle) { + var ret DropletLifecycle + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetLifecycleOk() (*DropletLifecycle, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *Droplet) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given DropletLifecycle and assigns it to the Lifecycle field. +func (o *Droplet) SetLifecycle(v DropletLifecycle) { + o.Lifecycle = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Droplet) GetLinks() DropletLinks { + if o == nil || IsNil(o.Links) { + var ret DropletLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetLinksOk() (*DropletLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Droplet) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given DropletLinks and assigns it to the Links field. +func (o *Droplet) SetLinks(v DropletLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Droplet) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Droplet) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Droplet) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetProcessTypes returns the ProcessTypes field value if set, zero value otherwise. +func (o *Droplet) GetProcessTypes() map[string]string { + if o == nil || IsNil(o.ProcessTypes) { + var ret map[string]string + return ret + } + return *o.ProcessTypes +} + +// GetProcessTypesOk returns a tuple with the ProcessTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetProcessTypesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.ProcessTypes) { + return nil, false + } + return o.ProcessTypes, true +} + +// HasProcessTypes returns a boolean if a field has been set. +func (o *Droplet) HasProcessTypes() bool { + if o != nil && !IsNil(o.ProcessTypes) { + return true + } + + return false +} + +// SetProcessTypes gets a reference to the given map[string]string and assigns it to the ProcessTypes field. +func (o *Droplet) SetProcessTypes(v map[string]string) { + o.ProcessTypes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Droplet) GetRelationships() V3DropletsPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3DropletsPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetRelationshipsOk() (*V3DropletsPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Droplet) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3DropletsPostRequestRelationships and assigns it to the Relationships field. +func (o *Droplet) SetRelationships(v V3DropletsPostRequestRelationships) { + o.Relationships = &v +} + +// GetStack returns the Stack field value if set, zero value otherwise. +func (o *Droplet) GetStack() string { + if o == nil || IsNil(o.Stack) { + var ret string + return ret + } + return *o.Stack +} + +// GetStackOk returns a tuple with the Stack field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetStackOk() (*string, bool) { + if o == nil || IsNil(o.Stack) { + return nil, false + } + return o.Stack, true +} + +// HasStack returns a boolean if a field has been set. +func (o *Droplet) HasStack() bool { + if o != nil && !IsNil(o.Stack) { + return true + } + + return false +} + +// SetStack gets a reference to the given string and assigns it to the Stack field. +func (o *Droplet) SetStack(v string) { + o.Stack = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *Droplet) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *Droplet) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *Droplet) SetState(v string) { + o.State = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Droplet) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Droplet) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Droplet) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Droplet) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Droplet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Droplet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Buildpacks) { + toSerialize["buildpacks"] = o.Buildpacks + } + if !IsNil(o.Checksum) { + toSerialize["checksum"] = o.Checksum + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.ExecutionMetadata) { + toSerialize["execution_metadata"] = o.ExecutionMetadata + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Image) { + toSerialize["image"] = o.Image + } + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.ProcessTypes) { + toSerialize["process_types"] = o.ProcessTypes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Stack) { + toSerialize["stack"] = o.Stack + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableDroplet struct { + value *Droplet + isSet bool +} + +func (v NullableDroplet) Get() *Droplet { + return v.value +} + +func (v *NullableDroplet) Set(val *Droplet) { + v.value = val + v.isSet = true +} + +func (v NullableDroplet) IsSet() bool { + return v.isSet +} + +func (v *NullableDroplet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDroplet(val *Droplet) *NullableDroplet { + return &NullableDroplet{value: val, isSet: true} +} + +func (v NullableDroplet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDroplet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_droplet_checksum.go b/model_droplet_checksum.go new file mode 100644 index 0000000..7ed2b0f --- /dev/null +++ b/model_droplet_checksum.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DropletChecksum type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DropletChecksum{} + +// DropletChecksum struct for DropletChecksum +type DropletChecksum struct { + Type *string `json:"type,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewDropletChecksum instantiates a new DropletChecksum object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDropletChecksum() *DropletChecksum { + this := DropletChecksum{} + return &this +} + +// NewDropletChecksumWithDefaults instantiates a new DropletChecksum object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDropletChecksumWithDefaults() *DropletChecksum { + this := DropletChecksum{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *DropletChecksum) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletChecksum) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *DropletChecksum) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *DropletChecksum) SetType(v string) { + o.Type = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DropletChecksum) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletChecksum) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DropletChecksum) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *DropletChecksum) SetValue(v string) { + o.Value = &v +} + +func (o DropletChecksum) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DropletChecksum) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableDropletChecksum struct { + value *DropletChecksum + isSet bool +} + +func (v NullableDropletChecksum) Get() *DropletChecksum { + return v.value +} + +func (v *NullableDropletChecksum) Set(val *DropletChecksum) { + v.value = val + v.isSet = true +} + +func (v NullableDropletChecksum) IsSet() bool { + return v.isSet +} + +func (v *NullableDropletChecksum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDropletChecksum(val *DropletChecksum) *NullableDropletChecksum { + return &NullableDropletChecksum{value: val, isSet: true} +} + +func (v NullableDropletChecksum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDropletChecksum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_droplet_lifecycle.go b/model_droplet_lifecycle.go new file mode 100644 index 0000000..2ca6937 --- /dev/null +++ b/model_droplet_lifecycle.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DropletLifecycle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DropletLifecycle{} + +// DropletLifecycle struct for DropletLifecycle +type DropletLifecycle struct { + Data map[string]interface{} `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewDropletLifecycle instantiates a new DropletLifecycle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDropletLifecycle() *DropletLifecycle { + this := DropletLifecycle{} + return &this +} + +// NewDropletLifecycleWithDefaults instantiates a new DropletLifecycle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDropletLifecycleWithDefaults() *DropletLifecycle { + this := DropletLifecycle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DropletLifecycle) GetData() map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLifecycle) GetDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DropletLifecycle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *DropletLifecycle) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *DropletLifecycle) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLifecycle) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *DropletLifecycle) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *DropletLifecycle) SetType(v string) { + o.Type = &v +} + +func (o DropletLifecycle) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DropletLifecycle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableDropletLifecycle struct { + value *DropletLifecycle + isSet bool +} + +func (v NullableDropletLifecycle) Get() *DropletLifecycle { + return v.value +} + +func (v *NullableDropletLifecycle) Set(val *DropletLifecycle) { + v.value = val + v.isSet = true +} + +func (v NullableDropletLifecycle) IsSet() bool { + return v.isSet +} + +func (v *NullableDropletLifecycle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDropletLifecycle(val *DropletLifecycle) *NullableDropletLifecycle { + return &NullableDropletLifecycle{value: val, isSet: true} +} + +func (v NullableDropletLifecycle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDropletLifecycle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_droplet_links.go b/model_droplet_links.go new file mode 100644 index 0000000..fa490df --- /dev/null +++ b/model_droplet_links.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DropletLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DropletLinks{} + +// DropletLinks struct for DropletLinks +type DropletLinks struct { + App *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"app,omitempty"` + AssignCurrentDroplet *DropletLinksAssignCurrentDroplet `json:"assign_current_droplet,omitempty"` + Download *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"download,omitempty"` + Package *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"package,omitempty"` + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` +} + +// NewDropletLinks instantiates a new DropletLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDropletLinks() *DropletLinks { + this := DropletLinks{} + return &this +} + +// NewDropletLinksWithDefaults instantiates a new DropletLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDropletLinksWithDefaults() *DropletLinks { + this := DropletLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *DropletLinks) GetApp() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.App) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinks) GetAppOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *DropletLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the App field. +func (o *DropletLinks) SetApp(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.App = &v +} + +// GetAssignCurrentDroplet returns the AssignCurrentDroplet field value if set, zero value otherwise. +func (o *DropletLinks) GetAssignCurrentDroplet() DropletLinksAssignCurrentDroplet { + if o == nil || IsNil(o.AssignCurrentDroplet) { + var ret DropletLinksAssignCurrentDroplet + return ret + } + return *o.AssignCurrentDroplet +} + +// GetAssignCurrentDropletOk returns a tuple with the AssignCurrentDroplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinks) GetAssignCurrentDropletOk() (*DropletLinksAssignCurrentDroplet, bool) { + if o == nil || IsNil(o.AssignCurrentDroplet) { + return nil, false + } + return o.AssignCurrentDroplet, true +} + +// HasAssignCurrentDroplet returns a boolean if a field has been set. +func (o *DropletLinks) HasAssignCurrentDroplet() bool { + if o != nil && !IsNil(o.AssignCurrentDroplet) { + return true + } + + return false +} + +// SetAssignCurrentDroplet gets a reference to the given DropletLinksAssignCurrentDroplet and assigns it to the AssignCurrentDroplet field. +func (o *DropletLinks) SetAssignCurrentDroplet(v DropletLinksAssignCurrentDroplet) { + o.AssignCurrentDroplet = &v +} + +// GetDownload returns the Download field value if set, zero value otherwise. +func (o *DropletLinks) GetDownload() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Download) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Download +} + +// GetDownloadOk returns a tuple with the Download field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinks) GetDownloadOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Download) { + return nil, false + } + return o.Download, true +} + +// HasDownload returns a boolean if a field has been set. +func (o *DropletLinks) HasDownload() bool { + if o != nil && !IsNil(o.Download) { + return true + } + + return false +} + +// SetDownload gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Download field. +func (o *DropletLinks) SetDownload(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Download = &v +} + +// GetPackage returns the Package field value if set, zero value otherwise. +func (o *DropletLinks) GetPackage() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Package) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Package +} + +// GetPackageOk returns a tuple with the Package field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinks) GetPackageOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Package) { + return nil, false + } + return o.Package, true +} + +// HasPackage returns a boolean if a field has been set. +func (o *DropletLinks) HasPackage() bool { + if o != nil && !IsNil(o.Package) { + return true + } + + return false +} + +// SetPackage gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Package field. +func (o *DropletLinks) SetPackage(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Package = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *DropletLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *DropletLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *DropletLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +func (o DropletLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DropletLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.AssignCurrentDroplet) { + toSerialize["assign_current_droplet"] = o.AssignCurrentDroplet + } + if !IsNil(o.Download) { + toSerialize["download"] = o.Download + } + if !IsNil(o.Package) { + toSerialize["package"] = o.Package + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableDropletLinks struct { + value *DropletLinks + isSet bool +} + +func (v NullableDropletLinks) Get() *DropletLinks { + return v.value +} + +func (v *NullableDropletLinks) Set(val *DropletLinks) { + v.value = val + v.isSet = true +} + +func (v NullableDropletLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableDropletLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDropletLinks(val *DropletLinks) *NullableDropletLinks { + return &NullableDropletLinks{value: val, isSet: true} +} + +func (v NullableDropletLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDropletLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_droplet_links_assign_current_droplet.go b/model_droplet_links_assign_current_droplet.go new file mode 100644 index 0000000..a30f573 --- /dev/null +++ b/model_droplet_links_assign_current_droplet.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the DropletLinksAssignCurrentDroplet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DropletLinksAssignCurrentDroplet{} + +// DropletLinksAssignCurrentDroplet struct for DropletLinksAssignCurrentDroplet +type DropletLinksAssignCurrentDroplet struct { + Href *string `json:"href,omitempty"` + Method *string `json:"method,omitempty"` +} + +// NewDropletLinksAssignCurrentDroplet instantiates a new DropletLinksAssignCurrentDroplet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDropletLinksAssignCurrentDroplet() *DropletLinksAssignCurrentDroplet { + this := DropletLinksAssignCurrentDroplet{} + return &this +} + +// NewDropletLinksAssignCurrentDropletWithDefaults instantiates a new DropletLinksAssignCurrentDroplet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDropletLinksAssignCurrentDropletWithDefaults() *DropletLinksAssignCurrentDroplet { + this := DropletLinksAssignCurrentDroplet{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *DropletLinksAssignCurrentDroplet) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinksAssignCurrentDroplet) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *DropletLinksAssignCurrentDroplet) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *DropletLinksAssignCurrentDroplet) SetHref(v string) { + o.Href = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *DropletLinksAssignCurrentDroplet) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DropletLinksAssignCurrentDroplet) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *DropletLinksAssignCurrentDroplet) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *DropletLinksAssignCurrentDroplet) SetMethod(v string) { + o.Method = &v +} + +func (o DropletLinksAssignCurrentDroplet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DropletLinksAssignCurrentDroplet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + return toSerialize, nil +} + +type NullableDropletLinksAssignCurrentDroplet struct { + value *DropletLinksAssignCurrentDroplet + isSet bool +} + +func (v NullableDropletLinksAssignCurrentDroplet) Get() *DropletLinksAssignCurrentDroplet { + return v.value +} + +func (v *NullableDropletLinksAssignCurrentDroplet) Set(val *DropletLinksAssignCurrentDroplet) { + v.value = val + v.isSet = true +} + +func (v NullableDropletLinksAssignCurrentDroplet) IsSet() bool { + return v.isSet +} + +func (v *NullableDropletLinksAssignCurrentDroplet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDropletLinksAssignCurrentDroplet(val *DropletLinksAssignCurrentDroplet) *NullableDropletLinksAssignCurrentDroplet { + return &NullableDropletLinksAssignCurrentDroplet{value: val, isSet: true} +} + +func (v NullableDropletLinksAssignCurrentDroplet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDropletLinksAssignCurrentDroplet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_environment_variable_group.go b/model_environment_variable_group.go new file mode 100644 index 0000000..a840c57 --- /dev/null +++ b/model_environment_variable_group.go @@ -0,0 +1,235 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the EnvironmentVariableGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentVariableGroup{} + +// EnvironmentVariableGroup struct for EnvironmentVariableGroup +type EnvironmentVariableGroup struct { + Links *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Var *map[string]string `json:"var,omitempty"` +} + +// NewEnvironmentVariableGroup instantiates a new EnvironmentVariableGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentVariableGroup() *EnvironmentVariableGroup { + this := EnvironmentVariableGroup{} + return &this +} + +// NewEnvironmentVariableGroupWithDefaults instantiates a new EnvironmentVariableGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentVariableGroupWithDefaults() *EnvironmentVariableGroup { + this := EnvironmentVariableGroup{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *EnvironmentVariableGroup) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariableGroup) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *EnvironmentVariableGroup) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks and assigns it to the Links field. +func (o *EnvironmentVariableGroup) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *EnvironmentVariableGroup) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariableGroup) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *EnvironmentVariableGroup) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *EnvironmentVariableGroup) SetName(v string) { + o.Name = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *EnvironmentVariableGroup) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariableGroup) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *EnvironmentVariableGroup) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *EnvironmentVariableGroup) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetVar returns the Var field value if set, zero value otherwise. +func (o *EnvironmentVariableGroup) GetVar() map[string]string { + if o == nil || IsNil(o.Var) { + var ret map[string]string + return ret + } + return *o.Var +} + +// GetVarOk returns a tuple with the Var field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariableGroup) GetVarOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Var) { + return nil, false + } + return o.Var, true +} + +// HasVar returns a boolean if a field has been set. +func (o *EnvironmentVariableGroup) HasVar() bool { + if o != nil && !IsNil(o.Var) { + return true + } + + return false +} + +// SetVar gets a reference to the given map[string]string and assigns it to the Var field. +func (o *EnvironmentVariableGroup) SetVar(v map[string]string) { + o.Var = &v +} + +func (o EnvironmentVariableGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentVariableGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Var) { + toSerialize["var"] = o.Var + } + return toSerialize, nil +} + +type NullableEnvironmentVariableGroup struct { + value *EnvironmentVariableGroup + isSet bool +} + +func (v NullableEnvironmentVariableGroup) Get() *EnvironmentVariableGroup { + return v.value +} + +func (v *NullableEnvironmentVariableGroup) Set(val *EnvironmentVariableGroup) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentVariableGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentVariableGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentVariableGroup(val *EnvironmentVariableGroup) *NullableEnvironmentVariableGroup { + return &NullableEnvironmentVariableGroup{value: val, isSet: true} +} + +func (v NullableEnvironmentVariableGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentVariableGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_environment_variables.go b/model_environment_variables.go new file mode 100644 index 0000000..8809fc0 --- /dev/null +++ b/model_environment_variables.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the EnvironmentVariables type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentVariables{} + +// EnvironmentVariables struct for EnvironmentVariables +type EnvironmentVariables struct { + Links *EnvironmentVariablesLinks `json:"links,omitempty"` + Var *map[string]string `json:"var,omitempty"` +} + +// NewEnvironmentVariables instantiates a new EnvironmentVariables object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentVariables() *EnvironmentVariables { + this := EnvironmentVariables{} + return &this +} + +// NewEnvironmentVariablesWithDefaults instantiates a new EnvironmentVariables object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentVariablesWithDefaults() *EnvironmentVariables { + this := EnvironmentVariables{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *EnvironmentVariables) GetLinks() EnvironmentVariablesLinks { + if o == nil || IsNil(o.Links) { + var ret EnvironmentVariablesLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariables) GetLinksOk() (*EnvironmentVariablesLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *EnvironmentVariables) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given EnvironmentVariablesLinks and assigns it to the Links field. +func (o *EnvironmentVariables) SetLinks(v EnvironmentVariablesLinks) { + o.Links = &v +} + +// GetVar returns the Var field value if set, zero value otherwise. +func (o *EnvironmentVariables) GetVar() map[string]string { + if o == nil || IsNil(o.Var) { + var ret map[string]string + return ret + } + return *o.Var +} + +// GetVarOk returns a tuple with the Var field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariables) GetVarOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Var) { + return nil, false + } + return o.Var, true +} + +// HasVar returns a boolean if a field has been set. +func (o *EnvironmentVariables) HasVar() bool { + if o != nil && !IsNil(o.Var) { + return true + } + + return false +} + +// SetVar gets a reference to the given map[string]string and assigns it to the Var field. +func (o *EnvironmentVariables) SetVar(v map[string]string) { + o.Var = &v +} + +func (o EnvironmentVariables) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentVariables) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Var) { + toSerialize["var"] = o.Var + } + return toSerialize, nil +} + +type NullableEnvironmentVariables struct { + value *EnvironmentVariables + isSet bool +} + +func (v NullableEnvironmentVariables) Get() *EnvironmentVariables { + return v.value +} + +func (v *NullableEnvironmentVariables) Set(val *EnvironmentVariables) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentVariables) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentVariables) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentVariables(val *EnvironmentVariables) *NullableEnvironmentVariables { + return &NullableEnvironmentVariables{value: val, isSet: true} +} + +func (v NullableEnvironmentVariables) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentVariables) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_environment_variables_links.go b/model_environment_variables_links.go new file mode 100644 index 0000000..567d6b1 --- /dev/null +++ b/model_environment_variables_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the EnvironmentVariablesLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentVariablesLinks{} + +// EnvironmentVariablesLinks struct for EnvironmentVariablesLinks +type EnvironmentVariablesLinks struct { + App *Get200ResponseLinksLogCache `json:"app,omitempty"` + Revision *Get200ResponseLinksLogCache `json:"revision,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` +} + +// NewEnvironmentVariablesLinks instantiates a new EnvironmentVariablesLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnvironmentVariablesLinks() *EnvironmentVariablesLinks { + this := EnvironmentVariablesLinks{} + return &this +} + +// NewEnvironmentVariablesLinksWithDefaults instantiates a new EnvironmentVariablesLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnvironmentVariablesLinksWithDefaults() *EnvironmentVariablesLinks { + this := EnvironmentVariablesLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *EnvironmentVariablesLinks) GetApp() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.App) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariablesLinks) GetAppOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *EnvironmentVariablesLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given Get200ResponseLinksLogCache and assigns it to the App field. +func (o *EnvironmentVariablesLinks) SetApp(v Get200ResponseLinksLogCache) { + o.App = &v +} + +// GetRevision returns the Revision field value if set, zero value otherwise. +func (o *EnvironmentVariablesLinks) GetRevision() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Revision) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariablesLinks) GetRevisionOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Revision) { + return nil, false + } + return o.Revision, true +} + +// HasRevision returns a boolean if a field has been set. +func (o *EnvironmentVariablesLinks) HasRevision() bool { + if o != nil && !IsNil(o.Revision) { + return true + } + + return false +} + +// SetRevision gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Revision field. +func (o *EnvironmentVariablesLinks) SetRevision(v Get200ResponseLinksLogCache) { + o.Revision = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *EnvironmentVariablesLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentVariablesLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *EnvironmentVariablesLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *EnvironmentVariablesLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +func (o EnvironmentVariablesLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentVariablesLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Revision) { + toSerialize["revision"] = o.Revision + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableEnvironmentVariablesLinks struct { + value *EnvironmentVariablesLinks + isSet bool +} + +func (v NullableEnvironmentVariablesLinks) Get() *EnvironmentVariablesLinks { + return v.value +} + +func (v *NullableEnvironmentVariablesLinks) Set(val *EnvironmentVariablesLinks) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentVariablesLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentVariablesLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentVariablesLinks(val *EnvironmentVariablesLinks) *NullableEnvironmentVariablesLinks { + return &NullableEnvironmentVariablesLinks{value: val, isSet: true} +} + +func (v NullableEnvironmentVariablesLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentVariablesLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_feature_flag.go b/model_feature_flag.go new file mode 100644 index 0000000..82335f6 --- /dev/null +++ b/model_feature_flag.go @@ -0,0 +1,271 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the FeatureFlag type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FeatureFlag{} + +// FeatureFlag struct for FeatureFlag +type FeatureFlag struct { + CustomErrorMessage *string `json:"custom_error_message,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Links *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewFeatureFlag instantiates a new FeatureFlag object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFeatureFlag() *FeatureFlag { + this := FeatureFlag{} + return &this +} + +// NewFeatureFlagWithDefaults instantiates a new FeatureFlag object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFeatureFlagWithDefaults() *FeatureFlag { + this := FeatureFlag{} + return &this +} + +// GetCustomErrorMessage returns the CustomErrorMessage field value if set, zero value otherwise. +func (o *FeatureFlag) GetCustomErrorMessage() string { + if o == nil || IsNil(o.CustomErrorMessage) { + var ret string + return ret + } + return *o.CustomErrorMessage +} + +// GetCustomErrorMessageOk returns a tuple with the CustomErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlag) GetCustomErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.CustomErrorMessage) { + return nil, false + } + return o.CustomErrorMessage, true +} + +// HasCustomErrorMessage returns a boolean if a field has been set. +func (o *FeatureFlag) HasCustomErrorMessage() bool { + if o != nil && !IsNil(o.CustomErrorMessage) { + return true + } + + return false +} + +// SetCustomErrorMessage gets a reference to the given string and assigns it to the CustomErrorMessage field. +func (o *FeatureFlag) SetCustomErrorMessage(v string) { + o.CustomErrorMessage = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *FeatureFlag) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlag) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *FeatureFlag) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *FeatureFlag) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *FeatureFlag) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlag) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *FeatureFlag) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks and assigns it to the Links field. +func (o *FeatureFlag) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FeatureFlag) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlag) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FeatureFlag) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FeatureFlag) SetName(v string) { + o.Name = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FeatureFlag) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlag) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *FeatureFlag) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *FeatureFlag) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FeatureFlag) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FeatureFlag) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomErrorMessage) { + toSerialize["custom_error_message"] = o.CustomErrorMessage + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableFeatureFlag struct { + value *FeatureFlag + isSet bool +} + +func (v NullableFeatureFlag) Get() *FeatureFlag { + return v.value +} + +func (v *NullableFeatureFlag) Set(val *FeatureFlag) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureFlag) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureFlag) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureFlag(val *FeatureFlag) *NullableFeatureFlag { + return &NullableFeatureFlag{value: val, isSet: true} +} + +func (v NullableFeatureFlag) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureFlag) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_health_check.go b/model_health_check.go new file mode 100644 index 0000000..9f18567 --- /dev/null +++ b/model_health_check.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the HealthCheck type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HealthCheck{} + +// HealthCheck struct for HealthCheck +type HealthCheck struct { + Data *HealthCheckData `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewHealthCheck instantiates a new HealthCheck object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHealthCheck() *HealthCheck { + this := HealthCheck{} + return &this +} + +// NewHealthCheckWithDefaults instantiates a new HealthCheck object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHealthCheckWithDefaults() *HealthCheck { + this := HealthCheck{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HealthCheck) GetData() HealthCheckData { + if o == nil || IsNil(o.Data) { + var ret HealthCheckData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HealthCheck) GetDataOk() (*HealthCheckData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HealthCheck) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given HealthCheckData and assigns it to the Data field. +func (o *HealthCheck) SetData(v HealthCheckData) { + o.Data = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *HealthCheck) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HealthCheck) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *HealthCheck) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *HealthCheck) SetType(v string) { + o.Type = &v +} + +func (o HealthCheck) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HealthCheck) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableHealthCheck struct { + value *HealthCheck + isSet bool +} + +func (v NullableHealthCheck) Get() *HealthCheck { + return v.value +} + +func (v *NullableHealthCheck) Set(val *HealthCheck) { + v.value = val + v.isSet = true +} + +func (v NullableHealthCheck) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthCheck) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthCheck(val *HealthCheck) *NullableHealthCheck { + return &NullableHealthCheck{value: val, isSet: true} +} + +func (v NullableHealthCheck) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthCheck) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_health_check_data.go b/model_health_check_data.go new file mode 100644 index 0000000..dd62e13 --- /dev/null +++ b/model_health_check_data.go @@ -0,0 +1,274 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the HealthCheckData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HealthCheckData{} + +// HealthCheckData struct for HealthCheckData +type HealthCheckData struct { + Endpoint NullableString `json:"endpoint,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + InvocationTimeout NullableInt32 `json:"invocation_timeout,omitempty"` + Timeout NullableInt32 `json:"timeout,omitempty"` +} + +// NewHealthCheckData instantiates a new HealthCheckData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHealthCheckData() *HealthCheckData { + this := HealthCheckData{} + return &this +} + +// NewHealthCheckDataWithDefaults instantiates a new HealthCheckData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHealthCheckDataWithDefaults() *HealthCheckData { + this := HealthCheckData{} + return &this +} + +// GetEndpoint returns the Endpoint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HealthCheckData) GetEndpoint() string { + if o == nil || IsNil(o.Endpoint.Get()) { + var ret string + return ret + } + return *o.Endpoint.Get() +} + +// GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HealthCheckData) GetEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Endpoint.Get(), o.Endpoint.IsSet() +} + +// HasEndpoint returns a boolean if a field has been set. +func (o *HealthCheckData) HasEndpoint() bool { + if o != nil && o.Endpoint.IsSet() { + return true + } + + return false +} + +// SetEndpoint gets a reference to the given NullableString and assigns it to the Endpoint field. +func (o *HealthCheckData) SetEndpoint(v string) { + o.Endpoint.Set(&v) +} +// SetEndpointNil sets the value for Endpoint to be an explicit nil +func (o *HealthCheckData) SetEndpointNil() { + o.Endpoint.Set(nil) +} + +// UnsetEndpoint ensures that no value is present for Endpoint, not even an explicit nil +func (o *HealthCheckData) UnsetEndpoint() { + o.Endpoint.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HealthCheckData) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HealthCheckData) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *HealthCheckData) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *HealthCheckData) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *HealthCheckData) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *HealthCheckData) UnsetInterval() { + o.Interval.Unset() +} + +// GetInvocationTimeout returns the InvocationTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HealthCheckData) GetInvocationTimeout() int32 { + if o == nil || IsNil(o.InvocationTimeout.Get()) { + var ret int32 + return ret + } + return *o.InvocationTimeout.Get() +} + +// GetInvocationTimeoutOk returns a tuple with the InvocationTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HealthCheckData) GetInvocationTimeoutOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InvocationTimeout.Get(), o.InvocationTimeout.IsSet() +} + +// HasInvocationTimeout returns a boolean if a field has been set. +func (o *HealthCheckData) HasInvocationTimeout() bool { + if o != nil && o.InvocationTimeout.IsSet() { + return true + } + + return false +} + +// SetInvocationTimeout gets a reference to the given NullableInt32 and assigns it to the InvocationTimeout field. +func (o *HealthCheckData) SetInvocationTimeout(v int32) { + o.InvocationTimeout.Set(&v) +} +// SetInvocationTimeoutNil sets the value for InvocationTimeout to be an explicit nil +func (o *HealthCheckData) SetInvocationTimeoutNil() { + o.InvocationTimeout.Set(nil) +} + +// UnsetInvocationTimeout ensures that no value is present for InvocationTimeout, not even an explicit nil +func (o *HealthCheckData) UnsetInvocationTimeout() { + o.InvocationTimeout.Unset() +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HealthCheckData) GetTimeout() int32 { + if o == nil || IsNil(o.Timeout.Get()) { + var ret int32 + return ret + } + return *o.Timeout.Get() +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HealthCheckData) GetTimeoutOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Timeout.Get(), o.Timeout.IsSet() +} + +// HasTimeout returns a boolean if a field has been set. +func (o *HealthCheckData) HasTimeout() bool { + if o != nil && o.Timeout.IsSet() { + return true + } + + return false +} + +// SetTimeout gets a reference to the given NullableInt32 and assigns it to the Timeout field. +func (o *HealthCheckData) SetTimeout(v int32) { + o.Timeout.Set(&v) +} +// SetTimeoutNil sets the value for Timeout to be an explicit nil +func (o *HealthCheckData) SetTimeoutNil() { + o.Timeout.Set(nil) +} + +// UnsetTimeout ensures that no value is present for Timeout, not even an explicit nil +func (o *HealthCheckData) UnsetTimeout() { + o.Timeout.Unset() +} + +func (o HealthCheckData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HealthCheckData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Endpoint.IsSet() { + toSerialize["endpoint"] = o.Endpoint.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + if o.InvocationTimeout.IsSet() { + toSerialize["invocation_timeout"] = o.InvocationTimeout.Get() + } + if o.Timeout.IsSet() { + toSerialize["timeout"] = o.Timeout.Get() + } + return toSerialize, nil +} + +type NullableHealthCheckData struct { + value *HealthCheckData + isSet bool +} + +func (v NullableHealthCheckData) Get() *HealthCheckData { + return v.value +} + +func (v *NullableHealthCheckData) Set(val *HealthCheckData) { + v.value = val + v.isSet = true +} + +func (v NullableHealthCheckData) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthCheckData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthCheckData(val *HealthCheckData) *NullableHealthCheckData { + return &NullableHealthCheckData{value: val, isSet: true} +} + +func (v NullableHealthCheckData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthCheckData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_isolation_segment.go b/model_isolation_segment.go new file mode 100644 index 0000000..5a6005e --- /dev/null +++ b/model_isolation_segment.go @@ -0,0 +1,307 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the IsolationSegment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IsolationSegment{} + +// IsolationSegment struct for IsolationSegment +type IsolationSegment struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *IsolationSegmentLinks `json:"links,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewIsolationSegment instantiates a new IsolationSegment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIsolationSegment() *IsolationSegment { + this := IsolationSegment{} + return &this +} + +// NewIsolationSegmentWithDefaults instantiates a new IsolationSegment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIsolationSegmentWithDefaults() *IsolationSegment { + this := IsolationSegment{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *IsolationSegment) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *IsolationSegment) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *IsolationSegment) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *IsolationSegment) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *IsolationSegment) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *IsolationSegment) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *IsolationSegment) GetLinks() IsolationSegmentLinks { + if o == nil || IsNil(o.Links) { + var ret IsolationSegmentLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetLinksOk() (*IsolationSegmentLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *IsolationSegment) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given IsolationSegmentLinks and assigns it to the Links field. +func (o *IsolationSegment) SetLinks(v IsolationSegmentLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *IsolationSegment) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *IsolationSegment) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *IsolationSegment) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *IsolationSegment) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *IsolationSegment) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *IsolationSegment) SetName(v string) { + o.Name = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *IsolationSegment) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegment) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *IsolationSegment) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *IsolationSegment) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o IsolationSegment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IsolationSegment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableIsolationSegment struct { + value *IsolationSegment + isSet bool +} + +func (v NullableIsolationSegment) Get() *IsolationSegment { + return v.value +} + +func (v *NullableIsolationSegment) Set(val *IsolationSegment) { + v.value = val + v.isSet = true +} + +func (v NullableIsolationSegment) IsSet() bool { + return v.isSet +} + +func (v *NullableIsolationSegment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIsolationSegment(val *IsolationSegment) *NullableIsolationSegment { + return &NullableIsolationSegment{value: val, isSet: true} +} + +func (v NullableIsolationSegment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIsolationSegment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_isolation_segment_links.go b/model_isolation_segment_links.go new file mode 100644 index 0000000..7272b35 --- /dev/null +++ b/model_isolation_segment_links.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the IsolationSegmentLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IsolationSegmentLinks{} + +// IsolationSegmentLinks struct for IsolationSegmentLinks +type IsolationSegmentLinks struct { + Organizations *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"organizations,omitempty"` + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` +} + +// NewIsolationSegmentLinks instantiates a new IsolationSegmentLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIsolationSegmentLinks() *IsolationSegmentLinks { + this := IsolationSegmentLinks{} + return &this +} + +// NewIsolationSegmentLinksWithDefaults instantiates a new IsolationSegmentLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIsolationSegmentLinksWithDefaults() *IsolationSegmentLinks { + this := IsolationSegmentLinks{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *IsolationSegmentLinks) GetOrganizations() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Organizations) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegmentLinks) GetOrganizationsOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *IsolationSegmentLinks) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Organizations field. +func (o *IsolationSegmentLinks) SetOrganizations(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Organizations = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *IsolationSegmentLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IsolationSegmentLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *IsolationSegmentLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *IsolationSegmentLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +func (o IsolationSegmentLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IsolationSegmentLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableIsolationSegmentLinks struct { + value *IsolationSegmentLinks + isSet bool +} + +func (v NullableIsolationSegmentLinks) Get() *IsolationSegmentLinks { + return v.value +} + +func (v *NullableIsolationSegmentLinks) Set(val *IsolationSegmentLinks) { + v.value = val + v.isSet = true +} + +func (v NullableIsolationSegmentLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableIsolationSegmentLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIsolationSegmentLinks(val *IsolationSegmentLinks) *NullableIsolationSegmentLinks { + return &NullableIsolationSegmentLinks{value: val, isSet: true} +} + +func (v NullableIsolationSegmentLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIsolationSegmentLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_last_operation.go b/model_last_operation.go new file mode 100644 index 0000000..c81bb54 --- /dev/null +++ b/model_last_operation.go @@ -0,0 +1,271 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the LastOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LastOperation{} + +// LastOperation struct for LastOperation +type LastOperation struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + State *string `json:"state,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewLastOperation instantiates a new LastOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLastOperation() *LastOperation { + this := LastOperation{} + return &this +} + +// NewLastOperationWithDefaults instantiates a new LastOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLastOperationWithDefaults() *LastOperation { + this := LastOperation{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *LastOperation) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LastOperation) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *LastOperation) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *LastOperation) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *LastOperation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LastOperation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *LastOperation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *LastOperation) SetDescription(v string) { + o.Description = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *LastOperation) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LastOperation) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *LastOperation) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *LastOperation) SetState(v string) { + o.State = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *LastOperation) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LastOperation) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LastOperation) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *LastOperation) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *LastOperation) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LastOperation) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *LastOperation) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *LastOperation) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o LastOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LastOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableLastOperation struct { + value *LastOperation + isSet bool +} + +func (v NullableLastOperation) Get() *LastOperation { + return v.value +} + +func (v *NullableLastOperation) Set(val *LastOperation) { + v.value = val + v.isSet = true +} + +func (v NullableLastOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableLastOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLastOperation(val *LastOperation) *NullableLastOperation { + return &NullableLastOperation{value: val, isSet: true} +} + +func (v NullableLastOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLastOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_link.go b/model_link.go new file mode 100644 index 0000000..66d2ec1 --- /dev/null +++ b/model_link.go @@ -0,0 +1,204 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the Link type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Link{} + +// Link struct for Link +type Link struct { + Href string `json:"href"` + Method NullableString `json:"method,omitempty"` +} + +type _Link Link + +// NewLink instantiates a new Link object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLink(href string) *Link { + this := Link{} + this.Href = href + return &this +} + +// NewLinkWithDefaults instantiates a new Link object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkWithDefaults() *Link { + this := Link{} + return &this +} + +// GetHref returns the Href field value +func (o *Link) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Link) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Link) SetHref(v string) { + o.Href = v +} + +// GetMethod returns the Method field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Link) GetMethod() string { + if o == nil || IsNil(o.Method.Get()) { + var ret string + return ret + } + return *o.Method.Get() +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Link) GetMethodOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Method.Get(), o.Method.IsSet() +} + +// HasMethod returns a boolean if a field has been set. +func (o *Link) HasMethod() bool { + if o != nil && o.Method.IsSet() { + return true + } + + return false +} + +// SetMethod gets a reference to the given NullableString and assigns it to the Method field. +func (o *Link) SetMethod(v string) { + o.Method.Set(&v) +} +// SetMethodNil sets the value for Method to be an explicit nil +func (o *Link) SetMethodNil() { + o.Method.Set(nil) +} + +// UnsetMethod ensures that no value is present for Method, not even an explicit nil +func (o *Link) UnsetMethod() { + o.Method.Unset() +} + +func (o Link) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Link) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["href"] = o.Href + if o.Method.IsSet() { + toSerialize["method"] = o.Method.Get() + } + return toSerialize, nil +} + +func (o *Link) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "href", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLink := _Link{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLink) + + if err != nil { + return err + } + + *o = Link(varLink) + + return err +} + +type NullableLink struct { + value *Link + isSet bool +} + +func (v NullableLink) Get() *Link { + return v.value +} + +func (v *NullableLink) Set(val *Link) { + v.value = val + v.isSet = true +} + +func (v NullableLink) IsSet() bool { + return v.isSet +} + +func (v *NullableLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLink(val *Link) *NullableLink { + return &NullableLink{value: val, isSet: true} +} + +func (v NullableLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_link_with_method.go b/model_link_with_method.go new file mode 100644 index 0000000..da4b12f --- /dev/null +++ b/model_link_with_method.go @@ -0,0 +1,186 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the LinkWithMethod type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkWithMethod{} + +// LinkWithMethod struct for LinkWithMethod +type LinkWithMethod struct { + Href string `json:"href"` + Method string `json:"method"` +} + +type _LinkWithMethod LinkWithMethod + +// NewLinkWithMethod instantiates a new LinkWithMethod object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkWithMethod(href string, method string) *LinkWithMethod { + this := LinkWithMethod{} + this.Href = href + this.Method = method + return &this +} + +// NewLinkWithMethodWithDefaults instantiates a new LinkWithMethod object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkWithMethodWithDefaults() *LinkWithMethod { + this := LinkWithMethod{} + return &this +} + +// GetHref returns the Href field value +func (o *LinkWithMethod) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *LinkWithMethod) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *LinkWithMethod) SetHref(v string) { + o.Href = v +} + +// GetMethod returns the Method field value +func (o *LinkWithMethod) GetMethod() string { + if o == nil { + var ret string + return ret + } + + return o.Method +} + +// GetMethodOk returns a tuple with the Method field value +// and a boolean to check if the value has been set. +func (o *LinkWithMethod) GetMethodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Method, true +} + +// SetMethod sets field value +func (o *LinkWithMethod) SetMethod(v string) { + o.Method = v +} + +func (o LinkWithMethod) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkWithMethod) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["href"] = o.Href + toSerialize["method"] = o.Method + return toSerialize, nil +} + +func (o *LinkWithMethod) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "href", + "method", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varLinkWithMethod := _LinkWithMethod{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varLinkWithMethod) + + if err != nil { + return err + } + + *o = LinkWithMethod(varLinkWithMethod) + + return err +} + +type NullableLinkWithMethod struct { + value *LinkWithMethod + isSet bool +} + +func (v NullableLinkWithMethod) Get() *LinkWithMethod { + return v.value +} + +func (v *NullableLinkWithMethod) Set(val *LinkWithMethod) { + v.value = val + v.isSet = true +} + +func (v NullableLinkWithMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkWithMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkWithMethod(val *LinkWithMethod) *NullableLinkWithMethod { + return &NullableLinkWithMethod{value: val, isSet: true} +} + +func (v NullableLinkWithMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkWithMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_links.go b/model_links.go new file mode 100644 index 0000000..dec144b --- /dev/null +++ b/model_links.go @@ -0,0 +1,342 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Links type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Links{} + +// Links struct for Links +type Links struct { + Parameters *Link `json:"parameters,omitempty"` + Self *Link `json:"self,omitempty"` + ServiceCredentialBindings *Link `json:"service_credential_bindings,omitempty"` + ServicePlan *Link `json:"service_plan,omitempty"` + ServiceRouteBindings *Link `json:"service_route_bindings,omitempty"` + SharedSpaces *Link `json:"shared_spaces,omitempty"` + Space *Link `json:"space,omitempty"` +} + +// NewLinks instantiates a new Links object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinks() *Links { + this := Links{} + return &this +} + +// NewLinksWithDefaults instantiates a new Links object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinksWithDefaults() *Links { + this := Links{} + return &this +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *Links) GetParameters() Link { + if o == nil || IsNil(o.Parameters) { + var ret Link + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetParametersOk() (*Link, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *Links) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given Link and assigns it to the Parameters field. +func (o *Links) SetParameters(v Link) { + o.Parameters = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *Links) GetSelf() Link { + if o == nil || IsNil(o.Self) { + var ret Link + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetSelfOk() (*Link, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *Links) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Link and assigns it to the Self field. +func (o *Links) SetSelf(v Link) { + o.Self = &v +} + +// GetServiceCredentialBindings returns the ServiceCredentialBindings field value if set, zero value otherwise. +func (o *Links) GetServiceCredentialBindings() Link { + if o == nil || IsNil(o.ServiceCredentialBindings) { + var ret Link + return ret + } + return *o.ServiceCredentialBindings +} + +// GetServiceCredentialBindingsOk returns a tuple with the ServiceCredentialBindings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetServiceCredentialBindingsOk() (*Link, bool) { + if o == nil || IsNil(o.ServiceCredentialBindings) { + return nil, false + } + return o.ServiceCredentialBindings, true +} + +// HasServiceCredentialBindings returns a boolean if a field has been set. +func (o *Links) HasServiceCredentialBindings() bool { + if o != nil && !IsNil(o.ServiceCredentialBindings) { + return true + } + + return false +} + +// SetServiceCredentialBindings gets a reference to the given Link and assigns it to the ServiceCredentialBindings field. +func (o *Links) SetServiceCredentialBindings(v Link) { + o.ServiceCredentialBindings = &v +} + +// GetServicePlan returns the ServicePlan field value if set, zero value otherwise. +func (o *Links) GetServicePlan() Link { + if o == nil || IsNil(o.ServicePlan) { + var ret Link + return ret + } + return *o.ServicePlan +} + +// GetServicePlanOk returns a tuple with the ServicePlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetServicePlanOk() (*Link, bool) { + if o == nil || IsNil(o.ServicePlan) { + return nil, false + } + return o.ServicePlan, true +} + +// HasServicePlan returns a boolean if a field has been set. +func (o *Links) HasServicePlan() bool { + if o != nil && !IsNil(o.ServicePlan) { + return true + } + + return false +} + +// SetServicePlan gets a reference to the given Link and assigns it to the ServicePlan field. +func (o *Links) SetServicePlan(v Link) { + o.ServicePlan = &v +} + +// GetServiceRouteBindings returns the ServiceRouteBindings field value if set, zero value otherwise. +func (o *Links) GetServiceRouteBindings() Link { + if o == nil || IsNil(o.ServiceRouteBindings) { + var ret Link + return ret + } + return *o.ServiceRouteBindings +} + +// GetServiceRouteBindingsOk returns a tuple with the ServiceRouteBindings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetServiceRouteBindingsOk() (*Link, bool) { + if o == nil || IsNil(o.ServiceRouteBindings) { + return nil, false + } + return o.ServiceRouteBindings, true +} + +// HasServiceRouteBindings returns a boolean if a field has been set. +func (o *Links) HasServiceRouteBindings() bool { + if o != nil && !IsNil(o.ServiceRouteBindings) { + return true + } + + return false +} + +// SetServiceRouteBindings gets a reference to the given Link and assigns it to the ServiceRouteBindings field. +func (o *Links) SetServiceRouteBindings(v Link) { + o.ServiceRouteBindings = &v +} + +// GetSharedSpaces returns the SharedSpaces field value if set, zero value otherwise. +func (o *Links) GetSharedSpaces() Link { + if o == nil || IsNil(o.SharedSpaces) { + var ret Link + return ret + } + return *o.SharedSpaces +} + +// GetSharedSpacesOk returns a tuple with the SharedSpaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetSharedSpacesOk() (*Link, bool) { + if o == nil || IsNil(o.SharedSpaces) { + return nil, false + } + return o.SharedSpaces, true +} + +// HasSharedSpaces returns a boolean if a field has been set. +func (o *Links) HasSharedSpaces() bool { + if o != nil && !IsNil(o.SharedSpaces) { + return true + } + + return false +} + +// SetSharedSpaces gets a reference to the given Link and assigns it to the SharedSpaces field. +func (o *Links) SetSharedSpaces(v Link) { + o.SharedSpaces = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *Links) GetSpace() Link { + if o == nil || IsNil(o.Space) { + var ret Link + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Links) GetSpaceOk() (*Link, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *Links) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given Link and assigns it to the Space field. +func (o *Links) SetSpace(v Link) { + o.Space = &v +} + +func (o Links) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Links) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceCredentialBindings) { + toSerialize["service_credential_bindings"] = o.ServiceCredentialBindings + } + if !IsNil(o.ServicePlan) { + toSerialize["service_plan"] = o.ServicePlan + } + if !IsNil(o.ServiceRouteBindings) { + toSerialize["service_route_bindings"] = o.ServiceRouteBindings + } + if !IsNil(o.SharedSpaces) { + toSerialize["shared_spaces"] = o.SharedSpaces + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableLinks struct { + value *Links + isSet bool +} + +func (v NullableLinks) Get() *Links { + return v.value +} + +func (v *NullableLinks) Set(val *Links) { + v.value = val + v.isSet = true +} + +func (v NullableLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinks(val *Links) *NullableLinks { + return &NullableLinks{value: val, isSet: true} +} + +func (v NullableLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_organization_quotas_200_response.go b/model_list_organization_quotas_200_response.go new file mode 100644 index 0000000..0d16c8e --- /dev/null +++ b/model_list_organization_quotas_200_response.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ListOrganizationQuotas200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrganizationQuotas200Response{} + +// ListOrganizationQuotas200Response struct for ListOrganizationQuotas200Response +type ListOrganizationQuotas200Response struct { + Pagination *ListOrganizationQuotas200ResponsePagination `json:"pagination,omitempty"` + Resources []OrganizationQuota `json:"resources,omitempty"` +} + +// NewListOrganizationQuotas200Response instantiates a new ListOrganizationQuotas200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListOrganizationQuotas200Response() *ListOrganizationQuotas200Response { + this := ListOrganizationQuotas200Response{} + return &this +} + +// NewListOrganizationQuotas200ResponseWithDefaults instantiates a new ListOrganizationQuotas200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListOrganizationQuotas200ResponseWithDefaults() *ListOrganizationQuotas200Response { + this := ListOrganizationQuotas200Response{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200Response) GetPagination() ListOrganizationQuotas200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret ListOrganizationQuotas200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200Response) GetPaginationOk() (*ListOrganizationQuotas200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200Response) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given ListOrganizationQuotas200ResponsePagination and assigns it to the Pagination field. +func (o *ListOrganizationQuotas200Response) SetPagination(v ListOrganizationQuotas200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200Response) GetResources() []OrganizationQuota { + if o == nil || IsNil(o.Resources) { + var ret []OrganizationQuota + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200Response) GetResourcesOk() ([]OrganizationQuota, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200Response) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []OrganizationQuota and assigns it to the Resources field. +func (o *ListOrganizationQuotas200Response) SetResources(v []OrganizationQuota) { + o.Resources = v +} + +func (o ListOrganizationQuotas200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrganizationQuotas200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableListOrganizationQuotas200Response struct { + value *ListOrganizationQuotas200Response + isSet bool +} + +func (v NullableListOrganizationQuotas200Response) Get() *ListOrganizationQuotas200Response { + return v.value +} + +func (v *NullableListOrganizationQuotas200Response) Set(val *ListOrganizationQuotas200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListOrganizationQuotas200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrganizationQuotas200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrganizationQuotas200Response(val *ListOrganizationQuotas200Response) *NullableListOrganizationQuotas200Response { + return &NullableListOrganizationQuotas200Response{value: val, isSet: true} +} + +func (v NullableListOrganizationQuotas200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrganizationQuotas200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_organization_quotas_200_response_pagination.go b/model_list_organization_quotas_200_response_pagination.go new file mode 100644 index 0000000..78d58cc --- /dev/null +++ b/model_list_organization_quotas_200_response_pagination.go @@ -0,0 +1,326 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ListOrganizationQuotas200ResponsePagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrganizationQuotas200ResponsePagination{} + +// ListOrganizationQuotas200ResponsePagination struct for ListOrganizationQuotas200ResponsePagination +type ListOrganizationQuotas200ResponsePagination struct { + First *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"first,omitempty"` + Last *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"last,omitempty"` + Next NullableListOrganizationQuotas200ResponsePaginationNext `json:"next,omitempty"` + Previous NullableListOrganizationQuotas200ResponsePaginationNext `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewListOrganizationQuotas200ResponsePagination instantiates a new ListOrganizationQuotas200ResponsePagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListOrganizationQuotas200ResponsePagination() *ListOrganizationQuotas200ResponsePagination { + this := ListOrganizationQuotas200ResponsePagination{} + return &this +} + +// NewListOrganizationQuotas200ResponsePaginationWithDefaults instantiates a new ListOrganizationQuotas200ResponsePagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListOrganizationQuotas200ResponsePaginationWithDefaults() *ListOrganizationQuotas200ResponsePagination { + this := ListOrganizationQuotas200ResponsePagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200ResponsePagination) GetFirst() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.First) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200ResponsePagination) GetFirstOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the First field. +func (o *ListOrganizationQuotas200ResponsePagination) SetFirst(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200ResponsePagination) GetLast() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Last) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200ResponsePagination) GetLastOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Last field. +func (o *ListOrganizationQuotas200ResponsePagination) SetLast(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListOrganizationQuotas200ResponsePagination) GetNext() ListOrganizationQuotas200ResponsePaginationNext { + if o == nil || IsNil(o.Next.Get()) { + var ret ListOrganizationQuotas200ResponsePaginationNext + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ListOrganizationQuotas200ResponsePagination) GetNextOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableListOrganizationQuotas200ResponsePaginationNext and assigns it to the Next field. +func (o *ListOrganizationQuotas200ResponsePagination) SetNext(v ListOrganizationQuotas200ResponsePaginationNext) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *ListOrganizationQuotas200ResponsePagination) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *ListOrganizationQuotas200ResponsePagination) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListOrganizationQuotas200ResponsePagination) GetPrevious() ListOrganizationQuotas200ResponsePaginationNext { + if o == nil || IsNil(o.Previous.Get()) { + var ret ListOrganizationQuotas200ResponsePaginationNext + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ListOrganizationQuotas200ResponsePagination) GetPreviousOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableListOrganizationQuotas200ResponsePaginationNext and assigns it to the Previous field. +func (o *ListOrganizationQuotas200ResponsePagination) SetPrevious(v ListOrganizationQuotas200ResponsePaginationNext) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *ListOrganizationQuotas200ResponsePagination) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *ListOrganizationQuotas200ResponsePagination) UnsetPrevious() { + o.Previous.Unset() +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200ResponsePagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200ResponsePagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *ListOrganizationQuotas200ResponsePagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200ResponsePagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200ResponsePagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *ListOrganizationQuotas200ResponsePagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o ListOrganizationQuotas200ResponsePagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrganizationQuotas200ResponsePagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableListOrganizationQuotas200ResponsePagination struct { + value *ListOrganizationQuotas200ResponsePagination + isSet bool +} + +func (v NullableListOrganizationQuotas200ResponsePagination) Get() *ListOrganizationQuotas200ResponsePagination { + return v.value +} + +func (v *NullableListOrganizationQuotas200ResponsePagination) Set(val *ListOrganizationQuotas200ResponsePagination) { + v.value = val + v.isSet = true +} + +func (v NullableListOrganizationQuotas200ResponsePagination) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrganizationQuotas200ResponsePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrganizationQuotas200ResponsePagination(val *ListOrganizationQuotas200ResponsePagination) *NullableListOrganizationQuotas200ResponsePagination { + return &NullableListOrganizationQuotas200ResponsePagination{value: val, isSet: true} +} + +func (v NullableListOrganizationQuotas200ResponsePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrganizationQuotas200ResponsePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_organization_quotas_200_response_pagination_next.go b/model_list_organization_quotas_200_response_pagination_next.go new file mode 100644 index 0000000..211137a --- /dev/null +++ b/model_list_organization_quotas_200_response_pagination_next.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ListOrganizationQuotas200ResponsePaginationNext type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrganizationQuotas200ResponsePaginationNext{} + +// ListOrganizationQuotas200ResponsePaginationNext struct for ListOrganizationQuotas200ResponsePaginationNext +type ListOrganizationQuotas200ResponsePaginationNext struct { + Href *string `json:"href,omitempty"` +} + +// NewListOrganizationQuotas200ResponsePaginationNext instantiates a new ListOrganizationQuotas200ResponsePaginationNext object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListOrganizationQuotas200ResponsePaginationNext() *ListOrganizationQuotas200ResponsePaginationNext { + this := ListOrganizationQuotas200ResponsePaginationNext{} + return &this +} + +// NewListOrganizationQuotas200ResponsePaginationNextWithDefaults instantiates a new ListOrganizationQuotas200ResponsePaginationNext object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListOrganizationQuotas200ResponsePaginationNextWithDefaults() *ListOrganizationQuotas200ResponsePaginationNext { + this := ListOrganizationQuotas200ResponsePaginationNext{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ListOrganizationQuotas200ResponsePaginationNext) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrganizationQuotas200ResponsePaginationNext) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ListOrganizationQuotas200ResponsePaginationNext) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ListOrganizationQuotas200ResponsePaginationNext) SetHref(v string) { + o.Href = &v +} + +func (o ListOrganizationQuotas200ResponsePaginationNext) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrganizationQuotas200ResponsePaginationNext) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableListOrganizationQuotas200ResponsePaginationNext struct { + value *ListOrganizationQuotas200ResponsePaginationNext + isSet bool +} + +func (v NullableListOrganizationQuotas200ResponsePaginationNext) Get() *ListOrganizationQuotas200ResponsePaginationNext { + return v.value +} + +func (v *NullableListOrganizationQuotas200ResponsePaginationNext) Set(val *ListOrganizationQuotas200ResponsePaginationNext) { + v.value = val + v.isSet = true +} + +func (v NullableListOrganizationQuotas200ResponsePaginationNext) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrganizationQuotas200ResponsePaginationNext) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrganizationQuotas200ResponsePaginationNext(val *ListOrganizationQuotas200ResponsePaginationNext) *NullableListOrganizationQuotas200ResponsePaginationNext { + return &NullableListOrganizationQuotas200ResponsePaginationNext{value: val, isSet: true} +} + +func (v NullableListOrganizationQuotas200ResponsePaginationNext) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrganizationQuotas200ResponsePaginationNext) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_maintenance_info.go b/model_maintenance_info.go new file mode 100644 index 0000000..9538d38 --- /dev/null +++ b/model_maintenance_info.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the MaintenanceInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MaintenanceInfo{} + +// MaintenanceInfo struct for MaintenanceInfo +type MaintenanceInfo struct { + Description *string `json:"description,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewMaintenanceInfo instantiates a new MaintenanceInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMaintenanceInfo() *MaintenanceInfo { + this := MaintenanceInfo{} + return &this +} + +// NewMaintenanceInfoWithDefaults instantiates a new MaintenanceInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMaintenanceInfoWithDefaults() *MaintenanceInfo { + this := MaintenanceInfo{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *MaintenanceInfo) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MaintenanceInfo) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *MaintenanceInfo) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *MaintenanceInfo) SetDescription(v string) { + o.Description = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *MaintenanceInfo) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MaintenanceInfo) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *MaintenanceInfo) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *MaintenanceInfo) SetVersion(v string) { + o.Version = &v +} + +func (o MaintenanceInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MaintenanceInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableMaintenanceInfo struct { + value *MaintenanceInfo + isSet bool +} + +func (v NullableMaintenanceInfo) Get() *MaintenanceInfo { + return v.value +} + +func (v *NullableMaintenanceInfo) Set(val *MaintenanceInfo) { + v.value = val + v.isSet = true +} + +func (v NullableMaintenanceInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableMaintenanceInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMaintenanceInfo(val *MaintenanceInfo) *NullableMaintenanceInfo { + return &NullableMaintenanceInfo{value: val, isSet: true} +} + +func (v NullableMaintenanceInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMaintenanceInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_managed_service_instance_update.go b/model_managed_service_instance_update.go new file mode 100644 index 0000000..9681dcb --- /dev/null +++ b/model_managed_service_instance_update.go @@ -0,0 +1,306 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ManagedServiceInstanceUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ManagedServiceInstanceUpdate{} + +// ManagedServiceInstanceUpdate struct for ManagedServiceInstanceUpdate +type ManagedServiceInstanceUpdate struct { + MaintenanceInfo *Get200ResponseLinksCloudControllerV2Meta `json:"maintenance_info,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` + Relationships *ManagedServiceInstanceUpdateRelationships `json:"relationships,omitempty"` + Tags []string `json:"tags,omitempty"` +} + +// NewManagedServiceInstanceUpdate instantiates a new ManagedServiceInstanceUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewManagedServiceInstanceUpdate() *ManagedServiceInstanceUpdate { + this := ManagedServiceInstanceUpdate{} + return &this +} + +// NewManagedServiceInstanceUpdateWithDefaults instantiates a new ManagedServiceInstanceUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewManagedServiceInstanceUpdateWithDefaults() *ManagedServiceInstanceUpdate { + this := ManagedServiceInstanceUpdate{} + return &this +} + +// GetMaintenanceInfo returns the MaintenanceInfo field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetMaintenanceInfo() Get200ResponseLinksCloudControllerV2Meta { + if o == nil || IsNil(o.MaintenanceInfo) { + var ret Get200ResponseLinksCloudControllerV2Meta + return ret + } + return *o.MaintenanceInfo +} + +// GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetMaintenanceInfoOk() (*Get200ResponseLinksCloudControllerV2Meta, bool) { + if o == nil || IsNil(o.MaintenanceInfo) { + return nil, false + } + return o.MaintenanceInfo, true +} + +// HasMaintenanceInfo returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasMaintenanceInfo() bool { + if o != nil && !IsNil(o.MaintenanceInfo) { + return true + } + + return false +} + +// SetMaintenanceInfo gets a reference to the given Get200ResponseLinksCloudControllerV2Meta and assigns it to the MaintenanceInfo field. +func (o *ManagedServiceInstanceUpdate) SetMaintenanceInfo(v Get200ResponseLinksCloudControllerV2Meta) { + o.MaintenanceInfo = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ManagedServiceInstanceUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ManagedServiceInstanceUpdate) SetName(v string) { + o.Name = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetParameters() map[string]interface{} { + if o == nil || IsNil(o.Parameters) { + var ret map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetParametersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field. +func (o *ManagedServiceInstanceUpdate) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetRelationships() ManagedServiceInstanceUpdateRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ManagedServiceInstanceUpdateRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetRelationshipsOk() (*ManagedServiceInstanceUpdateRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ManagedServiceInstanceUpdateRelationships and assigns it to the Relationships field. +func (o *ManagedServiceInstanceUpdate) SetRelationships(v ManagedServiceInstanceUpdateRelationships) { + o.Relationships = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdate) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdate) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ManagedServiceInstanceUpdate) SetTags(v []string) { + o.Tags = v +} + +func (o ManagedServiceInstanceUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ManagedServiceInstanceUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MaintenanceInfo) { + toSerialize["maintenance_info"] = o.MaintenanceInfo + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableManagedServiceInstanceUpdate struct { + value *ManagedServiceInstanceUpdate + isSet bool +} + +func (v NullableManagedServiceInstanceUpdate) Get() *ManagedServiceInstanceUpdate { + return v.value +} + +func (v *NullableManagedServiceInstanceUpdate) Set(val *ManagedServiceInstanceUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableManagedServiceInstanceUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableManagedServiceInstanceUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableManagedServiceInstanceUpdate(val *ManagedServiceInstanceUpdate) *NullableManagedServiceInstanceUpdate { + return &NullableManagedServiceInstanceUpdate{value: val, isSet: true} +} + +func (v NullableManagedServiceInstanceUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableManagedServiceInstanceUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_managed_service_instance_update_relationships.go b/model_managed_service_instance_update_relationships.go new file mode 100644 index 0000000..a3e6f55 --- /dev/null +++ b/model_managed_service_instance_update_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ManagedServiceInstanceUpdateRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ManagedServiceInstanceUpdateRelationships{} + +// ManagedServiceInstanceUpdateRelationships struct for ManagedServiceInstanceUpdateRelationships +type ManagedServiceInstanceUpdateRelationships struct { + ServicePlan *ToOneRelationship `json:"service_plan,omitempty"` +} + +// NewManagedServiceInstanceUpdateRelationships instantiates a new ManagedServiceInstanceUpdateRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewManagedServiceInstanceUpdateRelationships() *ManagedServiceInstanceUpdateRelationships { + this := ManagedServiceInstanceUpdateRelationships{} + return &this +} + +// NewManagedServiceInstanceUpdateRelationshipsWithDefaults instantiates a new ManagedServiceInstanceUpdateRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewManagedServiceInstanceUpdateRelationshipsWithDefaults() *ManagedServiceInstanceUpdateRelationships { + this := ManagedServiceInstanceUpdateRelationships{} + return &this +} + +// GetServicePlan returns the ServicePlan field value if set, zero value otherwise. +func (o *ManagedServiceInstanceUpdateRelationships) GetServicePlan() ToOneRelationship { + if o == nil || IsNil(o.ServicePlan) { + var ret ToOneRelationship + return ret + } + return *o.ServicePlan +} + +// GetServicePlanOk returns a tuple with the ServicePlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManagedServiceInstanceUpdateRelationships) GetServicePlanOk() (*ToOneRelationship, bool) { + if o == nil || IsNil(o.ServicePlan) { + return nil, false + } + return o.ServicePlan, true +} + +// HasServicePlan returns a boolean if a field has been set. +func (o *ManagedServiceInstanceUpdateRelationships) HasServicePlan() bool { + if o != nil && !IsNil(o.ServicePlan) { + return true + } + + return false +} + +// SetServicePlan gets a reference to the given ToOneRelationship and assigns it to the ServicePlan field. +func (o *ManagedServiceInstanceUpdateRelationships) SetServicePlan(v ToOneRelationship) { + o.ServicePlan = &v +} + +func (o ManagedServiceInstanceUpdateRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ManagedServiceInstanceUpdateRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServicePlan) { + toSerialize["service_plan"] = o.ServicePlan + } + return toSerialize, nil +} + +type NullableManagedServiceInstanceUpdateRelationships struct { + value *ManagedServiceInstanceUpdateRelationships + isSet bool +} + +func (v NullableManagedServiceInstanceUpdateRelationships) Get() *ManagedServiceInstanceUpdateRelationships { + return v.value +} + +func (v *NullableManagedServiceInstanceUpdateRelationships) Set(val *ManagedServiceInstanceUpdateRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableManagedServiceInstanceUpdateRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableManagedServiceInstanceUpdateRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableManagedServiceInstanceUpdateRelationships(val *ManagedServiceInstanceUpdateRelationships) *NullableManagedServiceInstanceUpdateRelationships { + return &NullableManagedServiceInstanceUpdateRelationships{value: val, isSet: true} +} + +func (v NullableManagedServiceInstanceUpdateRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableManagedServiceInstanceUpdateRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_metadata.go b/model_metadata.go new file mode 100644 index 0000000..5f27e33 --- /dev/null +++ b/model_metadata.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Metadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Metadata{} + +// Metadata struct for Metadata +type Metadata struct { + Annotations map[string]interface{} `json:"annotations,omitempty"` + Labels map[string]interface{} `json:"labels,omitempty"` +} + +// NewMetadata instantiates a new Metadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetadata() *Metadata { + this := Metadata{} + return &this +} + +// NewMetadataWithDefaults instantiates a new Metadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetadataWithDefaults() *Metadata { + this := Metadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *Metadata) GetAnnotations() map[string]interface{} { + if o == nil || IsNil(o.Annotations) { + var ret map[string]interface{} + return ret + } + return o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetAnnotationsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Annotations) { + return map[string]interface{}{}, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *Metadata) HasAnnotations() bool { + if o != nil && !IsNil(o.Annotations) { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]interface{} and assigns it to the Annotations field. +func (o *Metadata) SetAnnotations(v map[string]interface{}) { + o.Annotations = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *Metadata) GetLabels() map[string]interface{} { + if o == nil || IsNil(o.Labels) { + var ret map[string]interface{} + return ret + } + return o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metadata) GetLabelsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Labels) { + return map[string]interface{}{}, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *Metadata) HasLabels() bool { + if o != nil && !IsNil(o.Labels) { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]interface{} and assigns it to the Labels field. +func (o *Metadata) SetLabels(v map[string]interface{}) { + o.Labels = v +} + +func (o Metadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Metadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Annotations) { + toSerialize["annotations"] = o.Annotations + } + if !IsNil(o.Labels) { + toSerialize["labels"] = o.Labels + } + return toSerialize, nil +} + +type NullableMetadata struct { + value *Metadata + isSet bool +} + +func (v NullableMetadata) Get() *Metadata { + return v.value +} + +func (v *NullableMetadata) Set(val *Metadata) { + v.value = val + v.isSet = true +} + +func (v NullableMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadata(val *Metadata) *NullableMetadata { + return &NullableMetadata{value: val, isSet: true} +} + +func (v NullableMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization.go b/model_organization.go new file mode 100644 index 0000000..85e83e9 --- /dev/null +++ b/model_organization.go @@ -0,0 +1,379 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Organization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Organization{} + +// Organization struct for Organization +type Organization struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *OrganizationLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *OrganizationRelationships `json:"relationships,omitempty"` + Suspended *bool `json:"suspended,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewOrganization instantiates a new Organization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganization() *Organization { + this := Organization{} + return &this +} + +// NewOrganizationWithDefaults instantiates a new Organization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationWithDefaults() *Organization { + this := Organization{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Organization) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Organization) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Organization) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Organization) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Organization) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Organization) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Organization) GetLinks() OrganizationLinks { + if o == nil || IsNil(o.Links) { + var ret OrganizationLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetLinksOk() (*OrganizationLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Organization) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given OrganizationLinks and assigns it to the Links field. +func (o *Organization) SetLinks(v OrganizationLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Organization) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Organization) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Organization) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Organization) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Organization) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Organization) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Organization) GetRelationships() OrganizationRelationships { + if o == nil || IsNil(o.Relationships) { + var ret OrganizationRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetRelationshipsOk() (*OrganizationRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Organization) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given OrganizationRelationships and assigns it to the Relationships field. +func (o *Organization) SetRelationships(v OrganizationRelationships) { + o.Relationships = &v +} + +// GetSuspended returns the Suspended field value if set, zero value otherwise. +func (o *Organization) GetSuspended() bool { + if o == nil || IsNil(o.Suspended) { + var ret bool + return ret + } + return *o.Suspended +} + +// GetSuspendedOk returns a tuple with the Suspended field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetSuspendedOk() (*bool, bool) { + if o == nil || IsNil(o.Suspended) { + return nil, false + } + return o.Suspended, true +} + +// HasSuspended returns a boolean if a field has been set. +func (o *Organization) HasSuspended() bool { + if o != nil && !IsNil(o.Suspended) { + return true + } + + return false +} + +// SetSuspended gets a reference to the given bool and assigns it to the Suspended field. +func (o *Organization) SetSuspended(v bool) { + o.Suspended = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Organization) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Organization) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Organization) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Organization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Organization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Suspended) { + toSerialize["suspended"] = o.Suspended + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableOrganization struct { + value *Organization + isSet bool +} + +func (v NullableOrganization) Get() *Organization { + return v.value +} + +func (v *NullableOrganization) Set(val *Organization) { + v.value = val + v.isSet = true +} + +func (v NullableOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganization(val *Organization) *NullableOrganization { + return &NullableOrganization{value: val, isSet: true} +} + +func (v NullableOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_links.go b/model_organization_links.go new file mode 100644 index 0000000..c3d5f8f --- /dev/null +++ b/model_organization_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the OrganizationLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationLinks{} + +// OrganizationLinks struct for OrganizationLinks +type OrganizationLinks struct { + DefaultDomain *string `json:"default_domain,omitempty"` + Domains *string `json:"domains,omitempty"` + Quota *string `json:"quota,omitempty"` + Self *string `json:"self,omitempty"` +} + +// NewOrganizationLinks instantiates a new OrganizationLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationLinks() *OrganizationLinks { + this := OrganizationLinks{} + return &this +} + +// NewOrganizationLinksWithDefaults instantiates a new OrganizationLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationLinksWithDefaults() *OrganizationLinks { + this := OrganizationLinks{} + return &this +} + +// GetDefaultDomain returns the DefaultDomain field value if set, zero value otherwise. +func (o *OrganizationLinks) GetDefaultDomain() string { + if o == nil || IsNil(o.DefaultDomain) { + var ret string + return ret + } + return *o.DefaultDomain +} + +// GetDefaultDomainOk returns a tuple with the DefaultDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationLinks) GetDefaultDomainOk() (*string, bool) { + if o == nil || IsNil(o.DefaultDomain) { + return nil, false + } + return o.DefaultDomain, true +} + +// HasDefaultDomain returns a boolean if a field has been set. +func (o *OrganizationLinks) HasDefaultDomain() bool { + if o != nil && !IsNil(o.DefaultDomain) { + return true + } + + return false +} + +// SetDefaultDomain gets a reference to the given string and assigns it to the DefaultDomain field. +func (o *OrganizationLinks) SetDefaultDomain(v string) { + o.DefaultDomain = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *OrganizationLinks) GetDomains() string { + if o == nil || IsNil(o.Domains) { + var ret string + return ret + } + return *o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationLinks) GetDomainsOk() (*string, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *OrganizationLinks) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given string and assigns it to the Domains field. +func (o *OrganizationLinks) SetDomains(v string) { + o.Domains = &v +} + +// GetQuota returns the Quota field value if set, zero value otherwise. +func (o *OrganizationLinks) GetQuota() string { + if o == nil || IsNil(o.Quota) { + var ret string + return ret + } + return *o.Quota +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationLinks) GetQuotaOk() (*string, bool) { + if o == nil || IsNil(o.Quota) { + return nil, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *OrganizationLinks) HasQuota() bool { + if o != nil && !IsNil(o.Quota) { + return true + } + + return false +} + +// SetQuota gets a reference to the given string and assigns it to the Quota field. +func (o *OrganizationLinks) SetQuota(v string) { + o.Quota = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *OrganizationLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *OrganizationLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *OrganizationLinks) SetSelf(v string) { + o.Self = &v +} + +func (o OrganizationLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultDomain) { + toSerialize["default_domain"] = o.DefaultDomain + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Quota) { + toSerialize["quota"] = o.Quota + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableOrganizationLinks struct { + value *OrganizationLinks + isSet bool +} + +func (v NullableOrganizationLinks) Get() *OrganizationLinks { + return v.value +} + +func (v *NullableOrganizationLinks) Set(val *OrganizationLinks) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationLinks(val *OrganizationLinks) *NullableOrganizationLinks { + return &NullableOrganizationLinks{value: val, isSet: true} +} + +func (v NullableOrganizationLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_quota.go b/model_organization_quota.go new file mode 100644 index 0000000..5820a8e --- /dev/null +++ b/model_organization_quota.go @@ -0,0 +1,455 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the OrganizationQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationQuota{} + +// OrganizationQuota struct for OrganizationQuota +type OrganizationQuota struct { + Apps *AppsQuota `json:"apps,omitempty"` + // The time with zone when the organization quota was created + CreatedAt *time.Time `json:"created_at,omitempty"` + Domains *DomainsQuota `json:"domains,omitempty"` + // Unique identifier for the organization quota + Guid *string `json:"guid,omitempty"` + Links *OrganizationQuotaLinks `json:"links,omitempty"` + // Name of the quota + Name *string `json:"name,omitempty"` + Relationships *OrganizationQuotaRelationships `json:"relationships,omitempty"` + Routes *RoutesQuota `json:"routes,omitempty"` + Services *ServicesQuota `json:"services,omitempty"` + // The time with zone when the organization quota was last updated + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewOrganizationQuota instantiates a new OrganizationQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationQuota() *OrganizationQuota { + this := OrganizationQuota{} + return &this +} + +// NewOrganizationQuotaWithDefaults instantiates a new OrganizationQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationQuotaWithDefaults() *OrganizationQuota { + this := OrganizationQuota{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *OrganizationQuota) GetApps() AppsQuota { + if o == nil || IsNil(o.Apps) { + var ret AppsQuota + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetAppsOk() (*AppsQuota, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *OrganizationQuota) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given AppsQuota and assigns it to the Apps field. +func (o *OrganizationQuota) SetApps(v AppsQuota) { + o.Apps = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *OrganizationQuota) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *OrganizationQuota) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *OrganizationQuota) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *OrganizationQuota) GetDomains() DomainsQuota { + if o == nil || IsNil(o.Domains) { + var ret DomainsQuota + return ret + } + return *o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetDomainsOk() (*DomainsQuota, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *OrganizationQuota) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given DomainsQuota and assigns it to the Domains field. +func (o *OrganizationQuota) SetDomains(v DomainsQuota) { + o.Domains = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *OrganizationQuota) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *OrganizationQuota) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *OrganizationQuota) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *OrganizationQuota) GetLinks() OrganizationQuotaLinks { + if o == nil || IsNil(o.Links) { + var ret OrganizationQuotaLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetLinksOk() (*OrganizationQuotaLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *OrganizationQuota) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given OrganizationQuotaLinks and assigns it to the Links field. +func (o *OrganizationQuota) SetLinks(v OrganizationQuotaLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationQuota) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OrganizationQuota) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OrganizationQuota) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *OrganizationQuota) GetRelationships() OrganizationQuotaRelationships { + if o == nil || IsNil(o.Relationships) { + var ret OrganizationQuotaRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetRelationshipsOk() (*OrganizationQuotaRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *OrganizationQuota) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given OrganizationQuotaRelationships and assigns it to the Relationships field. +func (o *OrganizationQuota) SetRelationships(v OrganizationQuotaRelationships) { + o.Relationships = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *OrganizationQuota) GetRoutes() RoutesQuota { + if o == nil || IsNil(o.Routes) { + var ret RoutesQuota + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetRoutesOk() (*RoutesQuota, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *OrganizationQuota) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given RoutesQuota and assigns it to the Routes field. +func (o *OrganizationQuota) SetRoutes(v RoutesQuota) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *OrganizationQuota) GetServices() ServicesQuota { + if o == nil || IsNil(o.Services) { + var ret ServicesQuota + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetServicesOk() (*ServicesQuota, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *OrganizationQuota) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given ServicesQuota and assigns it to the Services field. +func (o *OrganizationQuota) SetServices(v ServicesQuota) { + o.Services = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *OrganizationQuota) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuota) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *OrganizationQuota) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *OrganizationQuota) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o OrganizationQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableOrganizationQuota struct { + value *OrganizationQuota + isSet bool +} + +func (v NullableOrganizationQuota) Get() *OrganizationQuota { + return v.value +} + +func (v *NullableOrganizationQuota) Set(val *OrganizationQuota) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationQuota(val *OrganizationQuota) *NullableOrganizationQuota { + return &NullableOrganizationQuota{value: val, isSet: true} +} + +func (v NullableOrganizationQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_quota_links.go b/model_organization_quota_links.go new file mode 100644 index 0000000..fff87ea --- /dev/null +++ b/model_organization_quota_links.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the OrganizationQuotaLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationQuotaLinks{} + +// OrganizationQuotaLinks struct for OrganizationQuotaLinks +type OrganizationQuotaLinks struct { + // URL of the organization quota + Self *string `json:"self,omitempty"` +} + +// NewOrganizationQuotaLinks instantiates a new OrganizationQuotaLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationQuotaLinks() *OrganizationQuotaLinks { + this := OrganizationQuotaLinks{} + return &this +} + +// NewOrganizationQuotaLinksWithDefaults instantiates a new OrganizationQuotaLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationQuotaLinksWithDefaults() *OrganizationQuotaLinks { + this := OrganizationQuotaLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *OrganizationQuotaLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuotaLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *OrganizationQuotaLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *OrganizationQuotaLinks) SetSelf(v string) { + o.Self = &v +} + +func (o OrganizationQuotaLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationQuotaLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableOrganizationQuotaLinks struct { + value *OrganizationQuotaLinks + isSet bool +} + +func (v NullableOrganizationQuotaLinks) Get() *OrganizationQuotaLinks { + return v.value +} + +func (v *NullableOrganizationQuotaLinks) Set(val *OrganizationQuotaLinks) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationQuotaLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationQuotaLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationQuotaLinks(val *OrganizationQuotaLinks) *NullableOrganizationQuotaLinks { + return &NullableOrganizationQuotaLinks{value: val, isSet: true} +} + +func (v NullableOrganizationQuotaLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationQuotaLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_quota_relationships.go b/model_organization_quota_relationships.go new file mode 100644 index 0000000..b447b74 --- /dev/null +++ b/model_organization_quota_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the OrganizationQuotaRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationQuotaRelationships{} + +// OrganizationQuotaRelationships struct for OrganizationQuotaRelationships +type OrganizationQuotaRelationships struct { + Organizations *DomainRelationshipsSharedOrganizations `json:"organizations,omitempty"` +} + +// NewOrganizationQuotaRelationships instantiates a new OrganizationQuotaRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationQuotaRelationships() *OrganizationQuotaRelationships { + this := OrganizationQuotaRelationships{} + return &this +} + +// NewOrganizationQuotaRelationshipsWithDefaults instantiates a new OrganizationQuotaRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationQuotaRelationshipsWithDefaults() *OrganizationQuotaRelationships { + this := OrganizationQuotaRelationships{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *OrganizationQuotaRelationships) GetOrganizations() DomainRelationshipsSharedOrganizations { + if o == nil || IsNil(o.Organizations) { + var ret DomainRelationshipsSharedOrganizations + return ret + } + return *o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationQuotaRelationships) GetOrganizationsOk() (*DomainRelationshipsSharedOrganizations, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *OrganizationQuotaRelationships) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given DomainRelationshipsSharedOrganizations and assigns it to the Organizations field. +func (o *OrganizationQuotaRelationships) SetOrganizations(v DomainRelationshipsSharedOrganizations) { + o.Organizations = &v +} + +func (o OrganizationQuotaRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationQuotaRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + return toSerialize, nil +} + +type NullableOrganizationQuotaRelationships struct { + value *OrganizationQuotaRelationships + isSet bool +} + +func (v NullableOrganizationQuotaRelationships) Get() *OrganizationQuotaRelationships { + return v.value +} + +func (v *NullableOrganizationQuotaRelationships) Set(val *OrganizationQuotaRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationQuotaRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationQuotaRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationQuotaRelationships(val *OrganizationQuotaRelationships) *NullableOrganizationQuotaRelationships { + return &NullableOrganizationQuotaRelationships{value: val, isSet: true} +} + +func (v NullableOrganizationQuotaRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationQuotaRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_relationships.go b/model_organization_relationships.go new file mode 100644 index 0000000..fcbefa4 --- /dev/null +++ b/model_organization_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the OrganizationRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationRelationships{} + +// OrganizationRelationships struct for OrganizationRelationships +type OrganizationRelationships struct { + Quota *V3AppsPostRequestRelationshipsSpace `json:"quota,omitempty"` +} + +// NewOrganizationRelationships instantiates a new OrganizationRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationRelationships() *OrganizationRelationships { + this := OrganizationRelationships{} + return &this +} + +// NewOrganizationRelationshipsWithDefaults instantiates a new OrganizationRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationRelationshipsWithDefaults() *OrganizationRelationships { + this := OrganizationRelationships{} + return &this +} + +// GetQuota returns the Quota field value if set, zero value otherwise. +func (o *OrganizationRelationships) GetQuota() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Quota) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Quota +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationRelationships) GetQuotaOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Quota) { + return nil, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *OrganizationRelationships) HasQuota() bool { + if o != nil && !IsNil(o.Quota) { + return true + } + + return false +} + +// SetQuota gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Quota field. +func (o *OrganizationRelationships) SetQuota(v V3AppsPostRequestRelationshipsSpace) { + o.Quota = &v +} + +func (o OrganizationRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Quota) { + toSerialize["quota"] = o.Quota + } + return toSerialize, nil +} + +type NullableOrganizationRelationships struct { + value *OrganizationRelationships + isSet bool +} + +func (v NullableOrganizationRelationships) Get() *OrganizationRelationships { + return v.value +} + +func (v *NullableOrganizationRelationships) Set(val *OrganizationRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationRelationships(val *OrganizationRelationships) *NullableOrganizationRelationships { + return &NullableOrganizationRelationships{value: val, isSet: true} +} + +func (v NullableOrganizationRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_organization_visibility.go b/model_organization_visibility.go new file mode 100644 index 0000000..e73ca8e --- /dev/null +++ b/model_organization_visibility.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the OrganizationVisibility type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganizationVisibility{} + +// OrganizationVisibility struct for OrganizationVisibility +type OrganizationVisibility struct { + // Unique identifier for the organization where the plan is available + Guid *string `json:"guid,omitempty"` + // Name of the organization where the plan is available + Name *string `json:"name,omitempty"` +} + +// NewOrganizationVisibility instantiates a new OrganizationVisibility object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganizationVisibility() *OrganizationVisibility { + this := OrganizationVisibility{} + return &this +} + +// NewOrganizationVisibilityWithDefaults instantiates a new OrganizationVisibility object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganizationVisibilityWithDefaults() *OrganizationVisibility { + this := OrganizationVisibility{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *OrganizationVisibility) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationVisibility) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *OrganizationVisibility) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *OrganizationVisibility) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationVisibility) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationVisibility) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OrganizationVisibility) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OrganizationVisibility) SetName(v string) { + o.Name = &v +} + +func (o OrganizationVisibility) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganizationVisibility) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableOrganizationVisibility struct { + value *OrganizationVisibility + isSet bool +} + +func (v NullableOrganizationVisibility) Get() *OrganizationVisibility { + return v.value +} + +func (v *NullableOrganizationVisibility) Set(val *OrganizationVisibility) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationVisibility) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationVisibility) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationVisibility(val *OrganizationVisibility) *NullableOrganizationVisibility { + return &NullableOrganizationVisibility{value: val, isSet: true} +} + +func (v NullableOrganizationVisibility) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationVisibility) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package.go b/model_package.go new file mode 100644 index 0000000..15f8eb0 --- /dev/null +++ b/model_package.go @@ -0,0 +1,420 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the Package type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Package{} + +// Package struct for Package +type Package struct { + // The time with zone when the object was created + CreatedAt time.Time `json:"created_at"` + Data *PackageData `json:"data,omitempty"` + // Unique identifier for the package + Guid string `json:"guid"` + Links *PackageLinks `json:"links,omitempty"` + Metadata *V3PackagesPostRequestMetadata `json:"metadata,omitempty"` + Relationships *V3PackagesPostRequestRelationships `json:"relationships,omitempty"` + // State of the package; valid states are AWAITING_UPLOAD, PROCESSING_UPLOAD, READY, FAILED, COPYING, EXPIRED + State string `json:"state"` + // Package type; valid values are bits, docker + Type string `json:"type"` + // The time with zone when the object was last updated + UpdatedAt time.Time `json:"updated_at"` +} + +type _Package Package + +// NewPackage instantiates a new Package object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackage(createdAt time.Time, guid string, state string, type_ string, updatedAt time.Time) *Package { + this := Package{} + this.CreatedAt = createdAt + this.Guid = guid + this.State = state + this.Type = type_ + this.UpdatedAt = updatedAt + return &this +} + +// NewPackageWithDefaults instantiates a new Package object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageWithDefaults() *Package { + this := Package{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Package) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Package) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Package) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *Package) GetData() PackageData { + if o == nil || IsNil(o.Data) { + var ret PackageData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetDataOk() (*PackageData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *Package) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PackageData and assigns it to the Data field. +func (o *Package) SetData(v PackageData) { + o.Data = &v +} + +// GetGuid returns the Guid field value +func (o *Package) GetGuid() string { + if o == nil { + var ret string + return ret + } + + return o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value +// and a boolean to check if the value has been set. +func (o *Package) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Guid, true +} + +// SetGuid sets field value +func (o *Package) SetGuid(v string) { + o.Guid = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Package) GetLinks() PackageLinks { + if o == nil || IsNil(o.Links) { + var ret PackageLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetLinksOk() (*PackageLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Package) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given PackageLinks and assigns it to the Links field. +func (o *Package) SetLinks(v PackageLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Package) GetMetadata() V3PackagesPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3PackagesPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetMetadataOk() (*V3PackagesPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Package) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3PackagesPostRequestMetadata and assigns it to the Metadata field. +func (o *Package) SetMetadata(v V3PackagesPostRequestMetadata) { + o.Metadata = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Package) GetRelationships() V3PackagesPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3PackagesPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetRelationshipsOk() (*V3PackagesPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Package) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3PackagesPostRequestRelationships and assigns it to the Relationships field. +func (o *Package) SetRelationships(v V3PackagesPostRequestRelationships) { + o.Relationships = &v +} + +// GetState returns the State field value +func (o *Package) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *Package) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *Package) SetState(v string) { + o.State = v +} + +// GetType returns the Type field value +func (o *Package) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Package) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Package) SetType(v string) { + o.Type = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *Package) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *Package) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *Package) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o Package) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Package) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created_at"] = o.CreatedAt + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + toSerialize["guid"] = o.Guid + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + toSerialize["state"] = o.State + toSerialize["type"] = o.Type + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *Package) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created_at", + "guid", + "state", + "type", + "updated_at", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPackage := _Package{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPackage) + + if err != nil { + return err + } + + *o = Package(varPackage) + + return err +} + +type NullablePackage struct { + value *Package + isSet bool +} + +func (v NullablePackage) Get() *Package { + return v.value +} + +func (v *NullablePackage) Set(val *Package) { + v.value = val + v.isSet = true +} + +func (v NullablePackage) IsSet() bool { + return v.isSet +} + +func (v *NullablePackage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackage(val *Package) *NullablePackage { + return &NullablePackage{value: val, isSet: true} +} + +func (v NullablePackage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_data.go b/model_package_data.go new file mode 100644 index 0000000..c31c0f2 --- /dev/null +++ b/model_package_data.go @@ -0,0 +1,284 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageData{} + +// PackageData struct for PackageData +type PackageData struct { + Checksum *PackageDataChecksum `json:"checksum,omitempty"` + // If an error occurs this field will contain the error message + Error NullableString `json:"error,omitempty"` + // The registry address of the image (for Docker packages) + Image *string `json:"image,omitempty"` + // The password for the image's registry (for Docker packages) + Password *string `json:"password,omitempty"` + // The username for the image's registry (for Docker packages) + Username *string `json:"username,omitempty"` +} + +// NewPackageData instantiates a new PackageData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageData() *PackageData { + this := PackageData{} + return &this +} + +// NewPackageDataWithDefaults instantiates a new PackageData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageDataWithDefaults() *PackageData { + this := PackageData{} + return &this +} + +// GetChecksum returns the Checksum field value if set, zero value otherwise. +func (o *PackageData) GetChecksum() PackageDataChecksum { + if o == nil || IsNil(o.Checksum) { + var ret PackageDataChecksum + return ret + } + return *o.Checksum +} + +// GetChecksumOk returns a tuple with the Checksum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageData) GetChecksumOk() (*PackageDataChecksum, bool) { + if o == nil || IsNil(o.Checksum) { + return nil, false + } + return o.Checksum, true +} + +// HasChecksum returns a boolean if a field has been set. +func (o *PackageData) HasChecksum() bool { + if o != nil && !IsNil(o.Checksum) { + return true + } + + return false +} + +// SetChecksum gets a reference to the given PackageDataChecksum and assigns it to the Checksum field. +func (o *PackageData) SetChecksum(v PackageDataChecksum) { + o.Checksum = &v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageData) GetError() string { + if o == nil || IsNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageData) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *PackageData) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *PackageData) SetError(v string) { + o.Error.Set(&v) +} +// SetErrorNil sets the value for Error to be an explicit nil +func (o *PackageData) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *PackageData) UnsetError() { + o.Error.Unset() +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *PackageData) GetImage() string { + if o == nil || IsNil(o.Image) { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageData) GetImageOk() (*string, bool) { + if o == nil || IsNil(o.Image) { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *PackageData) HasImage() bool { + if o != nil && !IsNil(o.Image) { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *PackageData) SetImage(v string) { + o.Image = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *PackageData) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageData) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *PackageData) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *PackageData) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *PackageData) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageData) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *PackageData) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *PackageData) SetUsername(v string) { + o.Username = &v +} + +func (o PackageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Checksum) { + toSerialize["checksum"] = o.Checksum + } + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + if !IsNil(o.Image) { + toSerialize["image"] = o.Image + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullablePackageData struct { + value *PackageData + isSet bool +} + +func (v NullablePackageData) Get() *PackageData { + return v.value +} + +func (v *NullablePackageData) Set(val *PackageData) { + v.value = val + v.isSet = true +} + +func (v NullablePackageData) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageData(val *PackageData) *NullablePackageData { + return &NullablePackageData{value: val, isSet: true} +} + +func (v NullablePackageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_data_checksum.go b/model_package_data_checksum.go new file mode 100644 index 0000000..9a44564 --- /dev/null +++ b/model_package_data_checksum.go @@ -0,0 +1,174 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageDataChecksum type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageDataChecksum{} + +// PackageDataChecksum struct for PackageDataChecksum +type PackageDataChecksum struct { + // The checksum type, for example: sha256 + Type *string `json:"type,omitempty"` + // The checksum value; this will be populated after bits are uploaded + Value NullableString `json:"value,omitempty"` +} + +// NewPackageDataChecksum instantiates a new PackageDataChecksum object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageDataChecksum() *PackageDataChecksum { + this := PackageDataChecksum{} + return &this +} + +// NewPackageDataChecksumWithDefaults instantiates a new PackageDataChecksum object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageDataChecksumWithDefaults() *PackageDataChecksum { + this := PackageDataChecksum{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PackageDataChecksum) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDataChecksum) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PackageDataChecksum) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PackageDataChecksum) SetType(v string) { + o.Type = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDataChecksum) GetValue() string { + if o == nil || IsNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PackageDataChecksum) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *PackageDataChecksum) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *PackageDataChecksum) SetValue(v string) { + o.Value.Set(&v) +} +// SetValueNil sets the value for Value to be an explicit nil +func (o *PackageDataChecksum) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *PackageDataChecksum) UnsetValue() { + o.Value.Unset() +} + +func (o PackageDataChecksum) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageDataChecksum) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if o.Value.IsSet() { + toSerialize["value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullablePackageDataChecksum struct { + value *PackageDataChecksum + isSet bool +} + +func (v NullablePackageDataChecksum) Get() *PackageDataChecksum { + return v.value +} + +func (v *NullablePackageDataChecksum) Set(val *PackageDataChecksum) { + v.value = val + v.isSet = true +} + +func (v NullablePackageDataChecksum) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageDataChecksum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageDataChecksum(val *PackageDataChecksum) *NullablePackageDataChecksum { + return &NullablePackageDataChecksum{value: val, isSet: true} +} + +func (v NullablePackageDataChecksum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageDataChecksum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_links.go b/model_package_links.go new file mode 100644 index 0000000..7ac6668 --- /dev/null +++ b/model_package_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLinks{} + +// PackageLinks struct for PackageLinks +type PackageLinks struct { + App *PackageLinksApp `json:"app,omitempty"` + Download *PackageLinksDownload `json:"download,omitempty"` + Self *PackageLinksSelf `json:"self,omitempty"` + Upload *PackageLinksUpload `json:"upload,omitempty"` +} + +// NewPackageLinks instantiates a new PackageLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageLinks() *PackageLinks { + this := PackageLinks{} + return &this +} + +// NewPackageLinksWithDefaults instantiates a new PackageLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLinksWithDefaults() *PackageLinks { + this := PackageLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *PackageLinks) GetApp() PackageLinksApp { + if o == nil || IsNil(o.App) { + var ret PackageLinksApp + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinks) GetAppOk() (*PackageLinksApp, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *PackageLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given PackageLinksApp and assigns it to the App field. +func (o *PackageLinks) SetApp(v PackageLinksApp) { + o.App = &v +} + +// GetDownload returns the Download field value if set, zero value otherwise. +func (o *PackageLinks) GetDownload() PackageLinksDownload { + if o == nil || IsNil(o.Download) { + var ret PackageLinksDownload + return ret + } + return *o.Download +} + +// GetDownloadOk returns a tuple with the Download field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinks) GetDownloadOk() (*PackageLinksDownload, bool) { + if o == nil || IsNil(o.Download) { + return nil, false + } + return o.Download, true +} + +// HasDownload returns a boolean if a field has been set. +func (o *PackageLinks) HasDownload() bool { + if o != nil && !IsNil(o.Download) { + return true + } + + return false +} + +// SetDownload gets a reference to the given PackageLinksDownload and assigns it to the Download field. +func (o *PackageLinks) SetDownload(v PackageLinksDownload) { + o.Download = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *PackageLinks) GetSelf() PackageLinksSelf { + if o == nil || IsNil(o.Self) { + var ret PackageLinksSelf + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinks) GetSelfOk() (*PackageLinksSelf, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *PackageLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given PackageLinksSelf and assigns it to the Self field. +func (o *PackageLinks) SetSelf(v PackageLinksSelf) { + o.Self = &v +} + +// GetUpload returns the Upload field value if set, zero value otherwise. +func (o *PackageLinks) GetUpload() PackageLinksUpload { + if o == nil || IsNil(o.Upload) { + var ret PackageLinksUpload + return ret + } + return *o.Upload +} + +// GetUploadOk returns a tuple with the Upload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinks) GetUploadOk() (*PackageLinksUpload, bool) { + if o == nil || IsNil(o.Upload) { + return nil, false + } + return o.Upload, true +} + +// HasUpload returns a boolean if a field has been set. +func (o *PackageLinks) HasUpload() bool { + if o != nil && !IsNil(o.Upload) { + return true + } + + return false +} + +// SetUpload gets a reference to the given PackageLinksUpload and assigns it to the Upload field. +func (o *PackageLinks) SetUpload(v PackageLinksUpload) { + o.Upload = &v +} + +func (o PackageLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Download) { + toSerialize["download"] = o.Download + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Upload) { + toSerialize["upload"] = o.Upload + } + return toSerialize, nil +} + +type NullablePackageLinks struct { + value *PackageLinks + isSet bool +} + +func (v NullablePackageLinks) Get() *PackageLinks { + return v.value +} + +func (v *NullablePackageLinks) Set(val *PackageLinks) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLinks) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLinks(val *PackageLinks) *NullablePackageLinks { + return &NullablePackageLinks{value: val, isSet: true} +} + +func (v NullablePackageLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_links_app.go b/model_package_links_app.go new file mode 100644 index 0000000..e8e4686 --- /dev/null +++ b/model_package_links_app.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageLinksApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLinksApp{} + +// PackageLinksApp struct for PackageLinksApp +type PackageLinksApp struct { + // URL of the app + Href *string `json:"href,omitempty"` +} + +// NewPackageLinksApp instantiates a new PackageLinksApp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageLinksApp() *PackageLinksApp { + this := PackageLinksApp{} + return &this +} + +// NewPackageLinksAppWithDefaults instantiates a new PackageLinksApp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLinksAppWithDefaults() *PackageLinksApp { + this := PackageLinksApp{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PackageLinksApp) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksApp) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *PackageLinksApp) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *PackageLinksApp) SetHref(v string) { + o.Href = &v +} + +func (o PackageLinksApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLinksApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullablePackageLinksApp struct { + value *PackageLinksApp + isSet bool +} + +func (v NullablePackageLinksApp) Get() *PackageLinksApp { + return v.value +} + +func (v *NullablePackageLinksApp) Set(val *PackageLinksApp) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLinksApp) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLinksApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLinksApp(val *PackageLinksApp) *NullablePackageLinksApp { + return &NullablePackageLinksApp{value: val, isSet: true} +} + +func (v NullablePackageLinksApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLinksApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_links_download.go b/model_package_links_download.go new file mode 100644 index 0000000..2eee1f6 --- /dev/null +++ b/model_package_links_download.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageLinksDownload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLinksDownload{} + +// PackageLinksDownload struct for PackageLinksDownload +type PackageLinksDownload struct { + // URL to download the package + Href *string `json:"href,omitempty"` + // HTTP method for the download URL + Method *string `json:"method,omitempty"` +} + +// NewPackageLinksDownload instantiates a new PackageLinksDownload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageLinksDownload() *PackageLinksDownload { + this := PackageLinksDownload{} + return &this +} + +// NewPackageLinksDownloadWithDefaults instantiates a new PackageLinksDownload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLinksDownloadWithDefaults() *PackageLinksDownload { + this := PackageLinksDownload{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PackageLinksDownload) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksDownload) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *PackageLinksDownload) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *PackageLinksDownload) SetHref(v string) { + o.Href = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *PackageLinksDownload) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksDownload) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *PackageLinksDownload) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *PackageLinksDownload) SetMethod(v string) { + o.Method = &v +} + +func (o PackageLinksDownload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLinksDownload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + return toSerialize, nil +} + +type NullablePackageLinksDownload struct { + value *PackageLinksDownload + isSet bool +} + +func (v NullablePackageLinksDownload) Get() *PackageLinksDownload { + return v.value +} + +func (v *NullablePackageLinksDownload) Set(val *PackageLinksDownload) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLinksDownload) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLinksDownload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLinksDownload(val *PackageLinksDownload) *NullablePackageLinksDownload { + return &NullablePackageLinksDownload{value: val, isSet: true} +} + +func (v NullablePackageLinksDownload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLinksDownload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_links_self.go b/model_package_links_self.go new file mode 100644 index 0000000..219f6c9 --- /dev/null +++ b/model_package_links_self.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageLinksSelf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLinksSelf{} + +// PackageLinksSelf struct for PackageLinksSelf +type PackageLinksSelf struct { + // URL of the package + Href *string `json:"href,omitempty"` +} + +// NewPackageLinksSelf instantiates a new PackageLinksSelf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageLinksSelf() *PackageLinksSelf { + this := PackageLinksSelf{} + return &this +} + +// NewPackageLinksSelfWithDefaults instantiates a new PackageLinksSelf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLinksSelfWithDefaults() *PackageLinksSelf { + this := PackageLinksSelf{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PackageLinksSelf) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksSelf) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *PackageLinksSelf) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *PackageLinksSelf) SetHref(v string) { + o.Href = &v +} + +func (o PackageLinksSelf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLinksSelf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullablePackageLinksSelf struct { + value *PackageLinksSelf + isSet bool +} + +func (v NullablePackageLinksSelf) Get() *PackageLinksSelf { + return v.value +} + +func (v *NullablePackageLinksSelf) Set(val *PackageLinksSelf) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLinksSelf) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLinksSelf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLinksSelf(val *PackageLinksSelf) *NullablePackageLinksSelf { + return &NullablePackageLinksSelf{value: val, isSet: true} +} + +func (v NullablePackageLinksSelf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLinksSelf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_package_links_upload.go b/model_package_links_upload.go new file mode 100644 index 0000000..70a02b5 --- /dev/null +++ b/model_package_links_upload.go @@ -0,0 +1,164 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PackageLinksUpload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageLinksUpload{} + +// PackageLinksUpload struct for PackageLinksUpload +type PackageLinksUpload struct { + // URL to upload the package + Href *string `json:"href,omitempty"` + // HTTP method for the upload URL + Method *string `json:"method,omitempty"` +} + +// NewPackageLinksUpload instantiates a new PackageLinksUpload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageLinksUpload() *PackageLinksUpload { + this := PackageLinksUpload{} + return &this +} + +// NewPackageLinksUploadWithDefaults instantiates a new PackageLinksUpload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageLinksUploadWithDefaults() *PackageLinksUpload { + this := PackageLinksUpload{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *PackageLinksUpload) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksUpload) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *PackageLinksUpload) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *PackageLinksUpload) SetHref(v string) { + o.Href = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *PackageLinksUpload) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLinksUpload) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *PackageLinksUpload) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *PackageLinksUpload) SetMethod(v string) { + o.Method = &v +} + +func (o PackageLinksUpload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageLinksUpload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + return toSerialize, nil +} + +type NullablePackageLinksUpload struct { + value *PackageLinksUpload + isSet bool +} + +func (v NullablePackageLinksUpload) Get() *PackageLinksUpload { + return v.value +} + +func (v *NullablePackageLinksUpload) Set(val *PackageLinksUpload) { + v.value = val + v.isSet = true +} + +func (v NullablePackageLinksUpload) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageLinksUpload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageLinksUpload(val *PackageLinksUpload) *NullablePackageLinksUpload { + return &NullablePackageLinksUpload{value: val, isSet: true} +} + +func (v NullablePackageLinksUpload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageLinksUpload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_pagination.go b/model_pagination.go new file mode 100644 index 0000000..7004c44 --- /dev/null +++ b/model_pagination.go @@ -0,0 +1,316 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Pagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Pagination{} + +// Pagination struct for Pagination +type Pagination struct { + First Link `json:"first,omitempty"` + Last Link `json:"last,omitempty"` + Next Link `json:"next,omitempty"` + Previous NullableListOrganizationQuotas200ResponsePaginationNext `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewPagination instantiates a new Pagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPagination() *Pagination { + this := Pagination{} + return &this +} + +// NewPaginationWithDefaults instantiates a new Pagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginationWithDefaults() *Pagination { + this := Pagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *Pagination) GetFirst() Link { + if o == nil || IsNil(o.First) { + var ret Link + return ret + } + return o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetFirstOk() (Link, bool) { + if o == nil || IsNil(o.First) { + return Link{}, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *Pagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given Link and assigns it to the First field. +func (o *Pagination) SetFirst(v Link) { + o.First = v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *Pagination) GetLast() Link { + if o == nil || IsNil(o.Last) { + var ret Link + return ret + } + return o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetLastOk() (Link, bool) { + if o == nil || IsNil(o.Last) { + return Link{}, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *Pagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given Link and assigns it to the Last field. +func (o *Pagination) SetLast(v Link) { + o.Last = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *Pagination) GetNext() Link { + if o == nil || IsNil(o.Next) { + var ret Link + return ret + } + return o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetNextOk() (Link, bool) { + if o == nil || IsNil(o.Next) { + return Link{}, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *Pagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given Link and assigns it to the Next field. +func (o *Pagination) SetNext(v Link) { + o.Next = v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Pagination) GetPrevious() ListOrganizationQuotas200ResponsePaginationNext { + if o == nil || IsNil(o.Previous.Get()) { + var ret ListOrganizationQuotas200ResponsePaginationNext + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Pagination) GetPreviousOk() (*ListOrganizationQuotas200ResponsePaginationNext, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *Pagination) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableListOrganizationQuotas200ResponsePaginationNext and assigns it to the Previous field. +func (o *Pagination) SetPrevious(v ListOrganizationQuotas200ResponsePaginationNext) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *Pagination) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *Pagination) UnsetPrevious() { + o.Previous.Unset() +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *Pagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *Pagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *Pagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *Pagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *Pagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *Pagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o Pagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Pagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullablePagination struct { + value *Pagination + isSet bool +} + +func (v NullablePagination) Get() *Pagination { + return v.value +} + +func (v *NullablePagination) Set(val *Pagination) { + v.value = val + v.isSet = true +} + +func (v NullablePagination) IsSet() bool { + return v.isSet +} + +func (v *NullablePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePagination(val *Pagination) *NullablePagination { + return &NullablePagination{value: val, isSet: true} +} + +func (v NullablePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_plan_schemas.go b/model_plan_schemas.go new file mode 100644 index 0000000..101a3ed --- /dev/null +++ b/model_plan_schemas.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlanSchemas type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlanSchemas{} + +// PlanSchemas struct for PlanSchemas +type PlanSchemas struct { + ServiceBinding *PlanSchemasServiceBinding `json:"service_binding,omitempty"` + ServiceInstance *PlanSchemasServiceInstance `json:"service_instance,omitempty"` +} + +// NewPlanSchemas instantiates a new PlanSchemas object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlanSchemas() *PlanSchemas { + this := PlanSchemas{} + return &this +} + +// NewPlanSchemasWithDefaults instantiates a new PlanSchemas object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanSchemasWithDefaults() *PlanSchemas { + this := PlanSchemas{} + return &this +} + +// GetServiceBinding returns the ServiceBinding field value if set, zero value otherwise. +func (o *PlanSchemas) GetServiceBinding() PlanSchemasServiceBinding { + if o == nil || IsNil(o.ServiceBinding) { + var ret PlanSchemasServiceBinding + return ret + } + return *o.ServiceBinding +} + +// GetServiceBindingOk returns a tuple with the ServiceBinding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemas) GetServiceBindingOk() (*PlanSchemasServiceBinding, bool) { + if o == nil || IsNil(o.ServiceBinding) { + return nil, false + } + return o.ServiceBinding, true +} + +// HasServiceBinding returns a boolean if a field has been set. +func (o *PlanSchemas) HasServiceBinding() bool { + if o != nil && !IsNil(o.ServiceBinding) { + return true + } + + return false +} + +// SetServiceBinding gets a reference to the given PlanSchemasServiceBinding and assigns it to the ServiceBinding field. +func (o *PlanSchemas) SetServiceBinding(v PlanSchemasServiceBinding) { + o.ServiceBinding = &v +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise. +func (o *PlanSchemas) GetServiceInstance() PlanSchemasServiceInstance { + if o == nil || IsNil(o.ServiceInstance) { + var ret PlanSchemasServiceInstance + return ret + } + return *o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemas) GetServiceInstanceOk() (*PlanSchemasServiceInstance, bool) { + if o == nil || IsNil(o.ServiceInstance) { + return nil, false + } + return o.ServiceInstance, true +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *PlanSchemas) HasServiceInstance() bool { + if o != nil && !IsNil(o.ServiceInstance) { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given PlanSchemasServiceInstance and assigns it to the ServiceInstance field. +func (o *PlanSchemas) SetServiceInstance(v PlanSchemasServiceInstance) { + o.ServiceInstance = &v +} + +func (o PlanSchemas) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlanSchemas) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceBinding) { + toSerialize["service_binding"] = o.ServiceBinding + } + if !IsNil(o.ServiceInstance) { + toSerialize["service_instance"] = o.ServiceInstance + } + return toSerialize, nil +} + +type NullablePlanSchemas struct { + value *PlanSchemas + isSet bool +} + +func (v NullablePlanSchemas) Get() *PlanSchemas { + return v.value +} + +func (v *NullablePlanSchemas) Set(val *PlanSchemas) { + v.value = val + v.isSet = true +} + +func (v NullablePlanSchemas) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanSchemas) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanSchemas(val *PlanSchemas) *NullablePlanSchemas { + return &NullablePlanSchemas{value: val, isSet: true} +} + +func (v NullablePlanSchemas) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanSchemas) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_plan_schemas_service_binding.go b/model_plan_schemas_service_binding.go new file mode 100644 index 0000000..77e1dec --- /dev/null +++ b/model_plan_schemas_service_binding.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlanSchemasServiceBinding type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlanSchemasServiceBinding{} + +// PlanSchemasServiceBinding struct for PlanSchemasServiceBinding +type PlanSchemasServiceBinding struct { + Create *PlanSchemasServiceBindingCreate `json:"create,omitempty"` +} + +// NewPlanSchemasServiceBinding instantiates a new PlanSchemasServiceBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlanSchemasServiceBinding() *PlanSchemasServiceBinding { + this := PlanSchemasServiceBinding{} + return &this +} + +// NewPlanSchemasServiceBindingWithDefaults instantiates a new PlanSchemasServiceBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanSchemasServiceBindingWithDefaults() *PlanSchemasServiceBinding { + this := PlanSchemasServiceBinding{} + return &this +} + +// GetCreate returns the Create field value if set, zero value otherwise. +func (o *PlanSchemasServiceBinding) GetCreate() PlanSchemasServiceBindingCreate { + if o == nil || IsNil(o.Create) { + var ret PlanSchemasServiceBindingCreate + return ret + } + return *o.Create +} + +// GetCreateOk returns a tuple with the Create field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemasServiceBinding) GetCreateOk() (*PlanSchemasServiceBindingCreate, bool) { + if o == nil || IsNil(o.Create) { + return nil, false + } + return o.Create, true +} + +// HasCreate returns a boolean if a field has been set. +func (o *PlanSchemasServiceBinding) HasCreate() bool { + if o != nil && !IsNil(o.Create) { + return true + } + + return false +} + +// SetCreate gets a reference to the given PlanSchemasServiceBindingCreate and assigns it to the Create field. +func (o *PlanSchemasServiceBinding) SetCreate(v PlanSchemasServiceBindingCreate) { + o.Create = &v +} + +func (o PlanSchemasServiceBinding) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlanSchemasServiceBinding) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Create) { + toSerialize["create"] = o.Create + } + return toSerialize, nil +} + +type NullablePlanSchemasServiceBinding struct { + value *PlanSchemasServiceBinding + isSet bool +} + +func (v NullablePlanSchemasServiceBinding) Get() *PlanSchemasServiceBinding { + return v.value +} + +func (v *NullablePlanSchemasServiceBinding) Set(val *PlanSchemasServiceBinding) { + v.value = val + v.isSet = true +} + +func (v NullablePlanSchemasServiceBinding) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanSchemasServiceBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanSchemasServiceBinding(val *PlanSchemasServiceBinding) *NullablePlanSchemasServiceBinding { + return &NullablePlanSchemasServiceBinding{value: val, isSet: true} +} + +func (v NullablePlanSchemasServiceBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanSchemasServiceBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_plan_schemas_service_binding_create.go b/model_plan_schemas_service_binding_create.go new file mode 100644 index 0000000..ff62e32 --- /dev/null +++ b/model_plan_schemas_service_binding_create.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlanSchemasServiceBindingCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlanSchemasServiceBindingCreate{} + +// PlanSchemasServiceBindingCreate struct for PlanSchemasServiceBindingCreate +type PlanSchemasServiceBindingCreate struct { + Parameters map[string]interface{} `json:"parameters,omitempty"` +} + +// NewPlanSchemasServiceBindingCreate instantiates a new PlanSchemasServiceBindingCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlanSchemasServiceBindingCreate() *PlanSchemasServiceBindingCreate { + this := PlanSchemasServiceBindingCreate{} + return &this +} + +// NewPlanSchemasServiceBindingCreateWithDefaults instantiates a new PlanSchemasServiceBindingCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanSchemasServiceBindingCreateWithDefaults() *PlanSchemasServiceBindingCreate { + this := PlanSchemasServiceBindingCreate{} + return &this +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *PlanSchemasServiceBindingCreate) GetParameters() map[string]interface{} { + if o == nil || IsNil(o.Parameters) { + var ret map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemasServiceBindingCreate) GetParametersOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PlanSchemasServiceBindingCreate) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field. +func (o *PlanSchemasServiceBindingCreate) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +func (o PlanSchemasServiceBindingCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlanSchemasServiceBindingCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullablePlanSchemasServiceBindingCreate struct { + value *PlanSchemasServiceBindingCreate + isSet bool +} + +func (v NullablePlanSchemasServiceBindingCreate) Get() *PlanSchemasServiceBindingCreate { + return v.value +} + +func (v *NullablePlanSchemasServiceBindingCreate) Set(val *PlanSchemasServiceBindingCreate) { + v.value = val + v.isSet = true +} + +func (v NullablePlanSchemasServiceBindingCreate) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanSchemasServiceBindingCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanSchemasServiceBindingCreate(val *PlanSchemasServiceBindingCreate) *NullablePlanSchemasServiceBindingCreate { + return &NullablePlanSchemasServiceBindingCreate{value: val, isSet: true} +} + +func (v NullablePlanSchemasServiceBindingCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanSchemasServiceBindingCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_plan_schemas_service_instance.go b/model_plan_schemas_service_instance.go new file mode 100644 index 0000000..b1243d8 --- /dev/null +++ b/model_plan_schemas_service_instance.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlanSchemasServiceInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlanSchemasServiceInstance{} + +// PlanSchemasServiceInstance struct for PlanSchemasServiceInstance +type PlanSchemasServiceInstance struct { + Create *PlanSchemasServiceBindingCreate `json:"create,omitempty"` + Update *PlanSchemasServiceBindingCreate `json:"update,omitempty"` +} + +// NewPlanSchemasServiceInstance instantiates a new PlanSchemasServiceInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlanSchemasServiceInstance() *PlanSchemasServiceInstance { + this := PlanSchemasServiceInstance{} + return &this +} + +// NewPlanSchemasServiceInstanceWithDefaults instantiates a new PlanSchemasServiceInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlanSchemasServiceInstanceWithDefaults() *PlanSchemasServiceInstance { + this := PlanSchemasServiceInstance{} + return &this +} + +// GetCreate returns the Create field value if set, zero value otherwise. +func (o *PlanSchemasServiceInstance) GetCreate() PlanSchemasServiceBindingCreate { + if o == nil || IsNil(o.Create) { + var ret PlanSchemasServiceBindingCreate + return ret + } + return *o.Create +} + +// GetCreateOk returns a tuple with the Create field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemasServiceInstance) GetCreateOk() (*PlanSchemasServiceBindingCreate, bool) { + if o == nil || IsNil(o.Create) { + return nil, false + } + return o.Create, true +} + +// HasCreate returns a boolean if a field has been set. +func (o *PlanSchemasServiceInstance) HasCreate() bool { + if o != nil && !IsNil(o.Create) { + return true + } + + return false +} + +// SetCreate gets a reference to the given PlanSchemasServiceBindingCreate and assigns it to the Create field. +func (o *PlanSchemasServiceInstance) SetCreate(v PlanSchemasServiceBindingCreate) { + o.Create = &v +} + +// GetUpdate returns the Update field value if set, zero value otherwise. +func (o *PlanSchemasServiceInstance) GetUpdate() PlanSchemasServiceBindingCreate { + if o == nil || IsNil(o.Update) { + var ret PlanSchemasServiceBindingCreate + return ret + } + return *o.Update +} + +// GetUpdateOk returns a tuple with the Update field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanSchemasServiceInstance) GetUpdateOk() (*PlanSchemasServiceBindingCreate, bool) { + if o == nil || IsNil(o.Update) { + return nil, false + } + return o.Update, true +} + +// HasUpdate returns a boolean if a field has been set. +func (o *PlanSchemasServiceInstance) HasUpdate() bool { + if o != nil && !IsNil(o.Update) { + return true + } + + return false +} + +// SetUpdate gets a reference to the given PlanSchemasServiceBindingCreate and assigns it to the Update field. +func (o *PlanSchemasServiceInstance) SetUpdate(v PlanSchemasServiceBindingCreate) { + o.Update = &v +} + +func (o PlanSchemasServiceInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlanSchemasServiceInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Create) { + toSerialize["create"] = o.Create + } + if !IsNil(o.Update) { + toSerialize["update"] = o.Update + } + return toSerialize, nil +} + +type NullablePlanSchemasServiceInstance struct { + value *PlanSchemasServiceInstance + isSet bool +} + +func (v NullablePlanSchemasServiceInstance) Get() *PlanSchemasServiceInstance { + return v.value +} + +func (v *NullablePlanSchemasServiceInstance) Set(val *PlanSchemasServiceInstance) { + v.value = val + v.isSet = true +} + +func (v NullablePlanSchemasServiceInstance) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanSchemasServiceInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanSchemasServiceInstance(val *PlanSchemasServiceInstance) *NullablePlanSchemasServiceInstance { + return &NullablePlanSchemasServiceInstance{value: val, isSet: true} +} + +func (v NullablePlanSchemasServiceInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanSchemasServiceInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_platform_info.go b/model_platform_info.go new file mode 100644 index 0000000..b8da658 --- /dev/null +++ b/model_platform_info.go @@ -0,0 +1,342 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlatformInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlatformInfo{} + +// PlatformInfo struct for PlatformInfo +type PlatformInfo struct { + Build *string `json:"build,omitempty"` + CliVersion *PlatformInfoCliVersion `json:"cli_version,omitempty"` + Custom *map[string]string `json:"custom,omitempty"` + Description *string `json:"description,omitempty"` + Links *PlatformInfoLinks `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + Version *int32 `json:"version,omitempty"` +} + +// NewPlatformInfo instantiates a new PlatformInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlatformInfo() *PlatformInfo { + this := PlatformInfo{} + return &this +} + +// NewPlatformInfoWithDefaults instantiates a new PlatformInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlatformInfoWithDefaults() *PlatformInfo { + this := PlatformInfo{} + return &this +} + +// GetBuild returns the Build field value if set, zero value otherwise. +func (o *PlatformInfo) GetBuild() string { + if o == nil || IsNil(o.Build) { + var ret string + return ret + } + return *o.Build +} + +// GetBuildOk returns a tuple with the Build field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetBuildOk() (*string, bool) { + if o == nil || IsNil(o.Build) { + return nil, false + } + return o.Build, true +} + +// HasBuild returns a boolean if a field has been set. +func (o *PlatformInfo) HasBuild() bool { + if o != nil && !IsNil(o.Build) { + return true + } + + return false +} + +// SetBuild gets a reference to the given string and assigns it to the Build field. +func (o *PlatformInfo) SetBuild(v string) { + o.Build = &v +} + +// GetCliVersion returns the CliVersion field value if set, zero value otherwise. +func (o *PlatformInfo) GetCliVersion() PlatformInfoCliVersion { + if o == nil || IsNil(o.CliVersion) { + var ret PlatformInfoCliVersion + return ret + } + return *o.CliVersion +} + +// GetCliVersionOk returns a tuple with the CliVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetCliVersionOk() (*PlatformInfoCliVersion, bool) { + if o == nil || IsNil(o.CliVersion) { + return nil, false + } + return o.CliVersion, true +} + +// HasCliVersion returns a boolean if a field has been set. +func (o *PlatformInfo) HasCliVersion() bool { + if o != nil && !IsNil(o.CliVersion) { + return true + } + + return false +} + +// SetCliVersion gets a reference to the given PlatformInfoCliVersion and assigns it to the CliVersion field. +func (o *PlatformInfo) SetCliVersion(v PlatformInfoCliVersion) { + o.CliVersion = &v +} + +// GetCustom returns the Custom field value if set, zero value otherwise. +func (o *PlatformInfo) GetCustom() map[string]string { + if o == nil || IsNil(o.Custom) { + var ret map[string]string + return ret + } + return *o.Custom +} + +// GetCustomOk returns a tuple with the Custom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetCustomOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Custom) { + return nil, false + } + return o.Custom, true +} + +// HasCustom returns a boolean if a field has been set. +func (o *PlatformInfo) HasCustom() bool { + if o != nil && !IsNil(o.Custom) { + return true + } + + return false +} + +// SetCustom gets a reference to the given map[string]string and assigns it to the Custom field. +func (o *PlatformInfo) SetCustom(v map[string]string) { + o.Custom = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PlatformInfo) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PlatformInfo) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PlatformInfo) SetDescription(v string) { + o.Description = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PlatformInfo) GetLinks() PlatformInfoLinks { + if o == nil || IsNil(o.Links) { + var ret PlatformInfoLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetLinksOk() (*PlatformInfoLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PlatformInfo) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given PlatformInfoLinks and assigns it to the Links field. +func (o *PlatformInfo) SetLinks(v PlatformInfoLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PlatformInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PlatformInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PlatformInfo) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *PlatformInfo) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfo) GetVersionOk() (*int32, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *PlatformInfo) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *PlatformInfo) SetVersion(v int32) { + o.Version = &v +} + +func (o PlatformInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlatformInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Build) { + toSerialize["build"] = o.Build + } + if !IsNil(o.CliVersion) { + toSerialize["cli_version"] = o.CliVersion + } + if !IsNil(o.Custom) { + toSerialize["custom"] = o.Custom + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullablePlatformInfo struct { + value *PlatformInfo + isSet bool +} + +func (v NullablePlatformInfo) Get() *PlatformInfo { + return v.value +} + +func (v *NullablePlatformInfo) Set(val *PlatformInfo) { + v.value = val + v.isSet = true +} + +func (v NullablePlatformInfo) IsSet() bool { + return v.isSet +} + +func (v *NullablePlatformInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlatformInfo(val *PlatformInfo) *NullablePlatformInfo { + return &NullablePlatformInfo{value: val, isSet: true} +} + +func (v NullablePlatformInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlatformInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_platform_info_cli_version.go b/model_platform_info_cli_version.go new file mode 100644 index 0000000..daf0a42 --- /dev/null +++ b/model_platform_info_cli_version.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlatformInfoCliVersion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlatformInfoCliVersion{} + +// PlatformInfoCliVersion struct for PlatformInfoCliVersion +type PlatformInfoCliVersion struct { + Minimum *string `json:"minimum,omitempty"` + Recommended *string `json:"recommended,omitempty"` +} + +// NewPlatformInfoCliVersion instantiates a new PlatformInfoCliVersion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlatformInfoCliVersion() *PlatformInfoCliVersion { + this := PlatformInfoCliVersion{} + return &this +} + +// NewPlatformInfoCliVersionWithDefaults instantiates a new PlatformInfoCliVersion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlatformInfoCliVersionWithDefaults() *PlatformInfoCliVersion { + this := PlatformInfoCliVersion{} + return &this +} + +// GetMinimum returns the Minimum field value if set, zero value otherwise. +func (o *PlatformInfoCliVersion) GetMinimum() string { + if o == nil || IsNil(o.Minimum) { + var ret string + return ret + } + return *o.Minimum +} + +// GetMinimumOk returns a tuple with the Minimum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfoCliVersion) GetMinimumOk() (*string, bool) { + if o == nil || IsNil(o.Minimum) { + return nil, false + } + return o.Minimum, true +} + +// HasMinimum returns a boolean if a field has been set. +func (o *PlatformInfoCliVersion) HasMinimum() bool { + if o != nil && !IsNil(o.Minimum) { + return true + } + + return false +} + +// SetMinimum gets a reference to the given string and assigns it to the Minimum field. +func (o *PlatformInfoCliVersion) SetMinimum(v string) { + o.Minimum = &v +} + +// GetRecommended returns the Recommended field value if set, zero value otherwise. +func (o *PlatformInfoCliVersion) GetRecommended() string { + if o == nil || IsNil(o.Recommended) { + var ret string + return ret + } + return *o.Recommended +} + +// GetRecommendedOk returns a tuple with the Recommended field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfoCliVersion) GetRecommendedOk() (*string, bool) { + if o == nil || IsNil(o.Recommended) { + return nil, false + } + return o.Recommended, true +} + +// HasRecommended returns a boolean if a field has been set. +func (o *PlatformInfoCliVersion) HasRecommended() bool { + if o != nil && !IsNil(o.Recommended) { + return true + } + + return false +} + +// SetRecommended gets a reference to the given string and assigns it to the Recommended field. +func (o *PlatformInfoCliVersion) SetRecommended(v string) { + o.Recommended = &v +} + +func (o PlatformInfoCliVersion) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlatformInfoCliVersion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Minimum) { + toSerialize["minimum"] = o.Minimum + } + if !IsNil(o.Recommended) { + toSerialize["recommended"] = o.Recommended + } + return toSerialize, nil +} + +type NullablePlatformInfoCliVersion struct { + value *PlatformInfoCliVersion + isSet bool +} + +func (v NullablePlatformInfoCliVersion) Get() *PlatformInfoCliVersion { + return v.value +} + +func (v *NullablePlatformInfoCliVersion) Set(val *PlatformInfoCliVersion) { + v.value = val + v.isSet = true +} + +func (v NullablePlatformInfoCliVersion) IsSet() bool { + return v.isSet +} + +func (v *NullablePlatformInfoCliVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlatformInfoCliVersion(val *PlatformInfoCliVersion) *NullablePlatformInfoCliVersion { + return &NullablePlatformInfoCliVersion{value: val, isSet: true} +} + +func (v NullablePlatformInfoCliVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlatformInfoCliVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_platform_info_links.go b/model_platform_info_links.go new file mode 100644 index 0000000..4a5362e --- /dev/null +++ b/model_platform_info_links.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the PlatformInfoLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PlatformInfoLinks{} + +// PlatformInfoLinks struct for PlatformInfoLinks +type PlatformInfoLinks struct { + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` + Support *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"support,omitempty"` +} + +// NewPlatformInfoLinks instantiates a new PlatformInfoLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPlatformInfoLinks() *PlatformInfoLinks { + this := PlatformInfoLinks{} + return &this +} + +// NewPlatformInfoLinksWithDefaults instantiates a new PlatformInfoLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPlatformInfoLinksWithDefaults() *PlatformInfoLinks { + this := PlatformInfoLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *PlatformInfoLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfoLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *PlatformInfoLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *PlatformInfoLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +// GetSupport returns the Support field value if set, zero value otherwise. +func (o *PlatformInfoLinks) GetSupport() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Support) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Support +} + +// GetSupportOk returns a tuple with the Support field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformInfoLinks) GetSupportOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Support) { + return nil, false + } + return o.Support, true +} + +// HasSupport returns a boolean if a field has been set. +func (o *PlatformInfoLinks) HasSupport() bool { + if o != nil && !IsNil(o.Support) { + return true + } + + return false +} + +// SetSupport gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Support field. +func (o *PlatformInfoLinks) SetSupport(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Support = &v +} + +func (o PlatformInfoLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PlatformInfoLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Support) { + toSerialize["support"] = o.Support + } + return toSerialize, nil +} + +type NullablePlatformInfoLinks struct { + value *PlatformInfoLinks + isSet bool +} + +func (v NullablePlatformInfoLinks) Get() *PlatformInfoLinks { + return v.value +} + +func (v *NullablePlatformInfoLinks) Set(val *PlatformInfoLinks) { + v.value = val + v.isSet = true +} + +func (v NullablePlatformInfoLinks) IsSet() bool { + return v.isSet +} + +func (v *NullablePlatformInfoLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlatformInfoLinks(val *PlatformInfoLinks) *NullablePlatformInfoLinks { + return &NullablePlatformInfoLinks{value: val, isSet: true} +} + +func (v NullablePlatformInfoLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlatformInfoLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process.go b/model_process.go new file mode 100644 index 0000000..876a685 --- /dev/null +++ b/model_process.go @@ -0,0 +1,641 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Process type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Process{} + +// Process struct for Process +type Process struct { + Command NullableString `json:"command,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + DiskInMb *int32 `json:"disk_in_mb,omitempty"` + Guid *string `json:"guid,omitempty"` + HealthCheck *HealthCheck `json:"health_check,omitempty"` + Instances *int32 `json:"instances,omitempty"` + Links *ProcessLinks `json:"links,omitempty"` + LogRateLimitInBytesPerSecond *int32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + ReadinessHealthCheck *ReadinessHealthCheck `json:"readiness_health_check,omitempty"` + Relationships *ProcessRelationships `json:"relationships,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewProcess instantiates a new Process object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcess() *Process { + this := Process{} + return &this +} + +// NewProcessWithDefaults instantiates a new Process object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessWithDefaults() *Process { + this := Process{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Process) GetCommand() string { + if o == nil || IsNil(o.Command.Get()) { + var ret string + return ret + } + return *o.Command.Get() +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Process) GetCommandOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Command.Get(), o.Command.IsSet() +} + +// HasCommand returns a boolean if a field has been set. +func (o *Process) HasCommand() bool { + if o != nil && o.Command.IsSet() { + return true + } + + return false +} + +// SetCommand gets a reference to the given NullableString and assigns it to the Command field. +func (o *Process) SetCommand(v string) { + o.Command.Set(&v) +} +// SetCommandNil sets the value for Command to be an explicit nil +func (o *Process) SetCommandNil() { + o.Command.Set(nil) +} + +// UnsetCommand ensures that no value is present for Command, not even an explicit nil +func (o *Process) UnsetCommand() { + o.Command.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Process) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Process) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Process) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDiskInMb returns the DiskInMb field value if set, zero value otherwise. +func (o *Process) GetDiskInMb() int32 { + if o == nil || IsNil(o.DiskInMb) { + var ret int32 + return ret + } + return *o.DiskInMb +} + +// GetDiskInMbOk returns a tuple with the DiskInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetDiskInMbOk() (*int32, bool) { + if o == nil || IsNil(o.DiskInMb) { + return nil, false + } + return o.DiskInMb, true +} + +// HasDiskInMb returns a boolean if a field has been set. +func (o *Process) HasDiskInMb() bool { + if o != nil && !IsNil(o.DiskInMb) { + return true + } + + return false +} + +// SetDiskInMb gets a reference to the given int32 and assigns it to the DiskInMb field. +func (o *Process) SetDiskInMb(v int32) { + o.DiskInMb = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Process) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Process) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Process) SetGuid(v string) { + o.Guid = &v +} + +// GetHealthCheck returns the HealthCheck field value if set, zero value otherwise. +func (o *Process) GetHealthCheck() HealthCheck { + if o == nil || IsNil(o.HealthCheck) { + var ret HealthCheck + return ret + } + return *o.HealthCheck +} + +// GetHealthCheckOk returns a tuple with the HealthCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetHealthCheckOk() (*HealthCheck, bool) { + if o == nil || IsNil(o.HealthCheck) { + return nil, false + } + return o.HealthCheck, true +} + +// HasHealthCheck returns a boolean if a field has been set. +func (o *Process) HasHealthCheck() bool { + if o != nil && !IsNil(o.HealthCheck) { + return true + } + + return false +} + +// SetHealthCheck gets a reference to the given HealthCheck and assigns it to the HealthCheck field. +func (o *Process) SetHealthCheck(v HealthCheck) { + o.HealthCheck = &v +} + +// GetInstances returns the Instances field value if set, zero value otherwise. +func (o *Process) GetInstances() int32 { + if o == nil || IsNil(o.Instances) { + var ret int32 + return ret + } + return *o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetInstancesOk() (*int32, bool) { + if o == nil || IsNil(o.Instances) { + return nil, false + } + return o.Instances, true +} + +// HasInstances returns a boolean if a field has been set. +func (o *Process) HasInstances() bool { + if o != nil && !IsNil(o.Instances) { + return true + } + + return false +} + +// SetInstances gets a reference to the given int32 and assigns it to the Instances field. +func (o *Process) SetInstances(v int32) { + o.Instances = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Process) GetLinks() ProcessLinks { + if o == nil || IsNil(o.Links) { + var ret ProcessLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetLinksOk() (*ProcessLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Process) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ProcessLinks and assigns it to the Links field. +func (o *Process) SetLinks(v ProcessLinks) { + o.Links = &v +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise. +func (o *Process) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + return nil, false + } + return o.LogRateLimitInBytesPerSecond, true +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *Process) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && !IsNil(o.LogRateLimitInBytesPerSecond) { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given int32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *Process) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *Process) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *Process) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *Process) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Process) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Process) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Process) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetReadinessHealthCheck returns the ReadinessHealthCheck field value if set, zero value otherwise. +func (o *Process) GetReadinessHealthCheck() ReadinessHealthCheck { + if o == nil || IsNil(o.ReadinessHealthCheck) { + var ret ReadinessHealthCheck + return ret + } + return *o.ReadinessHealthCheck +} + +// GetReadinessHealthCheckOk returns a tuple with the ReadinessHealthCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetReadinessHealthCheckOk() (*ReadinessHealthCheck, bool) { + if o == nil || IsNil(o.ReadinessHealthCheck) { + return nil, false + } + return o.ReadinessHealthCheck, true +} + +// HasReadinessHealthCheck returns a boolean if a field has been set. +func (o *Process) HasReadinessHealthCheck() bool { + if o != nil && !IsNil(o.ReadinessHealthCheck) { + return true + } + + return false +} + +// SetReadinessHealthCheck gets a reference to the given ReadinessHealthCheck and assigns it to the ReadinessHealthCheck field. +func (o *Process) SetReadinessHealthCheck(v ReadinessHealthCheck) { + o.ReadinessHealthCheck = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Process) GetRelationships() ProcessRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ProcessRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetRelationshipsOk() (*ProcessRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Process) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ProcessRelationships and assigns it to the Relationships field. +func (o *Process) SetRelationships(v ProcessRelationships) { + o.Relationships = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Process) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Process) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Process) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Process) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Process) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Process) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *Process) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Process) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *Process) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *Process) SetVersion(v string) { + o.Version = &v +} + +func (o Process) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Process) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Command.IsSet() { + toSerialize["command"] = o.Command.Get() + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DiskInMb) { + toSerialize["disk_in_mb"] = o.DiskInMb + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.HealthCheck) { + toSerialize["health_check"] = o.HealthCheck + } + if !IsNil(o.Instances) { + toSerialize["instances"] = o.Instances + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.LogRateLimitInBytesPerSecond) { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.ReadinessHealthCheck) { + toSerialize["readiness_health_check"] = o.ReadinessHealthCheck + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableProcess struct { + value *Process + isSet bool +} + +func (v NullableProcess) Get() *Process { + return v.value +} + +func (v *NullableProcess) Set(val *Process) { + v.value = val + v.isSet = true +} + +func (v NullableProcess) IsSet() bool { + return v.isSet +} + +func (v *NullableProcess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcess(val *Process) *NullableProcess { + return &NullableProcess{value: val, isSet: true} +} + +func (v NullableProcess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_links.go b/model_process_links.go new file mode 100644 index 0000000..be9ea3a --- /dev/null +++ b/model_process_links.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessLinks{} + +// ProcessLinks struct for ProcessLinks +type ProcessLinks struct { + App *Link `json:"app,omitempty"` + Scale *Link `json:"scale,omitempty"` + Self *Link `json:"self,omitempty"` + Space *Link `json:"space,omitempty"` + Stats *Link `json:"stats,omitempty"` +} + +// NewProcessLinks instantiates a new ProcessLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessLinks() *ProcessLinks { + this := ProcessLinks{} + return &this +} + +// NewProcessLinksWithDefaults instantiates a new ProcessLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessLinksWithDefaults() *ProcessLinks { + this := ProcessLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *ProcessLinks) GetApp() Link { + if o == nil || IsNil(o.App) { + var ret Link + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessLinks) GetAppOk() (*Link, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *ProcessLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given Link and assigns it to the App field. +func (o *ProcessLinks) SetApp(v Link) { + o.App = &v +} + +// GetScale returns the Scale field value if set, zero value otherwise. +func (o *ProcessLinks) GetScale() Link { + if o == nil || IsNil(o.Scale) { + var ret Link + return ret + } + return *o.Scale +} + +// GetScaleOk returns a tuple with the Scale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessLinks) GetScaleOk() (*Link, bool) { + if o == nil || IsNil(o.Scale) { + return nil, false + } + return o.Scale, true +} + +// HasScale returns a boolean if a field has been set. +func (o *ProcessLinks) HasScale() bool { + if o != nil && !IsNil(o.Scale) { + return true + } + + return false +} + +// SetScale gets a reference to the given Link and assigns it to the Scale field. +func (o *ProcessLinks) SetScale(v Link) { + o.Scale = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ProcessLinks) GetSelf() Link { + if o == nil || IsNil(o.Self) { + var ret Link + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessLinks) GetSelfOk() (*Link, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ProcessLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Link and assigns it to the Self field. +func (o *ProcessLinks) SetSelf(v Link) { + o.Self = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *ProcessLinks) GetSpace() Link { + if o == nil || IsNil(o.Space) { + var ret Link + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessLinks) GetSpaceOk() (*Link, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *ProcessLinks) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given Link and assigns it to the Space field. +func (o *ProcessLinks) SetSpace(v Link) { + o.Space = &v +} + +// GetStats returns the Stats field value if set, zero value otherwise. +func (o *ProcessLinks) GetStats() Link { + if o == nil || IsNil(o.Stats) { + var ret Link + return ret + } + return *o.Stats +} + +// GetStatsOk returns a tuple with the Stats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessLinks) GetStatsOk() (*Link, bool) { + if o == nil || IsNil(o.Stats) { + return nil, false + } + return o.Stats, true +} + +// HasStats returns a boolean if a field has been set. +func (o *ProcessLinks) HasStats() bool { + if o != nil && !IsNil(o.Stats) { + return true + } + + return false +} + +// SetStats gets a reference to the given Link and assigns it to the Stats field. +func (o *ProcessLinks) SetStats(v Link) { + o.Stats = &v +} + +func (o ProcessLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Scale) { + toSerialize["scale"] = o.Scale + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.Stats) { + toSerialize["stats"] = o.Stats + } + return toSerialize, nil +} + +type NullableProcessLinks struct { + value *ProcessLinks + isSet bool +} + +func (v NullableProcessLinks) Get() *ProcessLinks { + return v.value +} + +func (v *NullableProcessLinks) Set(val *ProcessLinks) { + v.value = val + v.isSet = true +} + +func (v NullableProcessLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessLinks(val *ProcessLinks) *NullableProcessLinks { + return &NullableProcessLinks{value: val, isSet: true} +} + +func (v NullableProcessLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_list.go b/model_process_list.go new file mode 100644 index 0000000..d4ef94e --- /dev/null +++ b/model_process_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessList{} + +// ProcessList struct for ProcessList +type ProcessList struct { + Pagination *Pagination `json:"pagination,omitempty"` + Resources []Process `json:"resources,omitempty"` +} + +// NewProcessList instantiates a new ProcessList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessList() *ProcessList { + this := ProcessList{} + return &this +} + +// NewProcessListWithDefaults instantiates a new ProcessList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessListWithDefaults() *ProcessList { + this := ProcessList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ProcessList) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessList) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *ProcessList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *ProcessList) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ProcessList) GetResources() []Process { + if o == nil || IsNil(o.Resources) { + var ret []Process + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessList) GetResourcesOk() ([]Process, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ProcessList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Process and assigns it to the Resources field. +func (o *ProcessList) SetResources(v []Process) { + o.Resources = v +} + +func (o ProcessList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableProcessList struct { + value *ProcessList + isSet bool +} + +func (v NullableProcessList) Get() *ProcessList { + return v.value +} + +func (v *NullableProcessList) Set(val *ProcessList) { + v.value = val + v.isSet = true +} + +func (v NullableProcessList) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessList(val *ProcessList) *NullableProcessList { + return &NullableProcessList{value: val, isSet: true} +} + +func (v NullableProcessList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_relationships.go b/model_process_relationships.go new file mode 100644 index 0000000..60c31c6 --- /dev/null +++ b/model_process_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessRelationships{} + +// ProcessRelationships struct for ProcessRelationships +type ProcessRelationships struct { + App *ToOneRelationship `json:"app,omitempty"` + Revision *ToOneRelationship `json:"revision,omitempty"` +} + +// NewProcessRelationships instantiates a new ProcessRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessRelationships() *ProcessRelationships { + this := ProcessRelationships{} + return &this +} + +// NewProcessRelationshipsWithDefaults instantiates a new ProcessRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessRelationshipsWithDefaults() *ProcessRelationships { + this := ProcessRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *ProcessRelationships) GetApp() ToOneRelationship { + if o == nil || IsNil(o.App) { + var ret ToOneRelationship + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessRelationships) GetAppOk() (*ToOneRelationship, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *ProcessRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given ToOneRelationship and assigns it to the App field. +func (o *ProcessRelationships) SetApp(v ToOneRelationship) { + o.App = &v +} + +// GetRevision returns the Revision field value if set, zero value otherwise. +func (o *ProcessRelationships) GetRevision() ToOneRelationship { + if o == nil || IsNil(o.Revision) { + var ret ToOneRelationship + return ret + } + return *o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessRelationships) GetRevisionOk() (*ToOneRelationship, bool) { + if o == nil || IsNil(o.Revision) { + return nil, false + } + return o.Revision, true +} + +// HasRevision returns a boolean if a field has been set. +func (o *ProcessRelationships) HasRevision() bool { + if o != nil && !IsNil(o.Revision) { + return true + } + + return false +} + +// SetRevision gets a reference to the given ToOneRelationship and assigns it to the Revision field. +func (o *ProcessRelationships) SetRevision(v ToOneRelationship) { + o.Revision = &v +} + +func (o ProcessRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Revision) { + toSerialize["revision"] = o.Revision + } + return toSerialize, nil +} + +type NullableProcessRelationships struct { + value *ProcessRelationships + isSet bool +} + +func (v NullableProcessRelationships) Get() *ProcessRelationships { + return v.value +} + +func (v *NullableProcessRelationships) Set(val *ProcessRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableProcessRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessRelationships(val *ProcessRelationships) *NullableProcessRelationships { + return &NullableProcessRelationships{value: val, isSet: true} +} + +func (v NullableProcessRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_scale.go b/model_process_scale.go new file mode 100644 index 0000000..d2dbc6c --- /dev/null +++ b/model_process_scale.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessScale type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessScale{} + +// ProcessScale struct for ProcessScale +type ProcessScale struct { + DiskInMb *int32 `json:"disk_in_mb,omitempty"` + Instances *int32 `json:"instances,omitempty"` + LogRateLimitInBytesPerSecond *int32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` +} + +// NewProcessScale instantiates a new ProcessScale object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessScale() *ProcessScale { + this := ProcessScale{} + return &this +} + +// NewProcessScaleWithDefaults instantiates a new ProcessScale object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessScaleWithDefaults() *ProcessScale { + this := ProcessScale{} + return &this +} + +// GetDiskInMb returns the DiskInMb field value if set, zero value otherwise. +func (o *ProcessScale) GetDiskInMb() int32 { + if o == nil || IsNil(o.DiskInMb) { + var ret int32 + return ret + } + return *o.DiskInMb +} + +// GetDiskInMbOk returns a tuple with the DiskInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessScale) GetDiskInMbOk() (*int32, bool) { + if o == nil || IsNil(o.DiskInMb) { + return nil, false + } + return o.DiskInMb, true +} + +// HasDiskInMb returns a boolean if a field has been set. +func (o *ProcessScale) HasDiskInMb() bool { + if o != nil && !IsNil(o.DiskInMb) { + return true + } + + return false +} + +// SetDiskInMb gets a reference to the given int32 and assigns it to the DiskInMb field. +func (o *ProcessScale) SetDiskInMb(v int32) { + o.DiskInMb = &v +} + +// GetInstances returns the Instances field value if set, zero value otherwise. +func (o *ProcessScale) GetInstances() int32 { + if o == nil || IsNil(o.Instances) { + var ret int32 + return ret + } + return *o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessScale) GetInstancesOk() (*int32, bool) { + if o == nil || IsNil(o.Instances) { + return nil, false + } + return o.Instances, true +} + +// HasInstances returns a boolean if a field has been set. +func (o *ProcessScale) HasInstances() bool { + if o != nil && !IsNil(o.Instances) { + return true + } + + return false +} + +// SetInstances gets a reference to the given int32 and assigns it to the Instances field. +func (o *ProcessScale) SetInstances(v int32) { + o.Instances = &v +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise. +func (o *ProcessScale) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessScale) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + return nil, false + } + return o.LogRateLimitInBytesPerSecond, true +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *ProcessScale) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && !IsNil(o.LogRateLimitInBytesPerSecond) { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given int32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *ProcessScale) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *ProcessScale) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessScale) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *ProcessScale) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *ProcessScale) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +func (o ProcessScale) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessScale) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DiskInMb) { + toSerialize["disk_in_mb"] = o.DiskInMb + } + if !IsNil(o.Instances) { + toSerialize["instances"] = o.Instances + } + if !IsNil(o.LogRateLimitInBytesPerSecond) { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + return toSerialize, nil +} + +type NullableProcessScale struct { + value *ProcessScale + isSet bool +} + +func (v NullableProcessScale) Get() *ProcessScale { + return v.value +} + +func (v *NullableProcessScale) Set(val *ProcessScale) { + v.value = val + v.isSet = true +} + +func (v NullableProcessScale) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessScale) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessScale(val *ProcessScale) *NullableProcessScale { + return &NullableProcessScale{value: val, isSet: true} +} + +func (v NullableProcessScale) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessScale) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_stats.go b/model_process_stats.go new file mode 100644 index 0000000..ff62fed --- /dev/null +++ b/model_process_stats.go @@ -0,0 +1,644 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessStats type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessStats{} + +// ProcessStats struct for ProcessStats +type ProcessStats struct { + Details NullableString `json:"details,omitempty"` + DiskQuota NullableInt32 `json:"disk_quota,omitempty"` + FdsQuota *int32 `json:"fds_quota,omitempty"` + Host *string `json:"host,omitempty"` + Index *int32 `json:"index,omitempty"` + InstanceInternalIp *string `json:"instance_internal_ip,omitempty"` + InstancePorts []ProcessStatsInstancePortsInner `json:"instance_ports,omitempty"` + IsolationSegment NullableString `json:"isolation_segment,omitempty"` + LogRateLimit NullableInt32 `json:"log_rate_limit,omitempty"` + MemQuota NullableInt32 `json:"mem_quota,omitempty"` + State *string `json:"state,omitempty"` + Type *string `json:"type,omitempty"` + Uptime *int32 `json:"uptime,omitempty"` + Usage *ProcessStatsUsage `json:"usage,omitempty"` +} + +// NewProcessStats instantiates a new ProcessStats object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessStats() *ProcessStats { + this := ProcessStats{} + return &this +} + +// NewProcessStatsWithDefaults instantiates a new ProcessStats object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessStatsWithDefaults() *ProcessStats { + this := ProcessStats{} + return &this +} + +// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessStats) GetDetails() string { + if o == nil || IsNil(o.Details.Get()) { + var ret string + return ret + } + return *o.Details.Get() +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessStats) GetDetailsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Details.Get(), o.Details.IsSet() +} + +// HasDetails returns a boolean if a field has been set. +func (o *ProcessStats) HasDetails() bool { + if o != nil && o.Details.IsSet() { + return true + } + + return false +} + +// SetDetails gets a reference to the given NullableString and assigns it to the Details field. +func (o *ProcessStats) SetDetails(v string) { + o.Details.Set(&v) +} +// SetDetailsNil sets the value for Details to be an explicit nil +func (o *ProcessStats) SetDetailsNil() { + o.Details.Set(nil) +} + +// UnsetDetails ensures that no value is present for Details, not even an explicit nil +func (o *ProcessStats) UnsetDetails() { + o.Details.Unset() +} + +// GetDiskQuota returns the DiskQuota field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessStats) GetDiskQuota() int32 { + if o == nil || IsNil(o.DiskQuota.Get()) { + var ret int32 + return ret + } + return *o.DiskQuota.Get() +} + +// GetDiskQuotaOk returns a tuple with the DiskQuota field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessStats) GetDiskQuotaOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DiskQuota.Get(), o.DiskQuota.IsSet() +} + +// HasDiskQuota returns a boolean if a field has been set. +func (o *ProcessStats) HasDiskQuota() bool { + if o != nil && o.DiskQuota.IsSet() { + return true + } + + return false +} + +// SetDiskQuota gets a reference to the given NullableInt32 and assigns it to the DiskQuota field. +func (o *ProcessStats) SetDiskQuota(v int32) { + o.DiskQuota.Set(&v) +} +// SetDiskQuotaNil sets the value for DiskQuota to be an explicit nil +func (o *ProcessStats) SetDiskQuotaNil() { + o.DiskQuota.Set(nil) +} + +// UnsetDiskQuota ensures that no value is present for DiskQuota, not even an explicit nil +func (o *ProcessStats) UnsetDiskQuota() { + o.DiskQuota.Unset() +} + +// GetFdsQuota returns the FdsQuota field value if set, zero value otherwise. +func (o *ProcessStats) GetFdsQuota() int32 { + if o == nil || IsNil(o.FdsQuota) { + var ret int32 + return ret + } + return *o.FdsQuota +} + +// GetFdsQuotaOk returns a tuple with the FdsQuota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetFdsQuotaOk() (*int32, bool) { + if o == nil || IsNil(o.FdsQuota) { + return nil, false + } + return o.FdsQuota, true +} + +// HasFdsQuota returns a boolean if a field has been set. +func (o *ProcessStats) HasFdsQuota() bool { + if o != nil && !IsNil(o.FdsQuota) { + return true + } + + return false +} + +// SetFdsQuota gets a reference to the given int32 and assigns it to the FdsQuota field. +func (o *ProcessStats) SetFdsQuota(v int32) { + o.FdsQuota = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *ProcessStats) GetHost() string { + if o == nil || IsNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetHostOk() (*string, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *ProcessStats) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *ProcessStats) SetHost(v string) { + o.Host = &v +} + +// GetIndex returns the Index field value if set, zero value otherwise. +func (o *ProcessStats) GetIndex() int32 { + if o == nil || IsNil(o.Index) { + var ret int32 + return ret + } + return *o.Index +} + +// GetIndexOk returns a tuple with the Index field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetIndexOk() (*int32, bool) { + if o == nil || IsNil(o.Index) { + return nil, false + } + return o.Index, true +} + +// HasIndex returns a boolean if a field has been set. +func (o *ProcessStats) HasIndex() bool { + if o != nil && !IsNil(o.Index) { + return true + } + + return false +} + +// SetIndex gets a reference to the given int32 and assigns it to the Index field. +func (o *ProcessStats) SetIndex(v int32) { + o.Index = &v +} + +// GetInstanceInternalIp returns the InstanceInternalIp field value if set, zero value otherwise. +func (o *ProcessStats) GetInstanceInternalIp() string { + if o == nil || IsNil(o.InstanceInternalIp) { + var ret string + return ret + } + return *o.InstanceInternalIp +} + +// GetInstanceInternalIpOk returns a tuple with the InstanceInternalIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetInstanceInternalIpOk() (*string, bool) { + if o == nil || IsNil(o.InstanceInternalIp) { + return nil, false + } + return o.InstanceInternalIp, true +} + +// HasInstanceInternalIp returns a boolean if a field has been set. +func (o *ProcessStats) HasInstanceInternalIp() bool { + if o != nil && !IsNil(o.InstanceInternalIp) { + return true + } + + return false +} + +// SetInstanceInternalIp gets a reference to the given string and assigns it to the InstanceInternalIp field. +func (o *ProcessStats) SetInstanceInternalIp(v string) { + o.InstanceInternalIp = &v +} + +// GetInstancePorts returns the InstancePorts field value if set, zero value otherwise. +func (o *ProcessStats) GetInstancePorts() []ProcessStatsInstancePortsInner { + if o == nil || IsNil(o.InstancePorts) { + var ret []ProcessStatsInstancePortsInner + return ret + } + return o.InstancePorts +} + +// GetInstancePortsOk returns a tuple with the InstancePorts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetInstancePortsOk() ([]ProcessStatsInstancePortsInner, bool) { + if o == nil || IsNil(o.InstancePorts) { + return nil, false + } + return o.InstancePorts, true +} + +// HasInstancePorts returns a boolean if a field has been set. +func (o *ProcessStats) HasInstancePorts() bool { + if o != nil && !IsNil(o.InstancePorts) { + return true + } + + return false +} + +// SetInstancePorts gets a reference to the given []ProcessStatsInstancePortsInner and assigns it to the InstancePorts field. +func (o *ProcessStats) SetInstancePorts(v []ProcessStatsInstancePortsInner) { + o.InstancePorts = v +} + +// GetIsolationSegment returns the IsolationSegment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessStats) GetIsolationSegment() string { + if o == nil || IsNil(o.IsolationSegment.Get()) { + var ret string + return ret + } + return *o.IsolationSegment.Get() +} + +// GetIsolationSegmentOk returns a tuple with the IsolationSegment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessStats) GetIsolationSegmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IsolationSegment.Get(), o.IsolationSegment.IsSet() +} + +// HasIsolationSegment returns a boolean if a field has been set. +func (o *ProcessStats) HasIsolationSegment() bool { + if o != nil && o.IsolationSegment.IsSet() { + return true + } + + return false +} + +// SetIsolationSegment gets a reference to the given NullableString and assigns it to the IsolationSegment field. +func (o *ProcessStats) SetIsolationSegment(v string) { + o.IsolationSegment.Set(&v) +} +// SetIsolationSegmentNil sets the value for IsolationSegment to be an explicit nil +func (o *ProcessStats) SetIsolationSegmentNil() { + o.IsolationSegment.Set(nil) +} + +// UnsetIsolationSegment ensures that no value is present for IsolationSegment, not even an explicit nil +func (o *ProcessStats) UnsetIsolationSegment() { + o.IsolationSegment.Unset() +} + +// GetLogRateLimit returns the LogRateLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessStats) GetLogRateLimit() int32 { + if o == nil || IsNil(o.LogRateLimit.Get()) { + var ret int32 + return ret + } + return *o.LogRateLimit.Get() +} + +// GetLogRateLimitOk returns a tuple with the LogRateLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessStats) GetLogRateLimitOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LogRateLimit.Get(), o.LogRateLimit.IsSet() +} + +// HasLogRateLimit returns a boolean if a field has been set. +func (o *ProcessStats) HasLogRateLimit() bool { + if o != nil && o.LogRateLimit.IsSet() { + return true + } + + return false +} + +// SetLogRateLimit gets a reference to the given NullableInt32 and assigns it to the LogRateLimit field. +func (o *ProcessStats) SetLogRateLimit(v int32) { + o.LogRateLimit.Set(&v) +} +// SetLogRateLimitNil sets the value for LogRateLimit to be an explicit nil +func (o *ProcessStats) SetLogRateLimitNil() { + o.LogRateLimit.Set(nil) +} + +// UnsetLogRateLimit ensures that no value is present for LogRateLimit, not even an explicit nil +func (o *ProcessStats) UnsetLogRateLimit() { + o.LogRateLimit.Unset() +} + +// GetMemQuota returns the MemQuota field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessStats) GetMemQuota() int32 { + if o == nil || IsNil(o.MemQuota.Get()) { + var ret int32 + return ret + } + return *o.MemQuota.Get() +} + +// GetMemQuotaOk returns a tuple with the MemQuota field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessStats) GetMemQuotaOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MemQuota.Get(), o.MemQuota.IsSet() +} + +// HasMemQuota returns a boolean if a field has been set. +func (o *ProcessStats) HasMemQuota() bool { + if o != nil && o.MemQuota.IsSet() { + return true + } + + return false +} + +// SetMemQuota gets a reference to the given NullableInt32 and assigns it to the MemQuota field. +func (o *ProcessStats) SetMemQuota(v int32) { + o.MemQuota.Set(&v) +} +// SetMemQuotaNil sets the value for MemQuota to be an explicit nil +func (o *ProcessStats) SetMemQuotaNil() { + o.MemQuota.Set(nil) +} + +// UnsetMemQuota ensures that no value is present for MemQuota, not even an explicit nil +func (o *ProcessStats) UnsetMemQuota() { + o.MemQuota.Unset() +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ProcessStats) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ProcessStats) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ProcessStats) SetState(v string) { + o.State = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ProcessStats) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ProcessStats) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ProcessStats) SetType(v string) { + o.Type = &v +} + +// GetUptime returns the Uptime field value if set, zero value otherwise. +func (o *ProcessStats) GetUptime() int32 { + if o == nil || IsNil(o.Uptime) { + var ret int32 + return ret + } + return *o.Uptime +} + +// GetUptimeOk returns a tuple with the Uptime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetUptimeOk() (*int32, bool) { + if o == nil || IsNil(o.Uptime) { + return nil, false + } + return o.Uptime, true +} + +// HasUptime returns a boolean if a field has been set. +func (o *ProcessStats) HasUptime() bool { + if o != nil && !IsNil(o.Uptime) { + return true + } + + return false +} + +// SetUptime gets a reference to the given int32 and assigns it to the Uptime field. +func (o *ProcessStats) SetUptime(v int32) { + o.Uptime = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *ProcessStats) GetUsage() ProcessStatsUsage { + if o == nil || IsNil(o.Usage) { + var ret ProcessStatsUsage + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStats) GetUsageOk() (*ProcessStatsUsage, bool) { + if o == nil || IsNil(o.Usage) { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *ProcessStats) HasUsage() bool { + if o != nil && !IsNil(o.Usage) { + return true + } + + return false +} + +// SetUsage gets a reference to the given ProcessStatsUsage and assigns it to the Usage field. +func (o *ProcessStats) SetUsage(v ProcessStatsUsage) { + o.Usage = &v +} + +func (o ProcessStats) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessStats) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Details.IsSet() { + toSerialize["details"] = o.Details.Get() + } + if o.DiskQuota.IsSet() { + toSerialize["disk_quota"] = o.DiskQuota.Get() + } + if !IsNil(o.FdsQuota) { + toSerialize["fds_quota"] = o.FdsQuota + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + if !IsNil(o.Index) { + toSerialize["index"] = o.Index + } + if !IsNil(o.InstanceInternalIp) { + toSerialize["instance_internal_ip"] = o.InstanceInternalIp + } + if !IsNil(o.InstancePorts) { + toSerialize["instance_ports"] = o.InstancePorts + } + if o.IsolationSegment.IsSet() { + toSerialize["isolation_segment"] = o.IsolationSegment.Get() + } + if o.LogRateLimit.IsSet() { + toSerialize["log_rate_limit"] = o.LogRateLimit.Get() + } + if o.MemQuota.IsSet() { + toSerialize["mem_quota"] = o.MemQuota.Get() + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Uptime) { + toSerialize["uptime"] = o.Uptime + } + if !IsNil(o.Usage) { + toSerialize["usage"] = o.Usage + } + return toSerialize, nil +} + +type NullableProcessStats struct { + value *ProcessStats + isSet bool +} + +func (v NullableProcessStats) Get() *ProcessStats { + return v.value +} + +func (v *NullableProcessStats) Set(val *ProcessStats) { + v.value = val + v.isSet = true +} + +func (v NullableProcessStats) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessStats) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessStats(val *ProcessStats) *NullableProcessStats { + return &NullableProcessStats{value: val, isSet: true} +} + +func (v NullableProcessStats) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessStats) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_stats_instance_ports_inner.go b/model_process_stats_instance_ports_inner.go new file mode 100644 index 0000000..b25ea7c --- /dev/null +++ b/model_process_stats_instance_ports_inner.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessStatsInstancePortsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessStatsInstancePortsInner{} + +// ProcessStatsInstancePortsInner struct for ProcessStatsInstancePortsInner +type ProcessStatsInstancePortsInner struct { + External *int32 `json:"external,omitempty"` + ExternalTlsProxyPort *int32 `json:"external_tls_proxy_port,omitempty"` + Internal *int32 `json:"internal,omitempty"` + InternalTlsProxyPort *int32 `json:"internal_tls_proxy_port,omitempty"` +} + +// NewProcessStatsInstancePortsInner instantiates a new ProcessStatsInstancePortsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessStatsInstancePortsInner() *ProcessStatsInstancePortsInner { + this := ProcessStatsInstancePortsInner{} + return &this +} + +// NewProcessStatsInstancePortsInnerWithDefaults instantiates a new ProcessStatsInstancePortsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessStatsInstancePortsInnerWithDefaults() *ProcessStatsInstancePortsInner { + this := ProcessStatsInstancePortsInner{} + return &this +} + +// GetExternal returns the External field value if set, zero value otherwise. +func (o *ProcessStatsInstancePortsInner) GetExternal() int32 { + if o == nil || IsNil(o.External) { + var ret int32 + return ret + } + return *o.External +} + +// GetExternalOk returns a tuple with the External field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsInstancePortsInner) GetExternalOk() (*int32, bool) { + if o == nil || IsNil(o.External) { + return nil, false + } + return o.External, true +} + +// HasExternal returns a boolean if a field has been set. +func (o *ProcessStatsInstancePortsInner) HasExternal() bool { + if o != nil && !IsNil(o.External) { + return true + } + + return false +} + +// SetExternal gets a reference to the given int32 and assigns it to the External field. +func (o *ProcessStatsInstancePortsInner) SetExternal(v int32) { + o.External = &v +} + +// GetExternalTlsProxyPort returns the ExternalTlsProxyPort field value if set, zero value otherwise. +func (o *ProcessStatsInstancePortsInner) GetExternalTlsProxyPort() int32 { + if o == nil || IsNil(o.ExternalTlsProxyPort) { + var ret int32 + return ret + } + return *o.ExternalTlsProxyPort +} + +// GetExternalTlsProxyPortOk returns a tuple with the ExternalTlsProxyPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsInstancePortsInner) GetExternalTlsProxyPortOk() (*int32, bool) { + if o == nil || IsNil(o.ExternalTlsProxyPort) { + return nil, false + } + return o.ExternalTlsProxyPort, true +} + +// HasExternalTlsProxyPort returns a boolean if a field has been set. +func (o *ProcessStatsInstancePortsInner) HasExternalTlsProxyPort() bool { + if o != nil && !IsNil(o.ExternalTlsProxyPort) { + return true + } + + return false +} + +// SetExternalTlsProxyPort gets a reference to the given int32 and assigns it to the ExternalTlsProxyPort field. +func (o *ProcessStatsInstancePortsInner) SetExternalTlsProxyPort(v int32) { + o.ExternalTlsProxyPort = &v +} + +// GetInternal returns the Internal field value if set, zero value otherwise. +func (o *ProcessStatsInstancePortsInner) GetInternal() int32 { + if o == nil || IsNil(o.Internal) { + var ret int32 + return ret + } + return *o.Internal +} + +// GetInternalOk returns a tuple with the Internal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsInstancePortsInner) GetInternalOk() (*int32, bool) { + if o == nil || IsNil(o.Internal) { + return nil, false + } + return o.Internal, true +} + +// HasInternal returns a boolean if a field has been set. +func (o *ProcessStatsInstancePortsInner) HasInternal() bool { + if o != nil && !IsNil(o.Internal) { + return true + } + + return false +} + +// SetInternal gets a reference to the given int32 and assigns it to the Internal field. +func (o *ProcessStatsInstancePortsInner) SetInternal(v int32) { + o.Internal = &v +} + +// GetInternalTlsProxyPort returns the InternalTlsProxyPort field value if set, zero value otherwise. +func (o *ProcessStatsInstancePortsInner) GetInternalTlsProxyPort() int32 { + if o == nil || IsNil(o.InternalTlsProxyPort) { + var ret int32 + return ret + } + return *o.InternalTlsProxyPort +} + +// GetInternalTlsProxyPortOk returns a tuple with the InternalTlsProxyPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsInstancePortsInner) GetInternalTlsProxyPortOk() (*int32, bool) { + if o == nil || IsNil(o.InternalTlsProxyPort) { + return nil, false + } + return o.InternalTlsProxyPort, true +} + +// HasInternalTlsProxyPort returns a boolean if a field has been set. +func (o *ProcessStatsInstancePortsInner) HasInternalTlsProxyPort() bool { + if o != nil && !IsNil(o.InternalTlsProxyPort) { + return true + } + + return false +} + +// SetInternalTlsProxyPort gets a reference to the given int32 and assigns it to the InternalTlsProxyPort field. +func (o *ProcessStatsInstancePortsInner) SetInternalTlsProxyPort(v int32) { + o.InternalTlsProxyPort = &v +} + +func (o ProcessStatsInstancePortsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessStatsInstancePortsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.External) { + toSerialize["external"] = o.External + } + if !IsNil(o.ExternalTlsProxyPort) { + toSerialize["external_tls_proxy_port"] = o.ExternalTlsProxyPort + } + if !IsNil(o.Internal) { + toSerialize["internal"] = o.Internal + } + if !IsNil(o.InternalTlsProxyPort) { + toSerialize["internal_tls_proxy_port"] = o.InternalTlsProxyPort + } + return toSerialize, nil +} + +type NullableProcessStatsInstancePortsInner struct { + value *ProcessStatsInstancePortsInner + isSet bool +} + +func (v NullableProcessStatsInstancePortsInner) Get() *ProcessStatsInstancePortsInner { + return v.value +} + +func (v *NullableProcessStatsInstancePortsInner) Set(val *ProcessStatsInstancePortsInner) { + v.value = val + v.isSet = true +} + +func (v NullableProcessStatsInstancePortsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessStatsInstancePortsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessStatsInstancePortsInner(val *ProcessStatsInstancePortsInner) *NullableProcessStatsInstancePortsInner { + return &NullableProcessStatsInstancePortsInner{value: val, isSet: true} +} + +func (v NullableProcessStatsInstancePortsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessStatsInstancePortsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_stats_usage.go b/model_process_stats_usage.go new file mode 100644 index 0000000..98d2f2e --- /dev/null +++ b/model_process_stats_usage.go @@ -0,0 +1,271 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ProcessStatsUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessStatsUsage{} + +// ProcessStatsUsage struct for ProcessStatsUsage +type ProcessStatsUsage struct { + Cpu *float32 `json:"cpu,omitempty"` + Disk *int32 `json:"disk,omitempty"` + LogRate *int32 `json:"log_rate,omitempty"` + Mem *int32 `json:"mem,omitempty"` + Time *time.Time `json:"time,omitempty"` +} + +// NewProcessStatsUsage instantiates a new ProcessStatsUsage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessStatsUsage() *ProcessStatsUsage { + this := ProcessStatsUsage{} + return &this +} + +// NewProcessStatsUsageWithDefaults instantiates a new ProcessStatsUsage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessStatsUsageWithDefaults() *ProcessStatsUsage { + this := ProcessStatsUsage{} + return &this +} + +// GetCpu returns the Cpu field value if set, zero value otherwise. +func (o *ProcessStatsUsage) GetCpu() float32 { + if o == nil || IsNil(o.Cpu) { + var ret float32 + return ret + } + return *o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsUsage) GetCpuOk() (*float32, bool) { + if o == nil || IsNil(o.Cpu) { + return nil, false + } + return o.Cpu, true +} + +// HasCpu returns a boolean if a field has been set. +func (o *ProcessStatsUsage) HasCpu() bool { + if o != nil && !IsNil(o.Cpu) { + return true + } + + return false +} + +// SetCpu gets a reference to the given float32 and assigns it to the Cpu field. +func (o *ProcessStatsUsage) SetCpu(v float32) { + o.Cpu = &v +} + +// GetDisk returns the Disk field value if set, zero value otherwise. +func (o *ProcessStatsUsage) GetDisk() int32 { + if o == nil || IsNil(o.Disk) { + var ret int32 + return ret + } + return *o.Disk +} + +// GetDiskOk returns a tuple with the Disk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsUsage) GetDiskOk() (*int32, bool) { + if o == nil || IsNil(o.Disk) { + return nil, false + } + return o.Disk, true +} + +// HasDisk returns a boolean if a field has been set. +func (o *ProcessStatsUsage) HasDisk() bool { + if o != nil && !IsNil(o.Disk) { + return true + } + + return false +} + +// SetDisk gets a reference to the given int32 and assigns it to the Disk field. +func (o *ProcessStatsUsage) SetDisk(v int32) { + o.Disk = &v +} + +// GetLogRate returns the LogRate field value if set, zero value otherwise. +func (o *ProcessStatsUsage) GetLogRate() int32 { + if o == nil || IsNil(o.LogRate) { + var ret int32 + return ret + } + return *o.LogRate +} + +// GetLogRateOk returns a tuple with the LogRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsUsage) GetLogRateOk() (*int32, bool) { + if o == nil || IsNil(o.LogRate) { + return nil, false + } + return o.LogRate, true +} + +// HasLogRate returns a boolean if a field has been set. +func (o *ProcessStatsUsage) HasLogRate() bool { + if o != nil && !IsNil(o.LogRate) { + return true + } + + return false +} + +// SetLogRate gets a reference to the given int32 and assigns it to the LogRate field. +func (o *ProcessStatsUsage) SetLogRate(v int32) { + o.LogRate = &v +} + +// GetMem returns the Mem field value if set, zero value otherwise. +func (o *ProcessStatsUsage) GetMem() int32 { + if o == nil || IsNil(o.Mem) { + var ret int32 + return ret + } + return *o.Mem +} + +// GetMemOk returns a tuple with the Mem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsUsage) GetMemOk() (*int32, bool) { + if o == nil || IsNil(o.Mem) { + return nil, false + } + return o.Mem, true +} + +// HasMem returns a boolean if a field has been set. +func (o *ProcessStatsUsage) HasMem() bool { + if o != nil && !IsNil(o.Mem) { + return true + } + + return false +} + +// SetMem gets a reference to the given int32 and assigns it to the Mem field. +func (o *ProcessStatsUsage) SetMem(v int32) { + o.Mem = &v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *ProcessStatsUsage) GetTime() time.Time { + if o == nil || IsNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessStatsUsage) GetTimeOk() (*time.Time, bool) { + if o == nil || IsNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *ProcessStatsUsage) HasTime() bool { + if o != nil && !IsNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *ProcessStatsUsage) SetTime(v time.Time) { + o.Time = &v +} + +func (o ProcessStatsUsage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessStatsUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cpu) { + toSerialize["cpu"] = o.Cpu + } + if !IsNil(o.Disk) { + toSerialize["disk"] = o.Disk + } + if !IsNil(o.LogRate) { + toSerialize["log_rate"] = o.LogRate + } + if !IsNil(o.Mem) { + toSerialize["mem"] = o.Mem + } + if !IsNil(o.Time) { + toSerialize["time"] = o.Time + } + return toSerialize, nil +} + +type NullableProcessStatsUsage struct { + value *ProcessStatsUsage + isSet bool +} + +func (v NullableProcessStatsUsage) Get() *ProcessStatsUsage { + return v.value +} + +func (v *NullableProcessStatsUsage) Set(val *ProcessStatsUsage) { + v.value = val + v.isSet = true +} + +func (v NullableProcessStatsUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessStatsUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessStatsUsage(val *ProcessStatsUsage) *NullableProcessStatsUsage { + return &NullableProcessStatsUsage{value: val, isSet: true} +} + +func (v NullableProcessStatsUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessStatsUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_process_update.go b/model_process_update.go new file mode 100644 index 0000000..c6db9af --- /dev/null +++ b/model_process_update.go @@ -0,0 +1,244 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ProcessUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProcessUpdate{} + +// ProcessUpdate struct for ProcessUpdate +type ProcessUpdate struct { + Command NullableString `json:"command,omitempty"` + HealthCheck *HealthCheck `json:"health_check,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + ReadinessHealthCheck *ReadinessHealthCheck `json:"readiness_health_check,omitempty"` +} + +// NewProcessUpdate instantiates a new ProcessUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProcessUpdate() *ProcessUpdate { + this := ProcessUpdate{} + return &this +} + +// NewProcessUpdateWithDefaults instantiates a new ProcessUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProcessUpdateWithDefaults() *ProcessUpdate { + this := ProcessUpdate{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProcessUpdate) GetCommand() string { + if o == nil || IsNil(o.Command.Get()) { + var ret string + return ret + } + return *o.Command.Get() +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProcessUpdate) GetCommandOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Command.Get(), o.Command.IsSet() +} + +// HasCommand returns a boolean if a field has been set. +func (o *ProcessUpdate) HasCommand() bool { + if o != nil && o.Command.IsSet() { + return true + } + + return false +} + +// SetCommand gets a reference to the given NullableString and assigns it to the Command field. +func (o *ProcessUpdate) SetCommand(v string) { + o.Command.Set(&v) +} +// SetCommandNil sets the value for Command to be an explicit nil +func (o *ProcessUpdate) SetCommandNil() { + o.Command.Set(nil) +} + +// UnsetCommand ensures that no value is present for Command, not even an explicit nil +func (o *ProcessUpdate) UnsetCommand() { + o.Command.Unset() +} + +// GetHealthCheck returns the HealthCheck field value if set, zero value otherwise. +func (o *ProcessUpdate) GetHealthCheck() HealthCheck { + if o == nil || IsNil(o.HealthCheck) { + var ret HealthCheck + return ret + } + return *o.HealthCheck +} + +// GetHealthCheckOk returns a tuple with the HealthCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessUpdate) GetHealthCheckOk() (*HealthCheck, bool) { + if o == nil || IsNil(o.HealthCheck) { + return nil, false + } + return o.HealthCheck, true +} + +// HasHealthCheck returns a boolean if a field has been set. +func (o *ProcessUpdate) HasHealthCheck() bool { + if o != nil && !IsNil(o.HealthCheck) { + return true + } + + return false +} + +// SetHealthCheck gets a reference to the given HealthCheck and assigns it to the HealthCheck field. +func (o *ProcessUpdate) SetHealthCheck(v HealthCheck) { + o.HealthCheck = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ProcessUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ProcessUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ProcessUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetReadinessHealthCheck returns the ReadinessHealthCheck field value if set, zero value otherwise. +func (o *ProcessUpdate) GetReadinessHealthCheck() ReadinessHealthCheck { + if o == nil || IsNil(o.ReadinessHealthCheck) { + var ret ReadinessHealthCheck + return ret + } + return *o.ReadinessHealthCheck +} + +// GetReadinessHealthCheckOk returns a tuple with the ReadinessHealthCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessUpdate) GetReadinessHealthCheckOk() (*ReadinessHealthCheck, bool) { + if o == nil || IsNil(o.ReadinessHealthCheck) { + return nil, false + } + return o.ReadinessHealthCheck, true +} + +// HasReadinessHealthCheck returns a boolean if a field has been set. +func (o *ProcessUpdate) HasReadinessHealthCheck() bool { + if o != nil && !IsNil(o.ReadinessHealthCheck) { + return true + } + + return false +} + +// SetReadinessHealthCheck gets a reference to the given ReadinessHealthCheck and assigns it to the ReadinessHealthCheck field. +func (o *ProcessUpdate) SetReadinessHealthCheck(v ReadinessHealthCheck) { + o.ReadinessHealthCheck = &v +} + +func (o ProcessUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProcessUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Command.IsSet() { + toSerialize["command"] = o.Command.Get() + } + if !IsNil(o.HealthCheck) { + toSerialize["health_check"] = o.HealthCheck + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.ReadinessHealthCheck) { + toSerialize["readiness_health_check"] = o.ReadinessHealthCheck + } + return toSerialize, nil +} + +type NullableProcessUpdate struct { + value *ProcessUpdate + isSet bool +} + +func (v NullableProcessUpdate) Get() *ProcessUpdate { + return v.value +} + +func (v *NullableProcessUpdate) Set(val *ProcessUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableProcessUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessUpdate(val *ProcessUpdate) *NullableProcessUpdate { + return &NullableProcessUpdate{value: val, isSet: true} +} + +func (v NullableProcessUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_readiness_health_check.go b/model_readiness_health_check.go new file mode 100644 index 0000000..3a648c9 --- /dev/null +++ b/model_readiness_health_check.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ReadinessHealthCheck type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadinessHealthCheck{} + +// ReadinessHealthCheck struct for ReadinessHealthCheck +type ReadinessHealthCheck struct { + Data *ReadinessHealthCheckData `json:"data,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewReadinessHealthCheck instantiates a new ReadinessHealthCheck object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadinessHealthCheck() *ReadinessHealthCheck { + this := ReadinessHealthCheck{} + return &this +} + +// NewReadinessHealthCheckWithDefaults instantiates a new ReadinessHealthCheck object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadinessHealthCheckWithDefaults() *ReadinessHealthCheck { + this := ReadinessHealthCheck{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ReadinessHealthCheck) GetData() ReadinessHealthCheckData { + if o == nil || IsNil(o.Data) { + var ret ReadinessHealthCheckData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadinessHealthCheck) GetDataOk() (*ReadinessHealthCheckData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ReadinessHealthCheck) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given ReadinessHealthCheckData and assigns it to the Data field. +func (o *ReadinessHealthCheck) SetData(v ReadinessHealthCheckData) { + o.Data = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ReadinessHealthCheck) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadinessHealthCheck) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ReadinessHealthCheck) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ReadinessHealthCheck) SetType(v string) { + o.Type = &v +} + +func (o ReadinessHealthCheck) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadinessHealthCheck) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableReadinessHealthCheck struct { + value *ReadinessHealthCheck + isSet bool +} + +func (v NullableReadinessHealthCheck) Get() *ReadinessHealthCheck { + return v.value +} + +func (v *NullableReadinessHealthCheck) Set(val *ReadinessHealthCheck) { + v.value = val + v.isSet = true +} + +func (v NullableReadinessHealthCheck) IsSet() bool { + return v.isSet +} + +func (v *NullableReadinessHealthCheck) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadinessHealthCheck(val *ReadinessHealthCheck) *NullableReadinessHealthCheck { + return &NullableReadinessHealthCheck{value: val, isSet: true} +} + +func (v NullableReadinessHealthCheck) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadinessHealthCheck) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_readiness_health_check_data.go b/model_readiness_health_check_data.go new file mode 100644 index 0000000..40141cc --- /dev/null +++ b/model_readiness_health_check_data.go @@ -0,0 +1,228 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ReadinessHealthCheckData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadinessHealthCheckData{} + +// ReadinessHealthCheckData struct for ReadinessHealthCheckData +type ReadinessHealthCheckData struct { + Endpoint NullableString `json:"endpoint,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + InvocationTimeout NullableInt32 `json:"invocation_timeout,omitempty"` +} + +// NewReadinessHealthCheckData instantiates a new ReadinessHealthCheckData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadinessHealthCheckData() *ReadinessHealthCheckData { + this := ReadinessHealthCheckData{} + return &this +} + +// NewReadinessHealthCheckDataWithDefaults instantiates a new ReadinessHealthCheckData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadinessHealthCheckDataWithDefaults() *ReadinessHealthCheckData { + this := ReadinessHealthCheckData{} + return &this +} + +// GetEndpoint returns the Endpoint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReadinessHealthCheckData) GetEndpoint() string { + if o == nil || IsNil(o.Endpoint.Get()) { + var ret string + return ret + } + return *o.Endpoint.Get() +} + +// GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReadinessHealthCheckData) GetEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Endpoint.Get(), o.Endpoint.IsSet() +} + +// HasEndpoint returns a boolean if a field has been set. +func (o *ReadinessHealthCheckData) HasEndpoint() bool { + if o != nil && o.Endpoint.IsSet() { + return true + } + + return false +} + +// SetEndpoint gets a reference to the given NullableString and assigns it to the Endpoint field. +func (o *ReadinessHealthCheckData) SetEndpoint(v string) { + o.Endpoint.Set(&v) +} +// SetEndpointNil sets the value for Endpoint to be an explicit nil +func (o *ReadinessHealthCheckData) SetEndpointNil() { + o.Endpoint.Set(nil) +} + +// UnsetEndpoint ensures that no value is present for Endpoint, not even an explicit nil +func (o *ReadinessHealthCheckData) UnsetEndpoint() { + o.Endpoint.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReadinessHealthCheckData) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReadinessHealthCheckData) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *ReadinessHealthCheckData) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *ReadinessHealthCheckData) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *ReadinessHealthCheckData) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *ReadinessHealthCheckData) UnsetInterval() { + o.Interval.Unset() +} + +// GetInvocationTimeout returns the InvocationTimeout field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReadinessHealthCheckData) GetInvocationTimeout() int32 { + if o == nil || IsNil(o.InvocationTimeout.Get()) { + var ret int32 + return ret + } + return *o.InvocationTimeout.Get() +} + +// GetInvocationTimeoutOk returns a tuple with the InvocationTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReadinessHealthCheckData) GetInvocationTimeoutOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InvocationTimeout.Get(), o.InvocationTimeout.IsSet() +} + +// HasInvocationTimeout returns a boolean if a field has been set. +func (o *ReadinessHealthCheckData) HasInvocationTimeout() bool { + if o != nil && o.InvocationTimeout.IsSet() { + return true + } + + return false +} + +// SetInvocationTimeout gets a reference to the given NullableInt32 and assigns it to the InvocationTimeout field. +func (o *ReadinessHealthCheckData) SetInvocationTimeout(v int32) { + o.InvocationTimeout.Set(&v) +} +// SetInvocationTimeoutNil sets the value for InvocationTimeout to be an explicit nil +func (o *ReadinessHealthCheckData) SetInvocationTimeoutNil() { + o.InvocationTimeout.Set(nil) +} + +// UnsetInvocationTimeout ensures that no value is present for InvocationTimeout, not even an explicit nil +func (o *ReadinessHealthCheckData) UnsetInvocationTimeout() { + o.InvocationTimeout.Unset() +} + +func (o ReadinessHealthCheckData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadinessHealthCheckData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Endpoint.IsSet() { + toSerialize["endpoint"] = o.Endpoint.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + if o.InvocationTimeout.IsSet() { + toSerialize["invocation_timeout"] = o.InvocationTimeout.Get() + } + return toSerialize, nil +} + +type NullableReadinessHealthCheckData struct { + value *ReadinessHealthCheckData + isSet bool +} + +func (v NullableReadinessHealthCheckData) Get() *ReadinessHealthCheckData { + return v.value +} + +func (v *NullableReadinessHealthCheckData) Set(val *ReadinessHealthCheckData) { + v.value = val + v.isSet = true +} + +func (v NullableReadinessHealthCheckData) IsSet() bool { + return v.isSet +} + +func (v *NullableReadinessHealthCheckData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadinessHealthCheckData(val *ReadinessHealthCheckData) *NullableReadinessHealthCheckData { + return &NullableReadinessHealthCheckData{value: val, isSet: true} +} + +func (v NullableReadinessHealthCheckData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadinessHealthCheckData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_match_object.go b/model_resource_match_object.go new file mode 100644 index 0000000..cac9528 --- /dev/null +++ b/model_resource_match_object.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ResourceMatchObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceMatchObject{} + +// ResourceMatchObject struct for ResourceMatchObject +type ResourceMatchObject struct { + Checksum *V3PackagesGuidUploadPostRequestResourcesInnerChecksum `json:"checksum,omitempty"` + Mode *string `json:"mode,omitempty"` + Path *string `json:"path,omitempty"` + SizeInBytes *int32 `json:"size_in_bytes,omitempty"` +} + +// NewResourceMatchObject instantiates a new ResourceMatchObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceMatchObject() *ResourceMatchObject { + this := ResourceMatchObject{} + return &this +} + +// NewResourceMatchObjectWithDefaults instantiates a new ResourceMatchObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceMatchObjectWithDefaults() *ResourceMatchObject { + this := ResourceMatchObject{} + return &this +} + +// GetChecksum returns the Checksum field value if set, zero value otherwise. +func (o *ResourceMatchObject) GetChecksum() V3PackagesGuidUploadPostRequestResourcesInnerChecksum { + if o == nil || IsNil(o.Checksum) { + var ret V3PackagesGuidUploadPostRequestResourcesInnerChecksum + return ret + } + return *o.Checksum +} + +// GetChecksumOk returns a tuple with the Checksum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchObject) GetChecksumOk() (*V3PackagesGuidUploadPostRequestResourcesInnerChecksum, bool) { + if o == nil || IsNil(o.Checksum) { + return nil, false + } + return o.Checksum, true +} + +// HasChecksum returns a boolean if a field has been set. +func (o *ResourceMatchObject) HasChecksum() bool { + if o != nil && !IsNil(o.Checksum) { + return true + } + + return false +} + +// SetChecksum gets a reference to the given V3PackagesGuidUploadPostRequestResourcesInnerChecksum and assigns it to the Checksum field. +func (o *ResourceMatchObject) SetChecksum(v V3PackagesGuidUploadPostRequestResourcesInnerChecksum) { + o.Checksum = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *ResourceMatchObject) GetMode() string { + if o == nil || IsNil(o.Mode) { + var ret string + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchObject) GetModeOk() (*string, bool) { + if o == nil || IsNil(o.Mode) { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *ResourceMatchObject) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given string and assigns it to the Mode field. +func (o *ResourceMatchObject) SetMode(v string) { + o.Mode = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *ResourceMatchObject) GetPath() string { + if o == nil || IsNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchObject) GetPathOk() (*string, bool) { + if o == nil || IsNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *ResourceMatchObject) HasPath() bool { + if o != nil && !IsNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *ResourceMatchObject) SetPath(v string) { + o.Path = &v +} + +// GetSizeInBytes returns the SizeInBytes field value if set, zero value otherwise. +func (o *ResourceMatchObject) GetSizeInBytes() int32 { + if o == nil || IsNil(o.SizeInBytes) { + var ret int32 + return ret + } + return *o.SizeInBytes +} + +// GetSizeInBytesOk returns a tuple with the SizeInBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchObject) GetSizeInBytesOk() (*int32, bool) { + if o == nil || IsNil(o.SizeInBytes) { + return nil, false + } + return o.SizeInBytes, true +} + +// HasSizeInBytes returns a boolean if a field has been set. +func (o *ResourceMatchObject) HasSizeInBytes() bool { + if o != nil && !IsNil(o.SizeInBytes) { + return true + } + + return false +} + +// SetSizeInBytes gets a reference to the given int32 and assigns it to the SizeInBytes field. +func (o *ResourceMatchObject) SetSizeInBytes(v int32) { + o.SizeInBytes = &v +} + +func (o ResourceMatchObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceMatchObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Checksum) { + toSerialize["checksum"] = o.Checksum + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.Path) { + toSerialize["path"] = o.Path + } + if !IsNil(o.SizeInBytes) { + toSerialize["size_in_bytes"] = o.SizeInBytes + } + return toSerialize, nil +} + +type NullableResourceMatchObject struct { + value *ResourceMatchObject + isSet bool +} + +func (v NullableResourceMatchObject) Get() *ResourceMatchObject { + return v.value +} + +func (v *NullableResourceMatchObject) Set(val *ResourceMatchObject) { + v.value = val + v.isSet = true +} + +func (v NullableResourceMatchObject) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceMatchObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceMatchObject(val *ResourceMatchObject) *NullableResourceMatchObject { + return &NullableResourceMatchObject{value: val, isSet: true} +} + +func (v NullableResourceMatchObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceMatchObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_match_request.go b/model_resource_match_request.go new file mode 100644 index 0000000..931a10e --- /dev/null +++ b/model_resource_match_request.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ResourceMatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceMatchRequest{} + +// ResourceMatchRequest struct for ResourceMatchRequest +type ResourceMatchRequest struct { + Resources []ResourceMatchObject `json:"resources,omitempty"` +} + +// NewResourceMatchRequest instantiates a new ResourceMatchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceMatchRequest() *ResourceMatchRequest { + this := ResourceMatchRequest{} + return &this +} + +// NewResourceMatchRequestWithDefaults instantiates a new ResourceMatchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceMatchRequestWithDefaults() *ResourceMatchRequest { + this := ResourceMatchRequest{} + return &this +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ResourceMatchRequest) GetResources() []ResourceMatchObject { + if o == nil || IsNil(o.Resources) { + var ret []ResourceMatchObject + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchRequest) GetResourcesOk() ([]ResourceMatchObject, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ResourceMatchRequest) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ResourceMatchObject and assigns it to the Resources field. +func (o *ResourceMatchRequest) SetResources(v []ResourceMatchObject) { + o.Resources = v +} + +func (o ResourceMatchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceMatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableResourceMatchRequest struct { + value *ResourceMatchRequest + isSet bool +} + +func (v NullableResourceMatchRequest) Get() *ResourceMatchRequest { + return v.value +} + +func (v *NullableResourceMatchRequest) Set(val *ResourceMatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourceMatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceMatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceMatchRequest(val *ResourceMatchRequest) *NullableResourceMatchRequest { + return &NullableResourceMatchRequest{value: val, isSet: true} +} + +func (v NullableResourceMatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceMatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_match_response.go b/model_resource_match_response.go new file mode 100644 index 0000000..9036ef0 --- /dev/null +++ b/model_resource_match_response.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ResourceMatchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceMatchResponse{} + +// ResourceMatchResponse struct for ResourceMatchResponse +type ResourceMatchResponse struct { + Resources []ResourceMatchObject `json:"resources,omitempty"` +} + +// NewResourceMatchResponse instantiates a new ResourceMatchResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceMatchResponse() *ResourceMatchResponse { + this := ResourceMatchResponse{} + return &this +} + +// NewResourceMatchResponseWithDefaults instantiates a new ResourceMatchResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceMatchResponseWithDefaults() *ResourceMatchResponse { + this := ResourceMatchResponse{} + return &this +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ResourceMatchResponse) GetResources() []ResourceMatchObject { + if o == nil || IsNil(o.Resources) { + var ret []ResourceMatchObject + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceMatchResponse) GetResourcesOk() ([]ResourceMatchObject, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ResourceMatchResponse) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ResourceMatchObject and assigns it to the Resources field. +func (o *ResourceMatchResponse) SetResources(v []ResourceMatchObject) { + o.Resources = v +} + +func (o ResourceMatchResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceMatchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableResourceMatchResponse struct { + value *ResourceMatchResponse + isSet bool +} + +func (v NullableResourceMatchResponse) Get() *ResourceMatchResponse { + return v.value +} + +func (v *NullableResourceMatchResponse) Set(val *ResourceMatchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableResourceMatchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceMatchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceMatchResponse(val *ResourceMatchResponse) *NullableResourceMatchResponse { + return &NullableResourceMatchResponse{value: val, isSet: true} +} + +func (v NullableResourceMatchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceMatchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_revision.go b/model_revision.go new file mode 100644 index 0000000..ac2f914 --- /dev/null +++ b/model_revision.go @@ -0,0 +1,523 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Revision type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Revision{} + +// Revision struct for Revision +type Revision struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Deployable *bool `json:"deployable,omitempty"` + Description *string `json:"description,omitempty"` + Droplet *V3AppsPostRequestRelationshipsSpaceData `json:"droplet,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *RevisionLinks `json:"links,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + Processes *map[string]RevisionProcessesValue `json:"processes,omitempty"` + Relationships *V3AppsGuidDropletsCurrentGet200ResponseRelationships `json:"relationships,omitempty"` + Sidecars []Sidecar `json:"sidecars,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Version *int32 `json:"version,omitempty"` +} + +// NewRevision instantiates a new Revision object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevision() *Revision { + this := Revision{} + return &this +} + +// NewRevisionWithDefaults instantiates a new Revision object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevisionWithDefaults() *Revision { + this := Revision{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Revision) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Revision) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Revision) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDeployable returns the Deployable field value if set, zero value otherwise. +func (o *Revision) GetDeployable() bool { + if o == nil || IsNil(o.Deployable) { + var ret bool + return ret + } + return *o.Deployable +} + +// GetDeployableOk returns a tuple with the Deployable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetDeployableOk() (*bool, bool) { + if o == nil || IsNil(o.Deployable) { + return nil, false + } + return o.Deployable, true +} + +// HasDeployable returns a boolean if a field has been set. +func (o *Revision) HasDeployable() bool { + if o != nil && !IsNil(o.Deployable) { + return true + } + + return false +} + +// SetDeployable gets a reference to the given bool and assigns it to the Deployable field. +func (o *Revision) SetDeployable(v bool) { + o.Deployable = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Revision) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Revision) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Revision) SetDescription(v string) { + o.Description = &v +} + +// GetDroplet returns the Droplet field value if set, zero value otherwise. +func (o *Revision) GetDroplet() V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Droplet) { + var ret V3AppsPostRequestRelationshipsSpaceData + return ret + } + return *o.Droplet +} + +// GetDropletOk returns a tuple with the Droplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetDropletOk() (*V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Droplet) { + return nil, false + } + return o.Droplet, true +} + +// HasDroplet returns a boolean if a field has been set. +func (o *Revision) HasDroplet() bool { + if o != nil && !IsNil(o.Droplet) { + return true + } + + return false +} + +// SetDroplet gets a reference to the given V3AppsPostRequestRelationshipsSpaceData and assigns it to the Droplet field. +func (o *Revision) SetDroplet(v V3AppsPostRequestRelationshipsSpaceData) { + o.Droplet = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Revision) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Revision) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Revision) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Revision) GetLinks() RevisionLinks { + if o == nil || IsNil(o.Links) { + var ret RevisionLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetLinksOk() (*RevisionLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Revision) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given RevisionLinks and assigns it to the Links field. +func (o *Revision) SetLinks(v RevisionLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Revision) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Revision) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *Revision) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetProcesses returns the Processes field value if set, zero value otherwise. +func (o *Revision) GetProcesses() map[string]RevisionProcessesValue { + if o == nil || IsNil(o.Processes) { + var ret map[string]RevisionProcessesValue + return ret + } + return *o.Processes +} + +// GetProcessesOk returns a tuple with the Processes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetProcessesOk() (*map[string]RevisionProcessesValue, bool) { + if o == nil || IsNil(o.Processes) { + return nil, false + } + return o.Processes, true +} + +// HasProcesses returns a boolean if a field has been set. +func (o *Revision) HasProcesses() bool { + if o != nil && !IsNil(o.Processes) { + return true + } + + return false +} + +// SetProcesses gets a reference to the given map[string]RevisionProcessesValue and assigns it to the Processes field. +func (o *Revision) SetProcesses(v map[string]RevisionProcessesValue) { + o.Processes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Revision) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsGuidDropletsCurrentGet200ResponseRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Revision) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseRelationships and assigns it to the Relationships field. +func (o *Revision) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships) { + o.Relationships = &v +} + +// GetSidecars returns the Sidecars field value if set, zero value otherwise. +func (o *Revision) GetSidecars() []Sidecar { + if o == nil || IsNil(o.Sidecars) { + var ret []Sidecar + return ret + } + return o.Sidecars +} + +// GetSidecarsOk returns a tuple with the Sidecars field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetSidecarsOk() ([]Sidecar, bool) { + if o == nil || IsNil(o.Sidecars) { + return nil, false + } + return o.Sidecars, true +} + +// HasSidecars returns a boolean if a field has been set. +func (o *Revision) HasSidecars() bool { + if o != nil && !IsNil(o.Sidecars) { + return true + } + + return false +} + +// SetSidecars gets a reference to the given []Sidecar and assigns it to the Sidecars field. +func (o *Revision) SetSidecars(v []Sidecar) { + o.Sidecars = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Revision) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Revision) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Revision) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *Revision) GetVersion() int32 { + if o == nil || IsNil(o.Version) { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Revision) GetVersionOk() (*int32, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *Revision) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *Revision) SetVersion(v int32) { + o.Version = &v +} + +func (o Revision) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Revision) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Deployable) { + toSerialize["deployable"] = o.Deployable + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Droplet) { + toSerialize["droplet"] = o.Droplet + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Processes) { + toSerialize["processes"] = o.Processes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Sidecars) { + toSerialize["sidecars"] = o.Sidecars + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableRevision struct { + value *Revision + isSet bool +} + +func (v NullableRevision) Get() *Revision { + return v.value +} + +func (v *NullableRevision) Set(val *Revision) { + v.value = val + v.isSet = true +} + +func (v NullableRevision) IsSet() bool { + return v.isSet +} + +func (v *NullableRevision) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevision(val *Revision) *NullableRevision { + return &NullableRevision{value: val, isSet: true} +} + +func (v NullableRevision) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevision) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_revision_links.go b/model_revision_links.go new file mode 100644 index 0000000..7a5ff10 --- /dev/null +++ b/model_revision_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RevisionLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RevisionLinks{} + +// RevisionLinks struct for RevisionLinks +type RevisionLinks struct { + App *Get200ResponseLinksLogCache `json:"app,omitempty"` + EnvironmentVariables *Get200ResponseLinksLogCache `json:"environment_variables,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` +} + +// NewRevisionLinks instantiates a new RevisionLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevisionLinks() *RevisionLinks { + this := RevisionLinks{} + return &this +} + +// NewRevisionLinksWithDefaults instantiates a new RevisionLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevisionLinksWithDefaults() *RevisionLinks { + this := RevisionLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *RevisionLinks) GetApp() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.App) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionLinks) GetAppOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *RevisionLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given Get200ResponseLinksLogCache and assigns it to the App field. +func (o *RevisionLinks) SetApp(v Get200ResponseLinksLogCache) { + o.App = &v +} + +// GetEnvironmentVariables returns the EnvironmentVariables field value if set, zero value otherwise. +func (o *RevisionLinks) GetEnvironmentVariables() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.EnvironmentVariables) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.EnvironmentVariables +} + +// GetEnvironmentVariablesOk returns a tuple with the EnvironmentVariables field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionLinks) GetEnvironmentVariablesOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.EnvironmentVariables) { + return nil, false + } + return o.EnvironmentVariables, true +} + +// HasEnvironmentVariables returns a boolean if a field has been set. +func (o *RevisionLinks) HasEnvironmentVariables() bool { + if o != nil && !IsNil(o.EnvironmentVariables) { + return true + } + + return false +} + +// SetEnvironmentVariables gets a reference to the given Get200ResponseLinksLogCache and assigns it to the EnvironmentVariables field. +func (o *RevisionLinks) SetEnvironmentVariables(v Get200ResponseLinksLogCache) { + o.EnvironmentVariables = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *RevisionLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *RevisionLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *RevisionLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +func (o RevisionLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RevisionLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.EnvironmentVariables) { + toSerialize["environment_variables"] = o.EnvironmentVariables + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableRevisionLinks struct { + value *RevisionLinks + isSet bool +} + +func (v NullableRevisionLinks) Get() *RevisionLinks { + return v.value +} + +func (v *NullableRevisionLinks) Set(val *RevisionLinks) { + v.value = val + v.isSet = true +} + +func (v NullableRevisionLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableRevisionLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevisionLinks(val *RevisionLinks) *NullableRevisionLinks { + return &NullableRevisionLinks{value: val, isSet: true} +} + +func (v NullableRevisionLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevisionLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_revision_processes_value.go b/model_revision_processes_value.go new file mode 100644 index 0000000..6a22f02 --- /dev/null +++ b/model_revision_processes_value.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RevisionProcessesValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RevisionProcessesValue{} + +// RevisionProcessesValue struct for RevisionProcessesValue +type RevisionProcessesValue struct { + Command *string `json:"command,omitempty"` +} + +// NewRevisionProcessesValue instantiates a new RevisionProcessesValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevisionProcessesValue() *RevisionProcessesValue { + this := RevisionProcessesValue{} + return &this +} + +// NewRevisionProcessesValueWithDefaults instantiates a new RevisionProcessesValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevisionProcessesValueWithDefaults() *RevisionProcessesValue { + this := RevisionProcessesValue{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *RevisionProcessesValue) GetCommand() string { + if o == nil || IsNil(o.Command) { + var ret string + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionProcessesValue) GetCommandOk() (*string, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *RevisionProcessesValue) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given string and assigns it to the Command field. +func (o *RevisionProcessesValue) SetCommand(v string) { + o.Command = &v +} + +func (o RevisionProcessesValue) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RevisionProcessesValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + return toSerialize, nil +} + +type NullableRevisionProcessesValue struct { + value *RevisionProcessesValue + isSet bool +} + +func (v NullableRevisionProcessesValue) Get() *RevisionProcessesValue { + return v.value +} + +func (v *NullableRevisionProcessesValue) Set(val *RevisionProcessesValue) { + v.value = val + v.isSet = true +} + +func (v NullableRevisionProcessesValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRevisionProcessesValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevisionProcessesValue(val *RevisionProcessesValue) *NullableRevisionProcessesValue { + return &NullableRevisionProcessesValue{value: val, isSet: true} +} + +func (v NullableRevisionProcessesValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevisionProcessesValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_revisions_list.go b/model_revisions_list.go new file mode 100644 index 0000000..d911566 --- /dev/null +++ b/model_revisions_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RevisionsList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RevisionsList{} + +// RevisionsList struct for RevisionsList +type RevisionsList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []Revision `json:"resources,omitempty"` +} + +// NewRevisionsList instantiates a new RevisionsList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevisionsList() *RevisionsList { + this := RevisionsList{} + return &this +} + +// NewRevisionsListWithDefaults instantiates a new RevisionsList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevisionsListWithDefaults() *RevisionsList { + this := RevisionsList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *RevisionsList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *RevisionsList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *RevisionsList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *RevisionsList) GetResources() []Revision { + if o == nil || IsNil(o.Resources) { + var ret []Revision + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsList) GetResourcesOk() ([]Revision, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *RevisionsList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Revision and assigns it to the Resources field. +func (o *RevisionsList) SetResources(v []Revision) { + o.Resources = v +} + +func (o RevisionsList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RevisionsList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableRevisionsList struct { + value *RevisionsList + isSet bool +} + +func (v NullableRevisionsList) Get() *RevisionsList { + return v.value +} + +func (v *NullableRevisionsList) Set(val *RevisionsList) { + v.value = val + v.isSet = true +} + +func (v NullableRevisionsList) IsSet() bool { + return v.isSet +} + +func (v *NullableRevisionsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevisionsList(val *RevisionsList) *NullableRevisionsList { + return &NullableRevisionsList{value: val, isSet: true} +} + +func (v NullableRevisionsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevisionsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_revisions_list_pagination.go b/model_revisions_list_pagination.go new file mode 100644 index 0000000..6fdb226 --- /dev/null +++ b/model_revisions_list_pagination.go @@ -0,0 +1,326 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RevisionsListPagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RevisionsListPagination{} + +// RevisionsListPagination struct for RevisionsListPagination +type RevisionsListPagination struct { + First *Get200ResponseLinksLogCache `json:"first,omitempty"` + Last *Get200ResponseLinksLogCache `json:"last,omitempty"` + Next NullableV3Get200ResponseLinksServiceInstances `json:"next,omitempty"` + Previous NullableV3Get200ResponseLinksServiceInstances `json:"previous,omitempty"` + TotalPages *int32 `json:"total_pages,omitempty"` + TotalResults *int32 `json:"total_results,omitempty"` +} + +// NewRevisionsListPagination instantiates a new RevisionsListPagination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRevisionsListPagination() *RevisionsListPagination { + this := RevisionsListPagination{} + return &this +} + +// NewRevisionsListPaginationWithDefaults instantiates a new RevisionsListPagination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRevisionsListPaginationWithDefaults() *RevisionsListPagination { + this := RevisionsListPagination{} + return &this +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *RevisionsListPagination) GetFirst() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.First) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsListPagination) GetFirstOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given Get200ResponseLinksLogCache and assigns it to the First field. +func (o *RevisionsListPagination) SetFirst(v Get200ResponseLinksLogCache) { + o.First = &v +} + +// GetLast returns the Last field value if set, zero value otherwise. +func (o *RevisionsListPagination) GetLast() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Last) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Last +} + +// GetLastOk returns a tuple with the Last field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsListPagination) GetLastOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Last) { + return nil, false + } + return o.Last, true +} + +// HasLast returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasLast() bool { + if o != nil && !IsNil(o.Last) { + return true + } + + return false +} + +// SetLast gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Last field. +func (o *RevisionsListPagination) SetLast(v Get200ResponseLinksLogCache) { + o.Last = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RevisionsListPagination) GetNext() V3Get200ResponseLinksServiceInstances { + if o == nil || IsNil(o.Next.Get()) { + var ret V3Get200ResponseLinksServiceInstances + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RevisionsListPagination) GetNextOk() (*V3Get200ResponseLinksServiceInstances, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableV3Get200ResponseLinksServiceInstances and assigns it to the Next field. +func (o *RevisionsListPagination) SetNext(v V3Get200ResponseLinksServiceInstances) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *RevisionsListPagination) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *RevisionsListPagination) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RevisionsListPagination) GetPrevious() V3Get200ResponseLinksServiceInstances { + if o == nil || IsNil(o.Previous.Get()) { + var ret V3Get200ResponseLinksServiceInstances + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RevisionsListPagination) GetPreviousOk() (*V3Get200ResponseLinksServiceInstances, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableV3Get200ResponseLinksServiceInstances and assigns it to the Previous field. +func (o *RevisionsListPagination) SetPrevious(v V3Get200ResponseLinksServiceInstances) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *RevisionsListPagination) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *RevisionsListPagination) UnsetPrevious() { + o.Previous.Unset() +} + +// GetTotalPages returns the TotalPages field value if set, zero value otherwise. +func (o *RevisionsListPagination) GetTotalPages() int32 { + if o == nil || IsNil(o.TotalPages) { + var ret int32 + return ret + } + return *o.TotalPages +} + +// GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsListPagination) GetTotalPagesOk() (*int32, bool) { + if o == nil || IsNil(o.TotalPages) { + return nil, false + } + return o.TotalPages, true +} + +// HasTotalPages returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasTotalPages() bool { + if o != nil && !IsNil(o.TotalPages) { + return true + } + + return false +} + +// SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field. +func (o *RevisionsListPagination) SetTotalPages(v int32) { + o.TotalPages = &v +} + +// GetTotalResults returns the TotalResults field value if set, zero value otherwise. +func (o *RevisionsListPagination) GetTotalResults() int32 { + if o == nil || IsNil(o.TotalResults) { + var ret int32 + return ret + } + return *o.TotalResults +} + +// GetTotalResultsOk returns a tuple with the TotalResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RevisionsListPagination) GetTotalResultsOk() (*int32, bool) { + if o == nil || IsNil(o.TotalResults) { + return nil, false + } + return o.TotalResults, true +} + +// HasTotalResults returns a boolean if a field has been set. +func (o *RevisionsListPagination) HasTotalResults() bool { + if o != nil && !IsNil(o.TotalResults) { + return true + } + + return false +} + +// SetTotalResults gets a reference to the given int32 and assigns it to the TotalResults field. +func (o *RevisionsListPagination) SetTotalResults(v int32) { + o.TotalResults = &v +} + +func (o RevisionsListPagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RevisionsListPagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.Last) { + toSerialize["last"] = o.Last + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.TotalPages) { + toSerialize["total_pages"] = o.TotalPages + } + if !IsNil(o.TotalResults) { + toSerialize["total_results"] = o.TotalResults + } + return toSerialize, nil +} + +type NullableRevisionsListPagination struct { + value *RevisionsListPagination + isSet bool +} + +func (v NullableRevisionsListPagination) Get() *RevisionsListPagination { + return v.value +} + +func (v *NullableRevisionsListPagination) Set(val *RevisionsListPagination) { + v.value = val + v.isSet = true +} + +func (v NullableRevisionsListPagination) IsSet() bool { + return v.isSet +} + +func (v *NullableRevisionsListPagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRevisionsListPagination(val *RevisionsListPagination) *NullableRevisionsListPagination { + return &NullableRevisionsListPagination{value: val, isSet: true} +} + +func (v NullableRevisionsListPagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRevisionsListPagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_role.go b/model_role.go new file mode 100644 index 0000000..0890321 --- /dev/null +++ b/model_role.go @@ -0,0 +1,307 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Role type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Role{} + +// Role struct for Role +type Role struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *RoleLinks `json:"links,omitempty"` + Relationships *RoleRelationships `json:"relationships,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewRole instantiates a new Role object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRole() *Role { + this := Role{} + return &this +} + +// NewRoleWithDefaults instantiates a new Role object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleWithDefaults() *Role { + this := Role{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Role) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Role) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Role) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Role) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Role) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Role) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Role) GetLinks() RoleLinks { + if o == nil || IsNil(o.Links) { + var ret RoleLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetLinksOk() (*RoleLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Role) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given RoleLinks and assigns it to the Links field. +func (o *Role) SetLinks(v RoleLinks) { + o.Links = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Role) GetRelationships() RoleRelationships { + if o == nil || IsNil(o.Relationships) { + var ret RoleRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetRelationshipsOk() (*RoleRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Role) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given RoleRelationships and assigns it to the Relationships field. +func (o *Role) SetRelationships(v RoleRelationships) { + o.Relationships = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Role) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Role) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Role) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Role) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Role) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Role) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Role) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Role) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableRole struct { + value *Role + isSet bool +} + +func (v NullableRole) Get() *Role { + return v.value +} + +func (v *NullableRole) Set(val *Role) { + v.value = val + v.isSet = true +} + +func (v NullableRole) IsSet() bool { + return v.isSet +} + +func (v *NullableRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRole(val *Role) *NullableRole { + return &NullableRole{value: val, isSet: true} +} + +func (v NullableRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_role_links.go b/model_role_links.go new file mode 100644 index 0000000..26273e5 --- /dev/null +++ b/model_role_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RoleLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleLinks{} + +// RoleLinks struct for RoleLinks +type RoleLinks struct { + Organization *Get200ResponseLinksLogCache `json:"organization,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + User *Get200ResponseLinksLogCache `json:"user,omitempty"` +} + +// NewRoleLinks instantiates a new RoleLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleLinks() *RoleLinks { + this := RoleLinks{} + return &this +} + +// NewRoleLinksWithDefaults instantiates a new RoleLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleLinksWithDefaults() *RoleLinks { + this := RoleLinks{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *RoleLinks) GetOrganization() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Organization) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleLinks) GetOrganizationOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *RoleLinks) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Organization field. +func (o *RoleLinks) SetOrganization(v Get200ResponseLinksLogCache) { + o.Organization = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *RoleLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *RoleLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *RoleLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *RoleLinks) GetUser() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.User) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleLinks) GetUserOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *RoleLinks) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given Get200ResponseLinksLogCache and assigns it to the User field. +func (o *RoleLinks) SetUser(v Get200ResponseLinksLogCache) { + o.User = &v +} + +func (o RoleLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableRoleLinks struct { + value *RoleLinks + isSet bool +} + +func (v NullableRoleLinks) Get() *RoleLinks { + return v.value +} + +func (v *NullableRoleLinks) Set(val *RoleLinks) { + v.value = val + v.isSet = true +} + +func (v NullableRoleLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleLinks(val *RoleLinks) *NullableRoleLinks { + return &NullableRoleLinks{value: val, isSet: true} +} + +func (v NullableRoleLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_role_relationships.go b/model_role_relationships.go new file mode 100644 index 0000000..62a69ae --- /dev/null +++ b/model_role_relationships.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RoleRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleRelationships{} + +// RoleRelationships struct for RoleRelationships +type RoleRelationships struct { + Organization *V3AppsPostRequestRelationshipsSpace `json:"organization,omitempty"` + Space *RoleRelationshipsSpace `json:"space,omitempty"` + User *V3RolesPostRequestRelationshipsUser `json:"user,omitempty"` +} + +// NewRoleRelationships instantiates a new RoleRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleRelationships() *RoleRelationships { + this := RoleRelationships{} + return &this +} + +// NewRoleRelationshipsWithDefaults instantiates a new RoleRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleRelationshipsWithDefaults() *RoleRelationships { + this := RoleRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *RoleRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Organization) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *RoleRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Organization field. +func (o *RoleRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace) { + o.Organization = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *RoleRelationships) GetSpace() RoleRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret RoleRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRelationships) GetSpaceOk() (*RoleRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *RoleRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given RoleRelationshipsSpace and assigns it to the Space field. +func (o *RoleRelationships) SetSpace(v RoleRelationshipsSpace) { + o.Space = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *RoleRelationships) GetUser() V3RolesPostRequestRelationshipsUser { + if o == nil || IsNil(o.User) { + var ret V3RolesPostRequestRelationshipsUser + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRelationships) GetUserOk() (*V3RolesPostRequestRelationshipsUser, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *RoleRelationships) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given V3RolesPostRequestRelationshipsUser and assigns it to the User field. +func (o *RoleRelationships) SetUser(v V3RolesPostRequestRelationshipsUser) { + o.User = &v +} + +func (o RoleRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableRoleRelationships struct { + value *RoleRelationships + isSet bool +} + +func (v NullableRoleRelationships) Get() *RoleRelationships { + return v.value +} + +func (v *NullableRoleRelationships) Set(val *RoleRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableRoleRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleRelationships(val *RoleRelationships) *NullableRoleRelationships { + return &NullableRoleRelationships{value: val, isSet: true} +} + +func (v NullableRoleRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_role_relationships_space.go b/model_role_relationships_space.go new file mode 100644 index 0000000..6f68bbb --- /dev/null +++ b/model_role_relationships_space.go @@ -0,0 +1,136 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RoleRelationshipsSpace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleRelationshipsSpace{} + +// RoleRelationshipsSpace struct for RoleRelationshipsSpace +type RoleRelationshipsSpace struct { + Data NullableRoleRelationshipsSpaceData `json:"data,omitempty"` +} + +// NewRoleRelationshipsSpace instantiates a new RoleRelationshipsSpace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleRelationshipsSpace() *RoleRelationshipsSpace { + this := RoleRelationshipsSpace{} + return &this +} + +// NewRoleRelationshipsSpaceWithDefaults instantiates a new RoleRelationshipsSpace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleRelationshipsSpaceWithDefaults() *RoleRelationshipsSpace { + this := RoleRelationshipsSpace{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RoleRelationshipsSpace) GetData() RoleRelationshipsSpaceData { + if o == nil || IsNil(o.Data.Get()) { + var ret RoleRelationshipsSpaceData + return ret + } + return *o.Data.Get() +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RoleRelationshipsSpace) GetDataOk() (*RoleRelationshipsSpaceData, bool) { + if o == nil { + return nil, false + } + return o.Data.Get(), o.Data.IsSet() +} + +// HasData returns a boolean if a field has been set. +func (o *RoleRelationshipsSpace) HasData() bool { + if o != nil && o.Data.IsSet() { + return true + } + + return false +} + +// SetData gets a reference to the given NullableRoleRelationshipsSpaceData and assigns it to the Data field. +func (o *RoleRelationshipsSpace) SetData(v RoleRelationshipsSpaceData) { + o.Data.Set(&v) +} +// SetDataNil sets the value for Data to be an explicit nil +func (o *RoleRelationshipsSpace) SetDataNil() { + o.Data.Set(nil) +} + +// UnsetData ensures that no value is present for Data, not even an explicit nil +func (o *RoleRelationshipsSpace) UnsetData() { + o.Data.Unset() +} + +func (o RoleRelationshipsSpace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleRelationshipsSpace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data.IsSet() { + toSerialize["data"] = o.Data.Get() + } + return toSerialize, nil +} + +type NullableRoleRelationshipsSpace struct { + value *RoleRelationshipsSpace + isSet bool +} + +func (v NullableRoleRelationshipsSpace) Get() *RoleRelationshipsSpace { + return v.value +} + +func (v *NullableRoleRelationshipsSpace) Set(val *RoleRelationshipsSpace) { + v.value = val + v.isSet = true +} + +func (v NullableRoleRelationshipsSpace) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleRelationshipsSpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleRelationshipsSpace(val *RoleRelationshipsSpace) *NullableRoleRelationshipsSpace { + return &NullableRoleRelationshipsSpace{value: val, isSet: true} +} + +func (v NullableRoleRelationshipsSpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleRelationshipsSpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_role_relationships_space_data.go b/model_role_relationships_space_data.go new file mode 100644 index 0000000..5b7279f --- /dev/null +++ b/model_role_relationships_space_data.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RoleRelationshipsSpaceData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoleRelationshipsSpaceData{} + +// RoleRelationshipsSpaceData struct for RoleRelationshipsSpaceData +type RoleRelationshipsSpaceData struct { + Guid *string `json:"guid,omitempty"` +} + +// NewRoleRelationshipsSpaceData instantiates a new RoleRelationshipsSpaceData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoleRelationshipsSpaceData() *RoleRelationshipsSpaceData { + this := RoleRelationshipsSpaceData{} + return &this +} + +// NewRoleRelationshipsSpaceDataWithDefaults instantiates a new RoleRelationshipsSpaceData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoleRelationshipsSpaceDataWithDefaults() *RoleRelationshipsSpaceData { + this := RoleRelationshipsSpaceData{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *RoleRelationshipsSpaceData) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRelationshipsSpaceData) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *RoleRelationshipsSpaceData) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *RoleRelationshipsSpaceData) SetGuid(v string) { + o.Guid = &v +} + +func (o RoleRelationshipsSpaceData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoleRelationshipsSpaceData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + return toSerialize, nil +} + +type NullableRoleRelationshipsSpaceData struct { + value *RoleRelationshipsSpaceData + isSet bool +} + +func (v NullableRoleRelationshipsSpaceData) Get() *RoleRelationshipsSpaceData { + return v.value +} + +func (v *NullableRoleRelationshipsSpaceData) Set(val *RoleRelationshipsSpaceData) { + v.value = val + v.isSet = true +} + +func (v NullableRoleRelationshipsSpaceData) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleRelationshipsSpaceData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleRelationshipsSpaceData(val *RoleRelationshipsSpaceData) *NullableRoleRelationshipsSpaceData { + return &NullableRoleRelationshipsSpaceData{value: val, isSet: true} +} + +func (v NullableRoleRelationshipsSpaceData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleRelationshipsSpaceData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_roles_list.go b/model_roles_list.go new file mode 100644 index 0000000..7c54576 --- /dev/null +++ b/model_roles_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RolesList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RolesList{} + +// RolesList struct for RolesList +type RolesList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []Role `json:"resources,omitempty"` +} + +// NewRolesList instantiates a new RolesList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRolesList() *RolesList { + this := RolesList{} + return &this +} + +// NewRolesListWithDefaults instantiates a new RolesList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRolesListWithDefaults() *RolesList { + this := RolesList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *RolesList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolesList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *RolesList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *RolesList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *RolesList) GetResources() []Role { + if o == nil || IsNil(o.Resources) { + var ret []Role + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RolesList) GetResourcesOk() ([]Role, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *RolesList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Role and assigns it to the Resources field. +func (o *RolesList) SetResources(v []Role) { + o.Resources = v +} + +func (o RolesList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RolesList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableRolesList struct { + value *RolesList + isSet bool +} + +func (v NullableRolesList) Get() *RolesList { + return v.value +} + +func (v *NullableRolesList) Set(val *RolesList) { + v.value = val + v.isSet = true +} + +func (v NullableRolesList) IsSet() bool { + return v.isSet +} + +func (v *NullableRolesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolesList(val *RolesList) *NullableRolesList { + return &NullableRolesList{value: val, isSet: true} +} + +func (v NullableRolesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_route.go b/model_route.go new file mode 100644 index 0000000..745cfad --- /dev/null +++ b/model_route.go @@ -0,0 +1,553 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Route type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Route{} + +// Route struct for Route +type Route struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Destinations []Destination `json:"destinations,omitempty"` + Guid *string `json:"guid,omitempty"` + Host NullableString `json:"host,omitempty"` + Links *RouteLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Path NullableString `json:"path,omitempty"` + Port NullableInt32 `json:"port,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Relationships *V3RoutesPostRequestRelationships `json:"relationships,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewRoute instantiates a new Route object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoute() *Route { + this := Route{} + return &this +} + +// NewRouteWithDefaults instantiates a new Route object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRouteWithDefaults() *Route { + this := Route{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Route) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Route) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Route) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDestinations returns the Destinations field value if set, zero value otherwise. +func (o *Route) GetDestinations() []Destination { + if o == nil || IsNil(o.Destinations) { + var ret []Destination + return ret + } + return o.Destinations +} + +// GetDestinationsOk returns a tuple with the Destinations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetDestinationsOk() ([]Destination, bool) { + if o == nil || IsNil(o.Destinations) { + return nil, false + } + return o.Destinations, true +} + +// HasDestinations returns a boolean if a field has been set. +func (o *Route) HasDestinations() bool { + if o != nil && !IsNil(o.Destinations) { + return true + } + + return false +} + +// SetDestinations gets a reference to the given []Destination and assigns it to the Destinations field. +func (o *Route) SetDestinations(v []Destination) { + o.Destinations = v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Route) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Route) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Route) SetGuid(v string) { + o.Guid = &v +} + +// GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Route) GetHost() string { + if o == nil || IsNil(o.Host.Get()) { + var ret string + return ret + } + return *o.Host.Get() +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Route) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Host.Get(), o.Host.IsSet() +} + +// HasHost returns a boolean if a field has been set. +func (o *Route) HasHost() bool { + if o != nil && o.Host.IsSet() { + return true + } + + return false +} + +// SetHost gets a reference to the given NullableString and assigns it to the Host field. +func (o *Route) SetHost(v string) { + o.Host.Set(&v) +} +// SetHostNil sets the value for Host to be an explicit nil +func (o *Route) SetHostNil() { + o.Host.Set(nil) +} + +// UnsetHost ensures that no value is present for Host, not even an explicit nil +func (o *Route) UnsetHost() { + o.Host.Unset() +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Route) GetLinks() RouteLinks { + if o == nil || IsNil(o.Links) { + var ret RouteLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetLinksOk() (*RouteLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Route) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given RouteLinks and assigns it to the Links field. +func (o *Route) SetLinks(v RouteLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Route) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Route) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Route) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetPath returns the Path field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Route) GetPath() string { + if o == nil || IsNil(o.Path.Get()) { + var ret string + return ret + } + return *o.Path.Get() +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Route) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Path.Get(), o.Path.IsSet() +} + +// HasPath returns a boolean if a field has been set. +func (o *Route) HasPath() bool { + if o != nil && o.Path.IsSet() { + return true + } + + return false +} + +// SetPath gets a reference to the given NullableString and assigns it to the Path field. +func (o *Route) SetPath(v string) { + o.Path.Set(&v) +} +// SetPathNil sets the value for Path to be an explicit nil +func (o *Route) SetPathNil() { + o.Path.Set(nil) +} + +// UnsetPath ensures that no value is present for Path, not even an explicit nil +func (o *Route) UnsetPath() { + o.Path.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Route) GetPort() int32 { + if o == nil || IsNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Route) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *Route) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *Route) SetPort(v int32) { + o.Port.Set(&v) +} +// SetPortNil sets the value for Port to be an explicit nil +func (o *Route) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *Route) UnsetPort() { + o.Port.Unset() +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *Route) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *Route) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *Route) SetProtocol(v string) { + o.Protocol = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Route) GetRelationships() V3RoutesPostRequestRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3RoutesPostRequestRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetRelationshipsOk() (*V3RoutesPostRequestRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Route) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3RoutesPostRequestRelationships and assigns it to the Relationships field. +func (o *Route) SetRelationships(v V3RoutesPostRequestRelationships) { + o.Relationships = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Route) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Route) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Route) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *Route) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Route) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *Route) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *Route) SetUrl(v string) { + o.Url = &v +} + +func (o Route) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Route) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Destinations) { + toSerialize["destinations"] = o.Destinations + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if o.Host.IsSet() { + toSerialize["host"] = o.Host.Get() + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if o.Path.IsSet() { + toSerialize["path"] = o.Path.Get() + } + if o.Port.IsSet() { + toSerialize["port"] = o.Port.Get() + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableRoute struct { + value *Route + isSet bool +} + +func (v NullableRoute) Get() *Route { + return v.value +} + +func (v *NullableRoute) Set(val *Route) { + v.value = val + v.isSet = true +} + +func (v NullableRoute) IsSet() bool { + return v.isSet +} + +func (v *NullableRoute) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoute(val *Route) *NullableRoute { + return &NullableRoute{value: val, isSet: true} +} + +func (v NullableRoute) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoute) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_route_links.go b/model_route_links.go new file mode 100644 index 0000000..d17d985 --- /dev/null +++ b/model_route_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RouteLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RouteLinks{} + +// RouteLinks struct for RouteLinks +type RouteLinks struct { + Destinations *Get200ResponseLinksLogCache `json:"destinations,omitempty"` + Domain *Get200ResponseLinksLogCache `json:"domain,omitempty"` + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + Space *Get200ResponseLinksLogCache `json:"space,omitempty"` +} + +// NewRouteLinks instantiates a new RouteLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRouteLinks() *RouteLinks { + this := RouteLinks{} + return &this +} + +// NewRouteLinksWithDefaults instantiates a new RouteLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRouteLinksWithDefaults() *RouteLinks { + this := RouteLinks{} + return &this +} + +// GetDestinations returns the Destinations field value if set, zero value otherwise. +func (o *RouteLinks) GetDestinations() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Destinations) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Destinations +} + +// GetDestinationsOk returns a tuple with the Destinations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteLinks) GetDestinationsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Destinations) { + return nil, false + } + return o.Destinations, true +} + +// HasDestinations returns a boolean if a field has been set. +func (o *RouteLinks) HasDestinations() bool { + if o != nil && !IsNil(o.Destinations) { + return true + } + + return false +} + +// SetDestinations gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Destinations field. +func (o *RouteLinks) SetDestinations(v Get200ResponseLinksLogCache) { + o.Destinations = &v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *RouteLinks) GetDomain() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Domain) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteLinks) GetDomainOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *RouteLinks) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Domain field. +func (o *RouteLinks) SetDomain(v Get200ResponseLinksLogCache) { + o.Domain = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *RouteLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *RouteLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *RouteLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *RouteLinks) GetSpace() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Space) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteLinks) GetSpaceOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *RouteLinks) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Space field. +func (o *RouteLinks) SetSpace(v Get200ResponseLinksLogCache) { + o.Space = &v +} + +func (o RouteLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RouteLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Destinations) { + toSerialize["destinations"] = o.Destinations + } + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableRouteLinks struct { + value *RouteLinks + isSet bool +} + +func (v NullableRouteLinks) Get() *RouteLinks { + return v.value +} + +func (v *NullableRouteLinks) Set(val *RouteLinks) { + v.value = val + v.isSet = true +} + +func (v NullableRouteLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableRouteLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRouteLinks(val *RouteLinks) *NullableRouteLinks { + return &NullableRouteLinks{value: val, isSet: true} +} + +func (v NullableRouteLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRouteLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_route_list.go b/model_route_list.go new file mode 100644 index 0000000..c0f91f3 --- /dev/null +++ b/model_route_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RouteList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RouteList{} + +// RouteList struct for RouteList +type RouteList struct { + Pagination *V3RoutesGet200ResponsePagination `json:"pagination,omitempty"` + Resources []Route `json:"resources,omitempty"` +} + +// NewRouteList instantiates a new RouteList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRouteList() *RouteList { + this := RouteList{} + return &this +} + +// NewRouteListWithDefaults instantiates a new RouteList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRouteListWithDefaults() *RouteList { + this := RouteList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *RouteList) GetPagination() V3RoutesGet200ResponsePagination { + if o == nil || IsNil(o.Pagination) { + var ret V3RoutesGet200ResponsePagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteList) GetPaginationOk() (*V3RoutesGet200ResponsePagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *RouteList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given V3RoutesGet200ResponsePagination and assigns it to the Pagination field. +func (o *RouteList) SetPagination(v V3RoutesGet200ResponsePagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *RouteList) GetResources() []Route { + if o == nil || IsNil(o.Resources) { + var ret []Route + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteList) GetResourcesOk() ([]Route, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *RouteList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []Route and assigns it to the Resources field. +func (o *RouteList) SetResources(v []Route) { + o.Resources = v +} + +func (o RouteList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RouteList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableRouteList struct { + value *RouteList + isSet bool +} + +func (v NullableRouteList) Get() *RouteList { + return v.value +} + +func (v *NullableRouteList) Set(val *RouteList) { + v.value = val + v.isSet = true +} + +func (v NullableRouteList) IsSet() bool { + return v.isSet +} + +func (v *NullableRouteList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRouteList(val *RouteList) *NullableRouteList { + return &NullableRouteList{value: val, isSet: true} +} + +func (v NullableRouteList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRouteList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_routes_quota.go b/model_routes_quota.go new file mode 100644 index 0000000..44404c1 --- /dev/null +++ b/model_routes_quota.go @@ -0,0 +1,184 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the RoutesQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RoutesQuota{} + +// RoutesQuota struct for RoutesQuota +type RoutesQuota struct { + // Total number of ports that are reservable by routes in an organization + TotalReservedPorts NullableInt32 `json:"total_reserved_ports,omitempty"` + // Total number of routes allowed in an organization + TotalRoutes NullableInt32 `json:"total_routes,omitempty"` +} + +// NewRoutesQuota instantiates a new RoutesQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRoutesQuota() *RoutesQuota { + this := RoutesQuota{} + return &this +} + +// NewRoutesQuotaWithDefaults instantiates a new RoutesQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRoutesQuotaWithDefaults() *RoutesQuota { + this := RoutesQuota{} + return &this +} + +// GetTotalReservedPorts returns the TotalReservedPorts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RoutesQuota) GetTotalReservedPorts() int32 { + if o == nil || IsNil(o.TotalReservedPorts.Get()) { + var ret int32 + return ret + } + return *o.TotalReservedPorts.Get() +} + +// GetTotalReservedPortsOk returns a tuple with the TotalReservedPorts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RoutesQuota) GetTotalReservedPortsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalReservedPorts.Get(), o.TotalReservedPorts.IsSet() +} + +// HasTotalReservedPorts returns a boolean if a field has been set. +func (o *RoutesQuota) HasTotalReservedPorts() bool { + if o != nil && o.TotalReservedPorts.IsSet() { + return true + } + + return false +} + +// SetTotalReservedPorts gets a reference to the given NullableInt32 and assigns it to the TotalReservedPorts field. +func (o *RoutesQuota) SetTotalReservedPorts(v int32) { + o.TotalReservedPorts.Set(&v) +} +// SetTotalReservedPortsNil sets the value for TotalReservedPorts to be an explicit nil +func (o *RoutesQuota) SetTotalReservedPortsNil() { + o.TotalReservedPorts.Set(nil) +} + +// UnsetTotalReservedPorts ensures that no value is present for TotalReservedPorts, not even an explicit nil +func (o *RoutesQuota) UnsetTotalReservedPorts() { + o.TotalReservedPorts.Unset() +} + +// GetTotalRoutes returns the TotalRoutes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RoutesQuota) GetTotalRoutes() int32 { + if o == nil || IsNil(o.TotalRoutes.Get()) { + var ret int32 + return ret + } + return *o.TotalRoutes.Get() +} + +// GetTotalRoutesOk returns a tuple with the TotalRoutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RoutesQuota) GetTotalRoutesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalRoutes.Get(), o.TotalRoutes.IsSet() +} + +// HasTotalRoutes returns a boolean if a field has been set. +func (o *RoutesQuota) HasTotalRoutes() bool { + if o != nil && o.TotalRoutes.IsSet() { + return true + } + + return false +} + +// SetTotalRoutes gets a reference to the given NullableInt32 and assigns it to the TotalRoutes field. +func (o *RoutesQuota) SetTotalRoutes(v int32) { + o.TotalRoutes.Set(&v) +} +// SetTotalRoutesNil sets the value for TotalRoutes to be an explicit nil +func (o *RoutesQuota) SetTotalRoutesNil() { + o.TotalRoutes.Set(nil) +} + +// UnsetTotalRoutes ensures that no value is present for TotalRoutes, not even an explicit nil +func (o *RoutesQuota) UnsetTotalRoutes() { + o.TotalRoutes.Unset() +} + +func (o RoutesQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RoutesQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TotalReservedPorts.IsSet() { + toSerialize["total_reserved_ports"] = o.TotalReservedPorts.Get() + } + if o.TotalRoutes.IsSet() { + toSerialize["total_routes"] = o.TotalRoutes.Get() + } + return toSerialize, nil +} + +type NullableRoutesQuota struct { + value *RoutesQuota + isSet bool +} + +func (v NullableRoutesQuota) Get() *RoutesQuota { + return v.value +} + +func (v *NullableRoutesQuota) Set(val *RoutesQuota) { + v.value = val + v.isSet = true +} + +func (v NullableRoutesQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableRoutesQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoutesQuota(val *RoutesQuota) *NullableRoutesQuota { + return &NullableRoutesQuota{value: val, isSet: true} +} + +func (v NullableRoutesQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoutesQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rule.go b/model_rule.go new file mode 100644 index 0000000..4e5d841 --- /dev/null +++ b/model_rule.go @@ -0,0 +1,392 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the Rule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Rule{} + +// Rule struct for Rule +type Rule struct { + Code NullableInt32 `json:"code,omitempty"` + Description NullableString `json:"description,omitempty"` + Destination *string `json:"destination,omitempty"` + Log NullableBool `json:"log,omitempty"` + Ports NullableString `json:"ports,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Type NullableInt32 `json:"type,omitempty"` +} + +// NewRule instantiates a new Rule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRule() *Rule { + this := Rule{} + return &this +} + +// NewRuleWithDefaults instantiates a new Rule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRuleWithDefaults() *Rule { + this := Rule{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rule) GetCode() int32 { + if o == nil || IsNil(o.Code.Get()) { + var ret int32 + return ret + } + return *o.Code.Get() +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rule) GetCodeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Code.Get(), o.Code.IsSet() +} + +// HasCode returns a boolean if a field has been set. +func (o *Rule) HasCode() bool { + if o != nil && o.Code.IsSet() { + return true + } + + return false +} + +// SetCode gets a reference to the given NullableInt32 and assigns it to the Code field. +func (o *Rule) SetCode(v int32) { + o.Code.Set(&v) +} +// SetCodeNil sets the value for Code to be an explicit nil +func (o *Rule) SetCodeNil() { + o.Code.Set(nil) +} + +// UnsetCode ensures that no value is present for Code, not even an explicit nil +func (o *Rule) UnsetCode() { + o.Code.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rule) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rule) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *Rule) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *Rule) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *Rule) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *Rule) UnsetDescription() { + o.Description.Unset() +} + +// GetDestination returns the Destination field value if set, zero value otherwise. +func (o *Rule) GetDestination() string { + if o == nil || IsNil(o.Destination) { + var ret string + return ret + } + return *o.Destination +} + +// GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetDestinationOk() (*string, bool) { + if o == nil || IsNil(o.Destination) { + return nil, false + } + return o.Destination, true +} + +// HasDestination returns a boolean if a field has been set. +func (o *Rule) HasDestination() bool { + if o != nil && !IsNil(o.Destination) { + return true + } + + return false +} + +// SetDestination gets a reference to the given string and assigns it to the Destination field. +func (o *Rule) SetDestination(v string) { + o.Destination = &v +} + +// GetLog returns the Log field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rule) GetLog() bool { + if o == nil || IsNil(o.Log.Get()) { + var ret bool + return ret + } + return *o.Log.Get() +} + +// GetLogOk returns a tuple with the Log field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rule) GetLogOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Log.Get(), o.Log.IsSet() +} + +// HasLog returns a boolean if a field has been set. +func (o *Rule) HasLog() bool { + if o != nil && o.Log.IsSet() { + return true + } + + return false +} + +// SetLog gets a reference to the given NullableBool and assigns it to the Log field. +func (o *Rule) SetLog(v bool) { + o.Log.Set(&v) +} +// SetLogNil sets the value for Log to be an explicit nil +func (o *Rule) SetLogNil() { + o.Log.Set(nil) +} + +// UnsetLog ensures that no value is present for Log, not even an explicit nil +func (o *Rule) UnsetLog() { + o.Log.Unset() +} + +// GetPorts returns the Ports field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rule) GetPorts() string { + if o == nil || IsNil(o.Ports.Get()) { + var ret string + return ret + } + return *o.Ports.Get() +} + +// GetPortsOk returns a tuple with the Ports field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rule) GetPortsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Ports.Get(), o.Ports.IsSet() +} + +// HasPorts returns a boolean if a field has been set. +func (o *Rule) HasPorts() bool { + if o != nil && o.Ports.IsSet() { + return true + } + + return false +} + +// SetPorts gets a reference to the given NullableString and assigns it to the Ports field. +func (o *Rule) SetPorts(v string) { + o.Ports.Set(&v) +} +// SetPortsNil sets the value for Ports to be an explicit nil +func (o *Rule) SetPortsNil() { + o.Ports.Set(nil) +} + +// UnsetPorts ensures that no value is present for Ports, not even an explicit nil +func (o *Rule) UnsetPorts() { + o.Ports.Unset() +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *Rule) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rule) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *Rule) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *Rule) SetProtocol(v string) { + o.Protocol = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rule) GetType() int32 { + if o == nil || IsNil(o.Type.Get()) { + var ret int32 + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rule) GetTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *Rule) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableInt32 and assigns it to the Type field. +func (o *Rule) SetType(v int32) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *Rule) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *Rule) UnsetType() { + o.Type.Unset() +} + +func (o Rule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Rule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Code.IsSet() { + toSerialize["code"] = o.Code.Get() + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.Destination) { + toSerialize["destination"] = o.Destination + } + if o.Log.IsSet() { + toSerialize["log"] = o.Log.Get() + } + if o.Ports.IsSet() { + toSerialize["ports"] = o.Ports.Get() + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + return toSerialize, nil +} + +type NullableRule struct { + value *Rule + isSet bool +} + +func (v NullableRule) Get() *Rule { + return v.value +} + +func (v *NullableRule) Set(val *Rule) { + v.value = val + v.isSet = true +} + +func (v NullableRule) IsSet() bool { + return v.isSet +} + +func (v *NullableRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRule(val *Rule) *NullableRule { + return &NullableRule{value: val, isSet: true} +} + +func (v NullableRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group.go b/model_security_group.go new file mode 100644 index 0000000..5bb0451 --- /dev/null +++ b/model_security_group.go @@ -0,0 +1,379 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the SecurityGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroup{} + +// SecurityGroup struct for SecurityGroup +type SecurityGroup struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + GloballyEnabled *SecurityGroupGloballyEnabled `json:"globally_enabled,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *SecurityGroupLinks `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *SecurityGroupRelationships `json:"relationships,omitempty"` + Rules []Rule `json:"rules,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSecurityGroup instantiates a new SecurityGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroup() *SecurityGroup { + this := SecurityGroup{} + return &this +} + +// NewSecurityGroupWithDefaults instantiates a new SecurityGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupWithDefaults() *SecurityGroup { + this := SecurityGroup{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SecurityGroup) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SecurityGroup) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SecurityGroup) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGloballyEnabled returns the GloballyEnabled field value if set, zero value otherwise. +func (o *SecurityGroup) GetGloballyEnabled() SecurityGroupGloballyEnabled { + if o == nil || IsNil(o.GloballyEnabled) { + var ret SecurityGroupGloballyEnabled + return ret + } + return *o.GloballyEnabled +} + +// GetGloballyEnabledOk returns a tuple with the GloballyEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetGloballyEnabledOk() (*SecurityGroupGloballyEnabled, bool) { + if o == nil || IsNil(o.GloballyEnabled) { + return nil, false + } + return o.GloballyEnabled, true +} + +// HasGloballyEnabled returns a boolean if a field has been set. +func (o *SecurityGroup) HasGloballyEnabled() bool { + if o != nil && !IsNil(o.GloballyEnabled) { + return true + } + + return false +} + +// SetGloballyEnabled gets a reference to the given SecurityGroupGloballyEnabled and assigns it to the GloballyEnabled field. +func (o *SecurityGroup) SetGloballyEnabled(v SecurityGroupGloballyEnabled) { + o.GloballyEnabled = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *SecurityGroup) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *SecurityGroup) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *SecurityGroup) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *SecurityGroup) GetLinks() SecurityGroupLinks { + if o == nil || IsNil(o.Links) { + var ret SecurityGroupLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetLinksOk() (*SecurityGroupLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *SecurityGroup) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given SecurityGroupLinks and assigns it to the Links field. +func (o *SecurityGroup) SetLinks(v SecurityGroupLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SecurityGroup) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityGroup) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SecurityGroup) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *SecurityGroup) GetRelationships() SecurityGroupRelationships { + if o == nil || IsNil(o.Relationships) { + var ret SecurityGroupRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetRelationshipsOk() (*SecurityGroupRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *SecurityGroup) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given SecurityGroupRelationships and assigns it to the Relationships field. +func (o *SecurityGroup) SetRelationships(v SecurityGroupRelationships) { + o.Relationships = &v +} + +// GetRules returns the Rules field value if set, zero value otherwise. +func (o *SecurityGroup) GetRules() []Rule { + if o == nil || IsNil(o.Rules) { + var ret []Rule + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetRulesOk() ([]Rule, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *SecurityGroup) HasRules() bool { + if o != nil && !IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given []Rule and assigns it to the Rules field. +func (o *SecurityGroup) SetRules(v []Rule) { + o.Rules = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SecurityGroup) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroup) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SecurityGroup) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SecurityGroup) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SecurityGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.GloballyEnabled) { + toSerialize["globally_enabled"] = o.GloballyEnabled + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Rules) { + toSerialize["rules"] = o.Rules + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSecurityGroup struct { + value *SecurityGroup + isSet bool +} + +func (v NullableSecurityGroup) Get() *SecurityGroup { + return v.value +} + +func (v *NullableSecurityGroup) Set(val *SecurityGroup) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroup(val *SecurityGroup) *NullableSecurityGroup { + return &NullableSecurityGroup{value: val, isSet: true} +} + +func (v NullableSecurityGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_create.go b/model_security_group_create.go new file mode 100644 index 0000000..b82ba1d --- /dev/null +++ b/model_security_group_create.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupCreate{} + +// SecurityGroupCreate struct for SecurityGroupCreate +type SecurityGroupCreate struct { + GloballyEnabled *SecurityGroupGloballyEnabled `json:"globally_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Rules []Rule `json:"rules,omitempty"` +} + +// NewSecurityGroupCreate instantiates a new SecurityGroupCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupCreate() *SecurityGroupCreate { + this := SecurityGroupCreate{} + return &this +} + +// NewSecurityGroupCreateWithDefaults instantiates a new SecurityGroupCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupCreateWithDefaults() *SecurityGroupCreate { + this := SecurityGroupCreate{} + return &this +} + +// GetGloballyEnabled returns the GloballyEnabled field value if set, zero value otherwise. +func (o *SecurityGroupCreate) GetGloballyEnabled() SecurityGroupGloballyEnabled { + if o == nil || IsNil(o.GloballyEnabled) { + var ret SecurityGroupGloballyEnabled + return ret + } + return *o.GloballyEnabled +} + +// GetGloballyEnabledOk returns a tuple with the GloballyEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupCreate) GetGloballyEnabledOk() (*SecurityGroupGloballyEnabled, bool) { + if o == nil || IsNil(o.GloballyEnabled) { + return nil, false + } + return o.GloballyEnabled, true +} + +// HasGloballyEnabled returns a boolean if a field has been set. +func (o *SecurityGroupCreate) HasGloballyEnabled() bool { + if o != nil && !IsNil(o.GloballyEnabled) { + return true + } + + return false +} + +// SetGloballyEnabled gets a reference to the given SecurityGroupGloballyEnabled and assigns it to the GloballyEnabled field. +func (o *SecurityGroupCreate) SetGloballyEnabled(v SecurityGroupGloballyEnabled) { + o.GloballyEnabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SecurityGroupCreate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupCreate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityGroupCreate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SecurityGroupCreate) SetName(v string) { + o.Name = &v +} + +// GetRules returns the Rules field value if set, zero value otherwise. +func (o *SecurityGroupCreate) GetRules() []Rule { + if o == nil || IsNil(o.Rules) { + var ret []Rule + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupCreate) GetRulesOk() ([]Rule, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *SecurityGroupCreate) HasRules() bool { + if o != nil && !IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given []Rule and assigns it to the Rules field. +func (o *SecurityGroupCreate) SetRules(v []Rule) { + o.Rules = v +} + +func (o SecurityGroupCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GloballyEnabled) { + toSerialize["globally_enabled"] = o.GloballyEnabled + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Rules) { + toSerialize["rules"] = o.Rules + } + return toSerialize, nil +} + +type NullableSecurityGroupCreate struct { + value *SecurityGroupCreate + isSet bool +} + +func (v NullableSecurityGroupCreate) Get() *SecurityGroupCreate { + return v.value +} + +func (v *NullableSecurityGroupCreate) Set(val *SecurityGroupCreate) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupCreate(val *SecurityGroupCreate) *NullableSecurityGroupCreate { + return &NullableSecurityGroupCreate{value: val, isSet: true} +} + +func (v NullableSecurityGroupCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_globally_enabled.go b/model_security_group_globally_enabled.go new file mode 100644 index 0000000..3371e52 --- /dev/null +++ b/model_security_group_globally_enabled.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupGloballyEnabled type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupGloballyEnabled{} + +// SecurityGroupGloballyEnabled struct for SecurityGroupGloballyEnabled +type SecurityGroupGloballyEnabled struct { + Running *bool `json:"running,omitempty"` + Staging *bool `json:"staging,omitempty"` +} + +// NewSecurityGroupGloballyEnabled instantiates a new SecurityGroupGloballyEnabled object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupGloballyEnabled() *SecurityGroupGloballyEnabled { + this := SecurityGroupGloballyEnabled{} + return &this +} + +// NewSecurityGroupGloballyEnabledWithDefaults instantiates a new SecurityGroupGloballyEnabled object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupGloballyEnabledWithDefaults() *SecurityGroupGloballyEnabled { + this := SecurityGroupGloballyEnabled{} + return &this +} + +// GetRunning returns the Running field value if set, zero value otherwise. +func (o *SecurityGroupGloballyEnabled) GetRunning() bool { + if o == nil || IsNil(o.Running) { + var ret bool + return ret + } + return *o.Running +} + +// GetRunningOk returns a tuple with the Running field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupGloballyEnabled) GetRunningOk() (*bool, bool) { + if o == nil || IsNil(o.Running) { + return nil, false + } + return o.Running, true +} + +// HasRunning returns a boolean if a field has been set. +func (o *SecurityGroupGloballyEnabled) HasRunning() bool { + if o != nil && !IsNil(o.Running) { + return true + } + + return false +} + +// SetRunning gets a reference to the given bool and assigns it to the Running field. +func (o *SecurityGroupGloballyEnabled) SetRunning(v bool) { + o.Running = &v +} + +// GetStaging returns the Staging field value if set, zero value otherwise. +func (o *SecurityGroupGloballyEnabled) GetStaging() bool { + if o == nil || IsNil(o.Staging) { + var ret bool + return ret + } + return *o.Staging +} + +// GetStagingOk returns a tuple with the Staging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupGloballyEnabled) GetStagingOk() (*bool, bool) { + if o == nil || IsNil(o.Staging) { + return nil, false + } + return o.Staging, true +} + +// HasStaging returns a boolean if a field has been set. +func (o *SecurityGroupGloballyEnabled) HasStaging() bool { + if o != nil && !IsNil(o.Staging) { + return true + } + + return false +} + +// SetStaging gets a reference to the given bool and assigns it to the Staging field. +func (o *SecurityGroupGloballyEnabled) SetStaging(v bool) { + o.Staging = &v +} + +func (o SecurityGroupGloballyEnabled) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupGloballyEnabled) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Running) { + toSerialize["running"] = o.Running + } + if !IsNil(o.Staging) { + toSerialize["staging"] = o.Staging + } + return toSerialize, nil +} + +type NullableSecurityGroupGloballyEnabled struct { + value *SecurityGroupGloballyEnabled + isSet bool +} + +func (v NullableSecurityGroupGloballyEnabled) Get() *SecurityGroupGloballyEnabled { + return v.value +} + +func (v *NullableSecurityGroupGloballyEnabled) Set(val *SecurityGroupGloballyEnabled) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupGloballyEnabled) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupGloballyEnabled) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupGloballyEnabled(val *SecurityGroupGloballyEnabled) *NullableSecurityGroupGloballyEnabled { + return &NullableSecurityGroupGloballyEnabled{value: val, isSet: true} +} + +func (v NullableSecurityGroupGloballyEnabled) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupGloballyEnabled) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_links.go b/model_security_group_links.go new file mode 100644 index 0000000..d4cdc17 --- /dev/null +++ b/model_security_group_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupLinks{} + +// SecurityGroupLinks struct for SecurityGroupLinks +type SecurityGroupLinks struct { + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` +} + +// NewSecurityGroupLinks instantiates a new SecurityGroupLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupLinks() *SecurityGroupLinks { + this := SecurityGroupLinks{} + return &this +} + +// NewSecurityGroupLinksWithDefaults instantiates a new SecurityGroupLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupLinksWithDefaults() *SecurityGroupLinks { + this := SecurityGroupLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *SecurityGroupLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *SecurityGroupLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *SecurityGroupLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +func (o SecurityGroupLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableSecurityGroupLinks struct { + value *SecurityGroupLinks + isSet bool +} + +func (v NullableSecurityGroupLinks) Get() *SecurityGroupLinks { + return v.value +} + +func (v *NullableSecurityGroupLinks) Set(val *SecurityGroupLinks) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupLinks(val *SecurityGroupLinks) *NullableSecurityGroupLinks { + return &NullableSecurityGroupLinks{value: val, isSet: true} +} + +func (v NullableSecurityGroupLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_list.go b/model_security_group_list.go new file mode 100644 index 0000000..907d4fe --- /dev/null +++ b/model_security_group_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupList{} + +// SecurityGroupList struct for SecurityGroupList +type SecurityGroupList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []SecurityGroup `json:"resources,omitempty"` +} + +// NewSecurityGroupList instantiates a new SecurityGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupList() *SecurityGroupList { + this := SecurityGroupList{} + return &this +} + +// NewSecurityGroupListWithDefaults instantiates a new SecurityGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupListWithDefaults() *SecurityGroupList { + this := SecurityGroupList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *SecurityGroupList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *SecurityGroupList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *SecurityGroupList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *SecurityGroupList) GetResources() []SecurityGroup { + if o == nil || IsNil(o.Resources) { + var ret []SecurityGroup + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupList) GetResourcesOk() ([]SecurityGroup, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *SecurityGroupList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []SecurityGroup and assigns it to the Resources field. +func (o *SecurityGroupList) SetResources(v []SecurityGroup) { + o.Resources = v +} + +func (o SecurityGroupList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableSecurityGroupList struct { + value *SecurityGroupList + isSet bool +} + +func (v NullableSecurityGroupList) Get() *SecurityGroupList { + return v.value +} + +func (v *NullableSecurityGroupList) Set(val *SecurityGroupList) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupList(val *SecurityGroupList) *NullableSecurityGroupList { + return &NullableSecurityGroupList{value: val, isSet: true} +} + +func (v NullableSecurityGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_relationships.go b/model_security_group_relationships.go new file mode 100644 index 0000000..e021d5b --- /dev/null +++ b/model_security_group_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupRelationships{} + +// SecurityGroupRelationships struct for SecurityGroupRelationships +type SecurityGroupRelationships struct { + RunningSpaces *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest `json:"running_spaces,omitempty"` + StagingSpaces *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest `json:"staging_spaces,omitempty"` +} + +// NewSecurityGroupRelationships instantiates a new SecurityGroupRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupRelationships() *SecurityGroupRelationships { + this := SecurityGroupRelationships{} + return &this +} + +// NewSecurityGroupRelationshipsWithDefaults instantiates a new SecurityGroupRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupRelationshipsWithDefaults() *SecurityGroupRelationships { + this := SecurityGroupRelationships{} + return &this +} + +// GetRunningSpaces returns the RunningSpaces field value if set, zero value otherwise. +func (o *SecurityGroupRelationships) GetRunningSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + if o == nil || IsNil(o.RunningSpaces) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + return ret + } + return *o.RunningSpaces +} + +// GetRunningSpacesOk returns a tuple with the RunningSpaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupRelationships) GetRunningSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool) { + if o == nil || IsNil(o.RunningSpaces) { + return nil, false + } + return o.RunningSpaces, true +} + +// HasRunningSpaces returns a boolean if a field has been set. +func (o *SecurityGroupRelationships) HasRunningSpaces() bool { + if o != nil && !IsNil(o.RunningSpaces) { + return true + } + + return false +} + +// SetRunningSpaces gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest and assigns it to the RunningSpaces field. +func (o *SecurityGroupRelationships) SetRunningSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) { + o.RunningSpaces = &v +} + +// GetStagingSpaces returns the StagingSpaces field value if set, zero value otherwise. +func (o *SecurityGroupRelationships) GetStagingSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + if o == nil || IsNil(o.StagingSpaces) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + return ret + } + return *o.StagingSpaces +} + +// GetStagingSpacesOk returns a tuple with the StagingSpaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupRelationships) GetStagingSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool) { + if o == nil || IsNil(o.StagingSpaces) { + return nil, false + } + return o.StagingSpaces, true +} + +// HasStagingSpaces returns a boolean if a field has been set. +func (o *SecurityGroupRelationships) HasStagingSpaces() bool { + if o != nil && !IsNil(o.StagingSpaces) { + return true + } + + return false +} + +// SetStagingSpaces gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest and assigns it to the StagingSpaces field. +func (o *SecurityGroupRelationships) SetStagingSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) { + o.StagingSpaces = &v +} + +func (o SecurityGroupRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RunningSpaces) { + toSerialize["running_spaces"] = o.RunningSpaces + } + if !IsNil(o.StagingSpaces) { + toSerialize["staging_spaces"] = o.StagingSpaces + } + return toSerialize, nil +} + +type NullableSecurityGroupRelationships struct { + value *SecurityGroupRelationships + isSet bool +} + +func (v NullableSecurityGroupRelationships) Get() *SecurityGroupRelationships { + return v.value +} + +func (v *NullableSecurityGroupRelationships) Set(val *SecurityGroupRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupRelationships(val *SecurityGroupRelationships) *NullableSecurityGroupRelationships { + return &NullableSecurityGroupRelationships{value: val, isSet: true} +} + +func (v NullableSecurityGroupRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_update.go b/model_security_group_update.go new file mode 100644 index 0000000..89d99d1 --- /dev/null +++ b/model_security_group_update.go @@ -0,0 +1,209 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupUpdate{} + +// SecurityGroupUpdate struct for SecurityGroupUpdate +type SecurityGroupUpdate struct { + GloballyEnabled *SecurityGroupUpdateGloballyEnabled `json:"globally_enabled,omitempty"` + Name NullableString `json:"name,omitempty"` + Rules []Rule `json:"rules,omitempty"` +} + +// NewSecurityGroupUpdate instantiates a new SecurityGroupUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupUpdate() *SecurityGroupUpdate { + this := SecurityGroupUpdate{} + return &this +} + +// NewSecurityGroupUpdateWithDefaults instantiates a new SecurityGroupUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupUpdateWithDefaults() *SecurityGroupUpdate { + this := SecurityGroupUpdate{} + return &this +} + +// GetGloballyEnabled returns the GloballyEnabled field value if set, zero value otherwise. +func (o *SecurityGroupUpdate) GetGloballyEnabled() SecurityGroupUpdateGloballyEnabled { + if o == nil || IsNil(o.GloballyEnabled) { + var ret SecurityGroupUpdateGloballyEnabled + return ret + } + return *o.GloballyEnabled +} + +// GetGloballyEnabledOk returns a tuple with the GloballyEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupUpdate) GetGloballyEnabledOk() (*SecurityGroupUpdateGloballyEnabled, bool) { + if o == nil || IsNil(o.GloballyEnabled) { + return nil, false + } + return o.GloballyEnabled, true +} + +// HasGloballyEnabled returns a boolean if a field has been set. +func (o *SecurityGroupUpdate) HasGloballyEnabled() bool { + if o != nil && !IsNil(o.GloballyEnabled) { + return true + } + + return false +} + +// SetGloballyEnabled gets a reference to the given SecurityGroupUpdateGloballyEnabled and assigns it to the GloballyEnabled field. +func (o *SecurityGroupUpdate) SetGloballyEnabled(v SecurityGroupUpdateGloballyEnabled) { + o.GloballyEnabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityGroupUpdate) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityGroupUpdate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityGroupUpdate) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecurityGroupUpdate) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecurityGroupUpdate) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecurityGroupUpdate) UnsetName() { + o.Name.Unset() +} + +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityGroupUpdate) GetRules() []Rule { + if o == nil { + var ret []Rule + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityGroupUpdate) GetRulesOk() ([]Rule, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *SecurityGroupUpdate) HasRules() bool { + if o != nil && !IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given []Rule and assigns it to the Rules field. +func (o *SecurityGroupUpdate) SetRules(v []Rule) { + o.Rules = v +} + +func (o SecurityGroupUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GloballyEnabled) { + toSerialize["globally_enabled"] = o.GloballyEnabled + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + return toSerialize, nil +} + +type NullableSecurityGroupUpdate struct { + value *SecurityGroupUpdate + isSet bool +} + +func (v NullableSecurityGroupUpdate) Get() *SecurityGroupUpdate { + return v.value +} + +func (v *NullableSecurityGroupUpdate) Set(val *SecurityGroupUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupUpdate(val *SecurityGroupUpdate) *NullableSecurityGroupUpdate { + return &NullableSecurityGroupUpdate{value: val, isSet: true} +} + +func (v NullableSecurityGroupUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_security_group_update_globally_enabled.go b/model_security_group_update_globally_enabled.go new file mode 100644 index 0000000..85bbc0b --- /dev/null +++ b/model_security_group_update_globally_enabled.go @@ -0,0 +1,182 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SecurityGroupUpdateGloballyEnabled type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityGroupUpdateGloballyEnabled{} + +// SecurityGroupUpdateGloballyEnabled struct for SecurityGroupUpdateGloballyEnabled +type SecurityGroupUpdateGloballyEnabled struct { + Running NullableBool `json:"running,omitempty"` + Staging NullableBool `json:"staging,omitempty"` +} + +// NewSecurityGroupUpdateGloballyEnabled instantiates a new SecurityGroupUpdateGloballyEnabled object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityGroupUpdateGloballyEnabled() *SecurityGroupUpdateGloballyEnabled { + this := SecurityGroupUpdateGloballyEnabled{} + return &this +} + +// NewSecurityGroupUpdateGloballyEnabledWithDefaults instantiates a new SecurityGroupUpdateGloballyEnabled object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityGroupUpdateGloballyEnabledWithDefaults() *SecurityGroupUpdateGloballyEnabled { + this := SecurityGroupUpdateGloballyEnabled{} + return &this +} + +// GetRunning returns the Running field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityGroupUpdateGloballyEnabled) GetRunning() bool { + if o == nil || IsNil(o.Running.Get()) { + var ret bool + return ret + } + return *o.Running.Get() +} + +// GetRunningOk returns a tuple with the Running field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityGroupUpdateGloballyEnabled) GetRunningOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Running.Get(), o.Running.IsSet() +} + +// HasRunning returns a boolean if a field has been set. +func (o *SecurityGroupUpdateGloballyEnabled) HasRunning() bool { + if o != nil && o.Running.IsSet() { + return true + } + + return false +} + +// SetRunning gets a reference to the given NullableBool and assigns it to the Running field. +func (o *SecurityGroupUpdateGloballyEnabled) SetRunning(v bool) { + o.Running.Set(&v) +} +// SetRunningNil sets the value for Running to be an explicit nil +func (o *SecurityGroupUpdateGloballyEnabled) SetRunningNil() { + o.Running.Set(nil) +} + +// UnsetRunning ensures that no value is present for Running, not even an explicit nil +func (o *SecurityGroupUpdateGloballyEnabled) UnsetRunning() { + o.Running.Unset() +} + +// GetStaging returns the Staging field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityGroupUpdateGloballyEnabled) GetStaging() bool { + if o == nil || IsNil(o.Staging.Get()) { + var ret bool + return ret + } + return *o.Staging.Get() +} + +// GetStagingOk returns a tuple with the Staging field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityGroupUpdateGloballyEnabled) GetStagingOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Staging.Get(), o.Staging.IsSet() +} + +// HasStaging returns a boolean if a field has been set. +func (o *SecurityGroupUpdateGloballyEnabled) HasStaging() bool { + if o != nil && o.Staging.IsSet() { + return true + } + + return false +} + +// SetStaging gets a reference to the given NullableBool and assigns it to the Staging field. +func (o *SecurityGroupUpdateGloballyEnabled) SetStaging(v bool) { + o.Staging.Set(&v) +} +// SetStagingNil sets the value for Staging to be an explicit nil +func (o *SecurityGroupUpdateGloballyEnabled) SetStagingNil() { + o.Staging.Set(nil) +} + +// UnsetStaging ensures that no value is present for Staging, not even an explicit nil +func (o *SecurityGroupUpdateGloballyEnabled) UnsetStaging() { + o.Staging.Unset() +} + +func (o SecurityGroupUpdateGloballyEnabled) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityGroupUpdateGloballyEnabled) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Running.IsSet() { + toSerialize["running"] = o.Running.Get() + } + if o.Staging.IsSet() { + toSerialize["staging"] = o.Staging.Get() + } + return toSerialize, nil +} + +type NullableSecurityGroupUpdateGloballyEnabled struct { + value *SecurityGroupUpdateGloballyEnabled + isSet bool +} + +func (v NullableSecurityGroupUpdateGloballyEnabled) Get() *SecurityGroupUpdateGloballyEnabled { + return v.value +} + +func (v *NullableSecurityGroupUpdateGloballyEnabled) Set(val *SecurityGroupUpdateGloballyEnabled) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityGroupUpdateGloballyEnabled) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityGroupUpdateGloballyEnabled) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityGroupUpdateGloballyEnabled(val *SecurityGroupUpdateGloballyEnabled) *NullableSecurityGroupUpdateGloballyEnabled { + return &NullableSecurityGroupUpdateGloballyEnabled{value: val, isSet: true} +} + +func (v NullableSecurityGroupUpdateGloballyEnabled) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityGroupUpdateGloballyEnabled) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker.go b/model_service_broker.go new file mode 100644 index 0000000..f1a5357 --- /dev/null +++ b/model_service_broker.go @@ -0,0 +1,379 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceBroker type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBroker{} + +// ServiceBroker struct for ServiceBroker +type ServiceBroker struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *ServiceBrokerLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceBrokerRelationships `json:"relationships,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewServiceBroker instantiates a new ServiceBroker object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBroker() *ServiceBroker { + this := ServiceBroker{} + return &this +} + +// NewServiceBrokerWithDefaults instantiates a new ServiceBroker object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerWithDefaults() *ServiceBroker { + this := ServiceBroker{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceBroker) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceBroker) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceBroker) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceBroker) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceBroker) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceBroker) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceBroker) GetLinks() ServiceBrokerLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceBrokerLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetLinksOk() (*ServiceBrokerLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceBroker) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceBrokerLinks and assigns it to the Links field. +func (o *ServiceBroker) SetLinks(v ServiceBrokerLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceBroker) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceBroker) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceBroker) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceBroker) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceBroker) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceBroker) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceBroker) GetRelationships() ServiceBrokerRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceBrokerRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetRelationshipsOk() (*ServiceBrokerRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceBroker) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceBrokerRelationships and assigns it to the Relationships field. +func (o *ServiceBroker) SetRelationships(v ServiceBrokerRelationships) { + o.Relationships = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceBroker) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceBroker) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceBroker) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ServiceBroker) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBroker) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ServiceBroker) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ServiceBroker) SetUrl(v string) { + o.Url = &v +} + +func (o ServiceBroker) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBroker) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableServiceBroker struct { + value *ServiceBroker + isSet bool +} + +func (v NullableServiceBroker) Get() *ServiceBroker { + return v.value +} + +func (v *NullableServiceBroker) Set(val *ServiceBroker) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBroker) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBroker) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBroker(val *ServiceBroker) *NullableServiceBroker { + return &NullableServiceBroker{value: val, isSet: true} +} + +func (v NullableServiceBroker) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBroker) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker_create.go b/model_service_broker_create.go new file mode 100644 index 0000000..4ea7a95 --- /dev/null +++ b/model_service_broker_create.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceBrokerCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBrokerCreate{} + +// ServiceBrokerCreate struct for ServiceBrokerCreate +type ServiceBrokerCreate struct { + Authentication *Authentication `json:"authentication,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceBrokerRelationships `json:"relationships,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewServiceBrokerCreate instantiates a new ServiceBrokerCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBrokerCreate() *ServiceBrokerCreate { + this := ServiceBrokerCreate{} + return &this +} + +// NewServiceBrokerCreateWithDefaults instantiates a new ServiceBrokerCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerCreateWithDefaults() *ServiceBrokerCreate { + this := ServiceBrokerCreate{} + return &this +} + +// GetAuthentication returns the Authentication field value if set, zero value otherwise. +func (o *ServiceBrokerCreate) GetAuthentication() Authentication { + if o == nil || IsNil(o.Authentication) { + var ret Authentication + return ret + } + return *o.Authentication +} + +// GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerCreate) GetAuthenticationOk() (*Authentication, bool) { + if o == nil || IsNil(o.Authentication) { + return nil, false + } + return o.Authentication, true +} + +// HasAuthentication returns a boolean if a field has been set. +func (o *ServiceBrokerCreate) HasAuthentication() bool { + if o != nil && !IsNil(o.Authentication) { + return true + } + + return false +} + +// SetAuthentication gets a reference to the given Authentication and assigns it to the Authentication field. +func (o *ServiceBrokerCreate) SetAuthentication(v Authentication) { + o.Authentication = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceBrokerCreate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerCreate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceBrokerCreate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceBrokerCreate) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceBrokerCreate) GetRelationships() ServiceBrokerRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceBrokerRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerCreate) GetRelationshipsOk() (*ServiceBrokerRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceBrokerCreate) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceBrokerRelationships and assigns it to the Relationships field. +func (o *ServiceBrokerCreate) SetRelationships(v ServiceBrokerRelationships) { + o.Relationships = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ServiceBrokerCreate) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerCreate) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ServiceBrokerCreate) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ServiceBrokerCreate) SetUrl(v string) { + o.Url = &v +} + +func (o ServiceBrokerCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBrokerCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Authentication) { + toSerialize["authentication"] = o.Authentication + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableServiceBrokerCreate struct { + value *ServiceBrokerCreate + isSet bool +} + +func (v NullableServiceBrokerCreate) Get() *ServiceBrokerCreate { + return v.value +} + +func (v *NullableServiceBrokerCreate) Set(val *ServiceBrokerCreate) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBrokerCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBrokerCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBrokerCreate(val *ServiceBrokerCreate) *NullableServiceBrokerCreate { + return &NullableServiceBrokerCreate{value: val, isSet: true} +} + +func (v NullableServiceBrokerCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBrokerCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker_links.go b/model_service_broker_links.go new file mode 100644 index 0000000..638e4a7 --- /dev/null +++ b/model_service_broker_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceBrokerLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBrokerLinks{} + +// ServiceBrokerLinks struct for ServiceBrokerLinks +type ServiceBrokerLinks struct { + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + ServiceOfferings *Get200ResponseLinksLogCache `json:"service_offerings,omitempty"` + Space *Get200ResponseLinksLogCache `json:"space,omitempty"` +} + +// NewServiceBrokerLinks instantiates a new ServiceBrokerLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBrokerLinks() *ServiceBrokerLinks { + this := ServiceBrokerLinks{} + return &this +} + +// NewServiceBrokerLinksWithDefaults instantiates a new ServiceBrokerLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerLinksWithDefaults() *ServiceBrokerLinks { + this := ServiceBrokerLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServiceBrokerLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServiceBrokerLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *ServiceBrokerLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetServiceOfferings returns the ServiceOfferings field value if set, zero value otherwise. +func (o *ServiceBrokerLinks) GetServiceOfferings() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceOfferings) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceOfferings +} + +// GetServiceOfferingsOk returns a tuple with the ServiceOfferings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerLinks) GetServiceOfferingsOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceOfferings) { + return nil, false + } + return o.ServiceOfferings, true +} + +// HasServiceOfferings returns a boolean if a field has been set. +func (o *ServiceBrokerLinks) HasServiceOfferings() bool { + if o != nil && !IsNil(o.ServiceOfferings) { + return true + } + + return false +} + +// SetServiceOfferings gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceOfferings field. +func (o *ServiceBrokerLinks) SetServiceOfferings(v Get200ResponseLinksLogCache) { + o.ServiceOfferings = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *ServiceBrokerLinks) GetSpace() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Space) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerLinks) GetSpaceOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *ServiceBrokerLinks) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Space field. +func (o *ServiceBrokerLinks) SetSpace(v Get200ResponseLinksLogCache) { + o.Space = &v +} + +func (o ServiceBrokerLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBrokerLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceOfferings) { + toSerialize["service_offerings"] = o.ServiceOfferings + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableServiceBrokerLinks struct { + value *ServiceBrokerLinks + isSet bool +} + +func (v NullableServiceBrokerLinks) Get() *ServiceBrokerLinks { + return v.value +} + +func (v *NullableServiceBrokerLinks) Set(val *ServiceBrokerLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBrokerLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBrokerLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBrokerLinks(val *ServiceBrokerLinks) *NullableServiceBrokerLinks { + return &NullableServiceBrokerLinks{value: val, isSet: true} +} + +func (v NullableServiceBrokerLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBrokerLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker_list.go b/model_service_broker_list.go new file mode 100644 index 0000000..dc7fc22 --- /dev/null +++ b/model_service_broker_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceBrokerList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBrokerList{} + +// ServiceBrokerList struct for ServiceBrokerList +type ServiceBrokerList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []ServiceBroker `json:"resources,omitempty"` +} + +// NewServiceBrokerList instantiates a new ServiceBrokerList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBrokerList() *ServiceBrokerList { + this := ServiceBrokerList{} + return &this +} + +// NewServiceBrokerListWithDefaults instantiates a new ServiceBrokerList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerListWithDefaults() *ServiceBrokerList { + this := ServiceBrokerList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ServiceBrokerList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *ServiceBrokerList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *ServiceBrokerList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ServiceBrokerList) GetResources() []ServiceBroker { + if o == nil || IsNil(o.Resources) { + var ret []ServiceBroker + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerList) GetResourcesOk() ([]ServiceBroker, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ServiceBrokerList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServiceBroker and assigns it to the Resources field. +func (o *ServiceBrokerList) SetResources(v []ServiceBroker) { + o.Resources = v +} + +func (o ServiceBrokerList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBrokerList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableServiceBrokerList struct { + value *ServiceBrokerList + isSet bool +} + +func (v NullableServiceBrokerList) Get() *ServiceBrokerList { + return v.value +} + +func (v *NullableServiceBrokerList) Set(val *ServiceBrokerList) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBrokerList) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBrokerList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBrokerList(val *ServiceBrokerList) *NullableServiceBrokerList { + return &NullableServiceBrokerList{value: val, isSet: true} +} + +func (v NullableServiceBrokerList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBrokerList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker_relationships.go b/model_service_broker_relationships.go new file mode 100644 index 0000000..bddefb0 --- /dev/null +++ b/model_service_broker_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceBrokerRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBrokerRelationships{} + +// ServiceBrokerRelationships struct for ServiceBrokerRelationships +type ServiceBrokerRelationships struct { + Space *V3AppsPostRequestRelationshipsSpace `json:"space,omitempty"` +} + +// NewServiceBrokerRelationships instantiates a new ServiceBrokerRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBrokerRelationships() *ServiceBrokerRelationships { + this := ServiceBrokerRelationships{} + return &this +} + +// NewServiceBrokerRelationshipsWithDefaults instantiates a new ServiceBrokerRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerRelationshipsWithDefaults() *ServiceBrokerRelationships { + this := ServiceBrokerRelationships{} + return &this +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *ServiceBrokerRelationships) GetSpace() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Space) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerRelationships) GetSpaceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *ServiceBrokerRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Space field. +func (o *ServiceBrokerRelationships) SetSpace(v V3AppsPostRequestRelationshipsSpace) { + o.Space = &v +} + +func (o ServiceBrokerRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBrokerRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableServiceBrokerRelationships struct { + value *ServiceBrokerRelationships + isSet bool +} + +func (v NullableServiceBrokerRelationships) Get() *ServiceBrokerRelationships { + return v.value +} + +func (v *NullableServiceBrokerRelationships) Set(val *ServiceBrokerRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBrokerRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBrokerRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBrokerRelationships(val *ServiceBrokerRelationships) *NullableServiceBrokerRelationships { + return &NullableServiceBrokerRelationships{value: val, isSet: true} +} + +func (v NullableServiceBrokerRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBrokerRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_broker_update.go b/model_service_broker_update.go new file mode 100644 index 0000000..cfffe37 --- /dev/null +++ b/model_service_broker_update.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceBrokerUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceBrokerUpdate{} + +// ServiceBrokerUpdate struct for ServiceBrokerUpdate +type ServiceBrokerUpdate struct { + Authentication *Authentication `json:"authentication,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewServiceBrokerUpdate instantiates a new ServiceBrokerUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceBrokerUpdate() *ServiceBrokerUpdate { + this := ServiceBrokerUpdate{} + return &this +} + +// NewServiceBrokerUpdateWithDefaults instantiates a new ServiceBrokerUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceBrokerUpdateWithDefaults() *ServiceBrokerUpdate { + this := ServiceBrokerUpdate{} + return &this +} + +// GetAuthentication returns the Authentication field value if set, zero value otherwise. +func (o *ServiceBrokerUpdate) GetAuthentication() Authentication { + if o == nil || IsNil(o.Authentication) { + var ret Authentication + return ret + } + return *o.Authentication +} + +// GetAuthenticationOk returns a tuple with the Authentication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerUpdate) GetAuthenticationOk() (*Authentication, bool) { + if o == nil || IsNil(o.Authentication) { + return nil, false + } + return o.Authentication, true +} + +// HasAuthentication returns a boolean if a field has been set. +func (o *ServiceBrokerUpdate) HasAuthentication() bool { + if o != nil && !IsNil(o.Authentication) { + return true + } + + return false +} + +// SetAuthentication gets a reference to the given Authentication and assigns it to the Authentication field. +func (o *ServiceBrokerUpdate) SetAuthentication(v Authentication) { + o.Authentication = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceBrokerUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceBrokerUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceBrokerUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceBrokerUpdate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerUpdate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceBrokerUpdate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceBrokerUpdate) SetName(v string) { + o.Name = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ServiceBrokerUpdate) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceBrokerUpdate) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ServiceBrokerUpdate) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ServiceBrokerUpdate) SetUrl(v string) { + o.Url = &v +} + +func (o ServiceBrokerUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceBrokerUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Authentication) { + toSerialize["authentication"] = o.Authentication + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableServiceBrokerUpdate struct { + value *ServiceBrokerUpdate + isSet bool +} + +func (v NullableServiceBrokerUpdate) Get() *ServiceBrokerUpdate { + return v.value +} + +func (v *NullableServiceBrokerUpdate) Set(val *ServiceBrokerUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableServiceBrokerUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceBrokerUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceBrokerUpdate(val *ServiceBrokerUpdate) *NullableServiceBrokerUpdate { + return &NullableServiceBrokerUpdate{value: val, isSet: true} +} + +func (v NullableServiceBrokerUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceBrokerUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_credential_binding.go b/model_service_credential_binding.go new file mode 100644 index 0000000..7fb12c5 --- /dev/null +++ b/model_service_credential_binding.go @@ -0,0 +1,415 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceCredentialBinding type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceCredentialBinding{} + +// ServiceCredentialBinding struct for ServiceCredentialBinding +type ServiceCredentialBinding struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + LastOperation *ServiceCredentialBindingLastOperation `json:"last_operation,omitempty"` + Links *ServiceCredentialBindingLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceCredentialBindingRelationships `json:"relationships,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewServiceCredentialBinding instantiates a new ServiceCredentialBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceCredentialBinding() *ServiceCredentialBinding { + this := ServiceCredentialBinding{} + return &this +} + +// NewServiceCredentialBindingWithDefaults instantiates a new ServiceCredentialBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceCredentialBindingWithDefaults() *ServiceCredentialBinding { + this := ServiceCredentialBinding{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceCredentialBinding) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceCredentialBinding) SetGuid(v string) { + o.Guid = &v +} + +// GetLastOperation returns the LastOperation field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetLastOperation() ServiceCredentialBindingLastOperation { + if o == nil || IsNil(o.LastOperation) { + var ret ServiceCredentialBindingLastOperation + return ret + } + return *o.LastOperation +} + +// GetLastOperationOk returns a tuple with the LastOperation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetLastOperationOk() (*ServiceCredentialBindingLastOperation, bool) { + if o == nil || IsNil(o.LastOperation) { + return nil, false + } + return o.LastOperation, true +} + +// HasLastOperation returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasLastOperation() bool { + if o != nil && !IsNil(o.LastOperation) { + return true + } + + return false +} + +// SetLastOperation gets a reference to the given ServiceCredentialBindingLastOperation and assigns it to the LastOperation field. +func (o *ServiceCredentialBinding) SetLastOperation(v ServiceCredentialBindingLastOperation) { + o.LastOperation = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetLinks() ServiceCredentialBindingLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceCredentialBindingLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetLinksOk() (*ServiceCredentialBindingLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceCredentialBindingLinks and assigns it to the Links field. +func (o *ServiceCredentialBinding) SetLinks(v ServiceCredentialBindingLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceCredentialBinding) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceCredentialBinding) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetRelationships() ServiceCredentialBindingRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceCredentialBindingRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetRelationshipsOk() (*ServiceCredentialBindingRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceCredentialBindingRelationships and assigns it to the Relationships field. +func (o *ServiceCredentialBinding) SetRelationships(v ServiceCredentialBindingRelationships) { + o.Relationships = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServiceCredentialBinding) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceCredentialBinding) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBinding) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceCredentialBinding) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceCredentialBinding) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ServiceCredentialBinding) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceCredentialBinding) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.LastOperation) { + toSerialize["last_operation"] = o.LastOperation + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableServiceCredentialBinding struct { + value *ServiceCredentialBinding + isSet bool +} + +func (v NullableServiceCredentialBinding) Get() *ServiceCredentialBinding { + return v.value +} + +func (v *NullableServiceCredentialBinding) Set(val *ServiceCredentialBinding) { + v.value = val + v.isSet = true +} + +func (v NullableServiceCredentialBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceCredentialBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceCredentialBinding(val *ServiceCredentialBinding) *NullableServiceCredentialBinding { + return &NullableServiceCredentialBinding{value: val, isSet: true} +} + +func (v NullableServiceCredentialBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceCredentialBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_credential_binding_last_operation.go b/model_service_credential_binding_last_operation.go new file mode 100644 index 0000000..036511d --- /dev/null +++ b/model_service_credential_binding_last_operation.go @@ -0,0 +1,271 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceCredentialBindingLastOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceCredentialBindingLastOperation{} + +// ServiceCredentialBindingLastOperation struct for ServiceCredentialBindingLastOperation +type ServiceCredentialBindingLastOperation struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + State *string `json:"state,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewServiceCredentialBindingLastOperation instantiates a new ServiceCredentialBindingLastOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceCredentialBindingLastOperation() *ServiceCredentialBindingLastOperation { + this := ServiceCredentialBindingLastOperation{} + return &this +} + +// NewServiceCredentialBindingLastOperationWithDefaults instantiates a new ServiceCredentialBindingLastOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceCredentialBindingLastOperationWithDefaults() *ServiceCredentialBindingLastOperation { + this := ServiceCredentialBindingLastOperation{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLastOperation) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLastOperation) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLastOperation) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceCredentialBindingLastOperation) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLastOperation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLastOperation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLastOperation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceCredentialBindingLastOperation) SetDescription(v string) { + o.Description = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLastOperation) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLastOperation) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLastOperation) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ServiceCredentialBindingLastOperation) SetState(v string) { + o.State = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLastOperation) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLastOperation) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLastOperation) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServiceCredentialBindingLastOperation) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLastOperation) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLastOperation) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLastOperation) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceCredentialBindingLastOperation) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ServiceCredentialBindingLastOperation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceCredentialBindingLastOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableServiceCredentialBindingLastOperation struct { + value *ServiceCredentialBindingLastOperation + isSet bool +} + +func (v NullableServiceCredentialBindingLastOperation) Get() *ServiceCredentialBindingLastOperation { + return v.value +} + +func (v *NullableServiceCredentialBindingLastOperation) Set(val *ServiceCredentialBindingLastOperation) { + v.value = val + v.isSet = true +} + +func (v NullableServiceCredentialBindingLastOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceCredentialBindingLastOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceCredentialBindingLastOperation(val *ServiceCredentialBindingLastOperation) *NullableServiceCredentialBindingLastOperation { + return &NullableServiceCredentialBindingLastOperation{value: val, isSet: true} +} + +func (v NullableServiceCredentialBindingLastOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceCredentialBindingLastOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_credential_binding_links.go b/model_service_credential_binding_links.go new file mode 100644 index 0000000..3d58e85 --- /dev/null +++ b/model_service_credential_binding_links.go @@ -0,0 +1,270 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceCredentialBindingLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceCredentialBindingLinks{} + +// ServiceCredentialBindingLinks struct for ServiceCredentialBindingLinks +type ServiceCredentialBindingLinks struct { + App *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"app,omitempty"` + Details *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"details,omitempty"` + Parameters *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"parameters,omitempty"` + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` + ServiceInstance *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"service_instance,omitempty"` +} + +// NewServiceCredentialBindingLinks instantiates a new ServiceCredentialBindingLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceCredentialBindingLinks() *ServiceCredentialBindingLinks { + this := ServiceCredentialBindingLinks{} + return &this +} + +// NewServiceCredentialBindingLinksWithDefaults instantiates a new ServiceCredentialBindingLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceCredentialBindingLinksWithDefaults() *ServiceCredentialBindingLinks { + this := ServiceCredentialBindingLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLinks) GetApp() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.App) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLinks) GetAppOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the App field. +func (o *ServiceCredentialBindingLinks) SetApp(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.App = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLinks) GetDetails() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Details) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLinks) GetDetailsOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Details) { + return nil, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLinks) HasDetails() bool { + if o != nil && !IsNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Details field. +func (o *ServiceCredentialBindingLinks) SetDetails(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Details = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLinks) GetParameters() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Parameters) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLinks) GetParametersOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLinks) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Parameters field. +func (o *ServiceCredentialBindingLinks) SetParameters(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Parameters = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *ServiceCredentialBindingLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise. +func (o *ServiceCredentialBindingLinks) GetServiceInstance() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.ServiceInstance) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingLinks) GetServiceInstanceOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.ServiceInstance) { + return nil, false + } + return o.ServiceInstance, true +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *ServiceCredentialBindingLinks) HasServiceInstance() bool { + if o != nil && !IsNil(o.ServiceInstance) { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the ServiceInstance field. +func (o *ServiceCredentialBindingLinks) SetServiceInstance(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.ServiceInstance = &v +} + +func (o ServiceCredentialBindingLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceCredentialBindingLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Details) { + toSerialize["details"] = o.Details + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceInstance) { + toSerialize["service_instance"] = o.ServiceInstance + } + return toSerialize, nil +} + +type NullableServiceCredentialBindingLinks struct { + value *ServiceCredentialBindingLinks + isSet bool +} + +func (v NullableServiceCredentialBindingLinks) Get() *ServiceCredentialBindingLinks { + return v.value +} + +func (v *NullableServiceCredentialBindingLinks) Set(val *ServiceCredentialBindingLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServiceCredentialBindingLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceCredentialBindingLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceCredentialBindingLinks(val *ServiceCredentialBindingLinks) *NullableServiceCredentialBindingLinks { + return &NullableServiceCredentialBindingLinks{value: val, isSet: true} +} + +func (v NullableServiceCredentialBindingLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceCredentialBindingLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_credential_binding_relationships.go b/model_service_credential_binding_relationships.go new file mode 100644 index 0000000..1034326 --- /dev/null +++ b/model_service_credential_binding_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceCredentialBindingRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceCredentialBindingRelationships{} + +// ServiceCredentialBindingRelationships struct for ServiceCredentialBindingRelationships +type ServiceCredentialBindingRelationships struct { + App *V3AppsPostRequestRelationshipsSpace `json:"app,omitempty"` + ServiceInstance *V3AppsPostRequestRelationshipsSpace `json:"service_instance,omitempty"` +} + +// NewServiceCredentialBindingRelationships instantiates a new ServiceCredentialBindingRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceCredentialBindingRelationships() *ServiceCredentialBindingRelationships { + this := ServiceCredentialBindingRelationships{} + return &this +} + +// NewServiceCredentialBindingRelationshipsWithDefaults instantiates a new ServiceCredentialBindingRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceCredentialBindingRelationshipsWithDefaults() *ServiceCredentialBindingRelationships { + this := ServiceCredentialBindingRelationships{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *ServiceCredentialBindingRelationships) GetApp() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.App) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingRelationships) GetAppOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *ServiceCredentialBindingRelationships) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the App field. +func (o *ServiceCredentialBindingRelationships) SetApp(v V3AppsPostRequestRelationshipsSpace) { + o.App = &v +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise. +func (o *ServiceCredentialBindingRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.ServiceInstance) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceCredentialBindingRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.ServiceInstance) { + return nil, false + } + return o.ServiceInstance, true +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *ServiceCredentialBindingRelationships) HasServiceInstance() bool { + if o != nil && !IsNil(o.ServiceInstance) { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the ServiceInstance field. +func (o *ServiceCredentialBindingRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace) { + o.ServiceInstance = &v +} + +func (o ServiceCredentialBindingRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceCredentialBindingRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.ServiceInstance) { + toSerialize["service_instance"] = o.ServiceInstance + } + return toSerialize, nil +} + +type NullableServiceCredentialBindingRelationships struct { + value *ServiceCredentialBindingRelationships + isSet bool +} + +func (v NullableServiceCredentialBindingRelationships) Get() *ServiceCredentialBindingRelationships { + return v.value +} + +func (v *NullableServiceCredentialBindingRelationships) Set(val *ServiceCredentialBindingRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServiceCredentialBindingRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceCredentialBindingRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceCredentialBindingRelationships(val *ServiceCredentialBindingRelationships) *NullableServiceCredentialBindingRelationships { + return &NullableServiceCredentialBindingRelationships{value: val, isSet: true} +} + +func (v NullableServiceCredentialBindingRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceCredentialBindingRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_instance.go b/model_service_instance.go new file mode 100644 index 0000000..f972480 --- /dev/null +++ b/model_service_instance.go @@ -0,0 +1,559 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceInstance{} + +// ServiceInstance struct for ServiceInstance +type ServiceInstance struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + DashboardUrl *string `json:"dashboard_url,omitempty"` + Guid *string `json:"guid,omitempty"` + LastOperation *LastOperation `json:"last_operation,omitempty"` + Links *Links `json:"links,omitempty"` + MaintenanceInfo *Get200ResponseLinksCloudControllerV2Meta `json:"maintenance_info,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceInstanceRelationships `json:"relationships,omitempty"` + Tags []string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + UpgradeAvailable *bool `json:"upgrade_available,omitempty"` +} + +// NewServiceInstance instantiates a new ServiceInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceInstance() *ServiceInstance { + this := ServiceInstance{} + return &this +} + +// NewServiceInstanceWithDefaults instantiates a new ServiceInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceInstanceWithDefaults() *ServiceInstance { + this := ServiceInstance{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceInstance) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceInstance) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceInstance) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDashboardUrl returns the DashboardUrl field value if set, zero value otherwise. +func (o *ServiceInstance) GetDashboardUrl() string { + if o == nil || IsNil(o.DashboardUrl) { + var ret string + return ret + } + return *o.DashboardUrl +} + +// GetDashboardUrlOk returns a tuple with the DashboardUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetDashboardUrlOk() (*string, bool) { + if o == nil || IsNil(o.DashboardUrl) { + return nil, false + } + return o.DashboardUrl, true +} + +// HasDashboardUrl returns a boolean if a field has been set. +func (o *ServiceInstance) HasDashboardUrl() bool { + if o != nil && !IsNil(o.DashboardUrl) { + return true + } + + return false +} + +// SetDashboardUrl gets a reference to the given string and assigns it to the DashboardUrl field. +func (o *ServiceInstance) SetDashboardUrl(v string) { + o.DashboardUrl = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceInstance) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceInstance) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceInstance) SetGuid(v string) { + o.Guid = &v +} + +// GetLastOperation returns the LastOperation field value if set, zero value otherwise. +func (o *ServiceInstance) GetLastOperation() LastOperation { + if o == nil || IsNil(o.LastOperation) { + var ret LastOperation + return ret + } + return *o.LastOperation +} + +// GetLastOperationOk returns a tuple with the LastOperation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetLastOperationOk() (*LastOperation, bool) { + if o == nil || IsNil(o.LastOperation) { + return nil, false + } + return o.LastOperation, true +} + +// HasLastOperation returns a boolean if a field has been set. +func (o *ServiceInstance) HasLastOperation() bool { + if o != nil && !IsNil(o.LastOperation) { + return true + } + + return false +} + +// SetLastOperation gets a reference to the given LastOperation and assigns it to the LastOperation field. +func (o *ServiceInstance) SetLastOperation(v LastOperation) { + o.LastOperation = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceInstance) GetLinks() Links { + if o == nil || IsNil(o.Links) { + var ret Links + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetLinksOk() (*Links, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceInstance) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given Links and assigns it to the Links field. +func (o *ServiceInstance) SetLinks(v Links) { + o.Links = &v +} + +// GetMaintenanceInfo returns the MaintenanceInfo field value if set, zero value otherwise. +func (o *ServiceInstance) GetMaintenanceInfo() Get200ResponseLinksCloudControllerV2Meta { + if o == nil || IsNil(o.MaintenanceInfo) { + var ret Get200ResponseLinksCloudControllerV2Meta + return ret + } + return *o.MaintenanceInfo +} + +// GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetMaintenanceInfoOk() (*Get200ResponseLinksCloudControllerV2Meta, bool) { + if o == nil || IsNil(o.MaintenanceInfo) { + return nil, false + } + return o.MaintenanceInfo, true +} + +// HasMaintenanceInfo returns a boolean if a field has been set. +func (o *ServiceInstance) HasMaintenanceInfo() bool { + if o != nil && !IsNil(o.MaintenanceInfo) { + return true + } + + return false +} + +// SetMaintenanceInfo gets a reference to the given Get200ResponseLinksCloudControllerV2Meta and assigns it to the MaintenanceInfo field. +func (o *ServiceInstance) SetMaintenanceInfo(v Get200ResponseLinksCloudControllerV2Meta) { + o.MaintenanceInfo = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceInstance) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceInstance) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceInstance) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceInstance) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceInstance) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceInstance) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceInstance) GetRelationships() ServiceInstanceRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceInstanceRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetRelationshipsOk() (*ServiceInstanceRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceInstance) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceInstanceRelationships and assigns it to the Relationships field. +func (o *ServiceInstance) SetRelationships(v ServiceInstanceRelationships) { + o.Relationships = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ServiceInstance) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ServiceInstance) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ServiceInstance) SetTags(v []string) { + o.Tags = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServiceInstance) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServiceInstance) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServiceInstance) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceInstance) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceInstance) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceInstance) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUpgradeAvailable returns the UpgradeAvailable field value if set, zero value otherwise. +func (o *ServiceInstance) GetUpgradeAvailable() bool { + if o == nil || IsNil(o.UpgradeAvailable) { + var ret bool + return ret + } + return *o.UpgradeAvailable +} + +// GetUpgradeAvailableOk returns a tuple with the UpgradeAvailable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstance) GetUpgradeAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.UpgradeAvailable) { + return nil, false + } + return o.UpgradeAvailable, true +} + +// HasUpgradeAvailable returns a boolean if a field has been set. +func (o *ServiceInstance) HasUpgradeAvailable() bool { + if o != nil && !IsNil(o.UpgradeAvailable) { + return true + } + + return false +} + +// SetUpgradeAvailable gets a reference to the given bool and assigns it to the UpgradeAvailable field. +func (o *ServiceInstance) SetUpgradeAvailable(v bool) { + o.UpgradeAvailable = &v +} + +func (o ServiceInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DashboardUrl) { + toSerialize["dashboard_url"] = o.DashboardUrl + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.LastOperation) { + toSerialize["last_operation"] = o.LastOperation + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.MaintenanceInfo) { + toSerialize["maintenance_info"] = o.MaintenanceInfo + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.UpgradeAvailable) { + toSerialize["upgrade_available"] = o.UpgradeAvailable + } + return toSerialize, nil +} + +type NullableServiceInstance struct { + value *ServiceInstance + isSet bool +} + +func (v NullableServiceInstance) Get() *ServiceInstance { + return v.value +} + +func (v *NullableServiceInstance) Set(val *ServiceInstance) { + v.value = val + v.isSet = true +} + +func (v NullableServiceInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceInstance(val *ServiceInstance) *NullableServiceInstance { + return &NullableServiceInstance{value: val, isSet: true} +} + +func (v NullableServiceInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_instance_relationships.go b/model_service_instance_relationships.go new file mode 100644 index 0000000..5f452da --- /dev/null +++ b/model_service_instance_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceInstanceRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceInstanceRelationships{} + +// ServiceInstanceRelationships struct for ServiceInstanceRelationships +type ServiceInstanceRelationships struct { + ServicePlan *ToOneRelationship `json:"service_plan,omitempty"` + Space *ToOneRelationship `json:"space,omitempty"` +} + +// NewServiceInstanceRelationships instantiates a new ServiceInstanceRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceInstanceRelationships() *ServiceInstanceRelationships { + this := ServiceInstanceRelationships{} + return &this +} + +// NewServiceInstanceRelationshipsWithDefaults instantiates a new ServiceInstanceRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceInstanceRelationshipsWithDefaults() *ServiceInstanceRelationships { + this := ServiceInstanceRelationships{} + return &this +} + +// GetServicePlan returns the ServicePlan field value if set, zero value otherwise. +func (o *ServiceInstanceRelationships) GetServicePlan() ToOneRelationship { + if o == nil || IsNil(o.ServicePlan) { + var ret ToOneRelationship + return ret + } + return *o.ServicePlan +} + +// GetServicePlanOk returns a tuple with the ServicePlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstanceRelationships) GetServicePlanOk() (*ToOneRelationship, bool) { + if o == nil || IsNil(o.ServicePlan) { + return nil, false + } + return o.ServicePlan, true +} + +// HasServicePlan returns a boolean if a field has been set. +func (o *ServiceInstanceRelationships) HasServicePlan() bool { + if o != nil && !IsNil(o.ServicePlan) { + return true + } + + return false +} + +// SetServicePlan gets a reference to the given ToOneRelationship and assigns it to the ServicePlan field. +func (o *ServiceInstanceRelationships) SetServicePlan(v ToOneRelationship) { + o.ServicePlan = &v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *ServiceInstanceRelationships) GetSpace() ToOneRelationship { + if o == nil || IsNil(o.Space) { + var ret ToOneRelationship + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceInstanceRelationships) GetSpaceOk() (*ToOneRelationship, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *ServiceInstanceRelationships) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given ToOneRelationship and assigns it to the Space field. +func (o *ServiceInstanceRelationships) SetSpace(v ToOneRelationship) { + o.Space = &v +} + +func (o ServiceInstanceRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceInstanceRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServicePlan) { + toSerialize["service_plan"] = o.ServicePlan + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + return toSerialize, nil +} + +type NullableServiceInstanceRelationships struct { + value *ServiceInstanceRelationships + isSet bool +} + +func (v NullableServiceInstanceRelationships) Get() *ServiceInstanceRelationships { + return v.value +} + +func (v *NullableServiceInstanceRelationships) Set(val *ServiceInstanceRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServiceInstanceRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceInstanceRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceInstanceRelationships(val *ServiceInstanceRelationships) *NullableServiceInstanceRelationships { + return &NullableServiceInstanceRelationships{value: val, isSet: true} +} + +func (v NullableServiceInstanceRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceInstanceRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering.go b/model_service_offering.go new file mode 100644 index 0000000..54f3da7 --- /dev/null +++ b/model_service_offering.go @@ -0,0 +1,595 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceOffering type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOffering{} + +// ServiceOffering struct for ServiceOffering +type ServiceOffering struct { + Available *bool `json:"available,omitempty"` + BrokerCatalog *BrokerCatalog `json:"broker_catalog,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *ServiceOfferingLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceOfferingRelationships `json:"relationships,omitempty"` + Requires []string `json:"requires,omitempty"` + Shareable *bool `json:"shareable,omitempty"` + Tags []string `json:"tags,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewServiceOffering instantiates a new ServiceOffering object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOffering() *ServiceOffering { + this := ServiceOffering{} + return &this +} + +// NewServiceOfferingWithDefaults instantiates a new ServiceOffering object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingWithDefaults() *ServiceOffering { + this := ServiceOffering{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ServiceOffering) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ServiceOffering) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ServiceOffering) SetAvailable(v bool) { + o.Available = &v +} + +// GetBrokerCatalog returns the BrokerCatalog field value if set, zero value otherwise. +func (o *ServiceOffering) GetBrokerCatalog() BrokerCatalog { + if o == nil || IsNil(o.BrokerCatalog) { + var ret BrokerCatalog + return ret + } + return *o.BrokerCatalog +} + +// GetBrokerCatalogOk returns a tuple with the BrokerCatalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetBrokerCatalogOk() (*BrokerCatalog, bool) { + if o == nil || IsNil(o.BrokerCatalog) { + return nil, false + } + return o.BrokerCatalog, true +} + +// HasBrokerCatalog returns a boolean if a field has been set. +func (o *ServiceOffering) HasBrokerCatalog() bool { + if o != nil && !IsNil(o.BrokerCatalog) { + return true + } + + return false +} + +// SetBrokerCatalog gets a reference to the given BrokerCatalog and assigns it to the BrokerCatalog field. +func (o *ServiceOffering) SetBrokerCatalog(v BrokerCatalog) { + o.BrokerCatalog = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceOffering) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceOffering) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceOffering) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceOffering) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceOffering) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceOffering) SetDescription(v string) { + o.Description = &v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *ServiceOffering) GetDocumentationUrl() string { + if o == nil || IsNil(o.DocumentationUrl) { + var ret string + return ret + } + return *o.DocumentationUrl +} + +// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetDocumentationUrlOk() (*string, bool) { + if o == nil || IsNil(o.DocumentationUrl) { + return nil, false + } + return o.DocumentationUrl, true +} + +// HasDocumentationUrl returns a boolean if a field has been set. +func (o *ServiceOffering) HasDocumentationUrl() bool { + if o != nil && !IsNil(o.DocumentationUrl) { + return true + } + + return false +} + +// SetDocumentationUrl gets a reference to the given string and assigns it to the DocumentationUrl field. +func (o *ServiceOffering) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceOffering) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceOffering) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceOffering) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceOffering) GetLinks() ServiceOfferingLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceOfferingLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetLinksOk() (*ServiceOfferingLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceOffering) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceOfferingLinks and assigns it to the Links field. +func (o *ServiceOffering) SetLinks(v ServiceOfferingLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceOffering) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceOffering) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceOffering) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceOffering) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceOffering) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceOffering) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceOffering) GetRelationships() ServiceOfferingRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceOfferingRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetRelationshipsOk() (*ServiceOfferingRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceOffering) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceOfferingRelationships and assigns it to the Relationships field. +func (o *ServiceOffering) SetRelationships(v ServiceOfferingRelationships) { + o.Relationships = &v +} + +// GetRequires returns the Requires field value if set, zero value otherwise. +func (o *ServiceOffering) GetRequires() []string { + if o == nil || IsNil(o.Requires) { + var ret []string + return ret + } + return o.Requires +} + +// GetRequiresOk returns a tuple with the Requires field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetRequiresOk() ([]string, bool) { + if o == nil || IsNil(o.Requires) { + return nil, false + } + return o.Requires, true +} + +// HasRequires returns a boolean if a field has been set. +func (o *ServiceOffering) HasRequires() bool { + if o != nil && !IsNil(o.Requires) { + return true + } + + return false +} + +// SetRequires gets a reference to the given []string and assigns it to the Requires field. +func (o *ServiceOffering) SetRequires(v []string) { + o.Requires = v +} + +// GetShareable returns the Shareable field value if set, zero value otherwise. +func (o *ServiceOffering) GetShareable() bool { + if o == nil || IsNil(o.Shareable) { + var ret bool + return ret + } + return *o.Shareable +} + +// GetShareableOk returns a tuple with the Shareable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetShareableOk() (*bool, bool) { + if o == nil || IsNil(o.Shareable) { + return nil, false + } + return o.Shareable, true +} + +// HasShareable returns a boolean if a field has been set. +func (o *ServiceOffering) HasShareable() bool { + if o != nil && !IsNil(o.Shareable) { + return true + } + + return false +} + +// SetShareable gets a reference to the given bool and assigns it to the Shareable field. +func (o *ServiceOffering) SetShareable(v bool) { + o.Shareable = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ServiceOffering) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ServiceOffering) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ServiceOffering) SetTags(v []string) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceOffering) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOffering) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceOffering) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceOffering) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ServiceOffering) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOffering) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.BrokerCatalog) { + toSerialize["broker_catalog"] = o.BrokerCatalog + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Requires) { + toSerialize["requires"] = o.Requires + } + if !IsNil(o.Shareable) { + toSerialize["shareable"] = o.Shareable + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableServiceOffering struct { + value *ServiceOffering + isSet bool +} + +func (v NullableServiceOffering) Get() *ServiceOffering { + return v.value +} + +func (v *NullableServiceOffering) Set(val *ServiceOffering) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOffering) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOffering) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOffering(val *ServiceOffering) *NullableServiceOffering { + return &NullableServiceOffering{value: val, isSet: true} +} + +func (v NullableServiceOffering) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOffering) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering_create.go b/model_service_offering_create.go new file mode 100644 index 0000000..35a0d41 --- /dev/null +++ b/model_service_offering_create.go @@ -0,0 +1,414 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceOfferingCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOfferingCreate{} + +// ServiceOfferingCreate struct for ServiceOfferingCreate +type ServiceOfferingCreate struct { + Available *bool `json:"available,omitempty"` + BrokerCatalog *BrokerCatalog `json:"broker_catalog,omitempty"` + Description *string `json:"description,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceOfferingRelationships `json:"relationships,omitempty"` + Requires []string `json:"requires,omitempty"` + Shareable *bool `json:"shareable,omitempty"` + Tags []string `json:"tags,omitempty"` +} + +// NewServiceOfferingCreate instantiates a new ServiceOfferingCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOfferingCreate() *ServiceOfferingCreate { + this := ServiceOfferingCreate{} + return &this +} + +// NewServiceOfferingCreateWithDefaults instantiates a new ServiceOfferingCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingCreateWithDefaults() *ServiceOfferingCreate { + this := ServiceOfferingCreate{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ServiceOfferingCreate) SetAvailable(v bool) { + o.Available = &v +} + +// GetBrokerCatalog returns the BrokerCatalog field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetBrokerCatalog() BrokerCatalog { + if o == nil || IsNil(o.BrokerCatalog) { + var ret BrokerCatalog + return ret + } + return *o.BrokerCatalog +} + +// GetBrokerCatalogOk returns a tuple with the BrokerCatalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetBrokerCatalogOk() (*BrokerCatalog, bool) { + if o == nil || IsNil(o.BrokerCatalog) { + return nil, false + } + return o.BrokerCatalog, true +} + +// HasBrokerCatalog returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasBrokerCatalog() bool { + if o != nil && !IsNil(o.BrokerCatalog) { + return true + } + + return false +} + +// SetBrokerCatalog gets a reference to the given BrokerCatalog and assigns it to the BrokerCatalog field. +func (o *ServiceOfferingCreate) SetBrokerCatalog(v BrokerCatalog) { + o.BrokerCatalog = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceOfferingCreate) SetDescription(v string) { + o.Description = &v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetDocumentationUrl() string { + if o == nil || IsNil(o.DocumentationUrl) { + var ret string + return ret + } + return *o.DocumentationUrl +} + +// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetDocumentationUrlOk() (*string, bool) { + if o == nil || IsNil(o.DocumentationUrl) { + return nil, false + } + return o.DocumentationUrl, true +} + +// HasDocumentationUrl returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasDocumentationUrl() bool { + if o != nil && !IsNil(o.DocumentationUrl) { + return true + } + + return false +} + +// SetDocumentationUrl gets a reference to the given string and assigns it to the DocumentationUrl field. +func (o *ServiceOfferingCreate) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceOfferingCreate) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetRelationships() ServiceOfferingRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceOfferingRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetRelationshipsOk() (*ServiceOfferingRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceOfferingRelationships and assigns it to the Relationships field. +func (o *ServiceOfferingCreate) SetRelationships(v ServiceOfferingRelationships) { + o.Relationships = &v +} + +// GetRequires returns the Requires field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetRequires() []string { + if o == nil || IsNil(o.Requires) { + var ret []string + return ret + } + return o.Requires +} + +// GetRequiresOk returns a tuple with the Requires field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetRequiresOk() ([]string, bool) { + if o == nil || IsNil(o.Requires) { + return nil, false + } + return o.Requires, true +} + +// HasRequires returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasRequires() bool { + if o != nil && !IsNil(o.Requires) { + return true + } + + return false +} + +// SetRequires gets a reference to the given []string and assigns it to the Requires field. +func (o *ServiceOfferingCreate) SetRequires(v []string) { + o.Requires = v +} + +// GetShareable returns the Shareable field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetShareable() bool { + if o == nil || IsNil(o.Shareable) { + var ret bool + return ret + } + return *o.Shareable +} + +// GetShareableOk returns a tuple with the Shareable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetShareableOk() (*bool, bool) { + if o == nil || IsNil(o.Shareable) { + return nil, false + } + return o.Shareable, true +} + +// HasShareable returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasShareable() bool { + if o != nil && !IsNil(o.Shareable) { + return true + } + + return false +} + +// SetShareable gets a reference to the given bool and assigns it to the Shareable field. +func (o *ServiceOfferingCreate) SetShareable(v bool) { + o.Shareable = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ServiceOfferingCreate) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingCreate) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ServiceOfferingCreate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ServiceOfferingCreate) SetTags(v []string) { + o.Tags = v +} + +func (o ServiceOfferingCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOfferingCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.BrokerCatalog) { + toSerialize["broker_catalog"] = o.BrokerCatalog + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Requires) { + toSerialize["requires"] = o.Requires + } + if !IsNil(o.Shareable) { + toSerialize["shareable"] = o.Shareable + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableServiceOfferingCreate struct { + value *ServiceOfferingCreate + isSet bool +} + +func (v NullableServiceOfferingCreate) Get() *ServiceOfferingCreate { + return v.value +} + +func (v *NullableServiceOfferingCreate) Set(val *ServiceOfferingCreate) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOfferingCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOfferingCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOfferingCreate(val *ServiceOfferingCreate) *NullableServiceOfferingCreate { + return &NullableServiceOfferingCreate{value: val, isSet: true} +} + +func (v NullableServiceOfferingCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOfferingCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering_links.go b/model_service_offering_links.go new file mode 100644 index 0000000..aa46bb3 --- /dev/null +++ b/model_service_offering_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceOfferingLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOfferingLinks{} + +// ServiceOfferingLinks struct for ServiceOfferingLinks +type ServiceOfferingLinks struct { + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + ServiceBroker *Get200ResponseLinksLogCache `json:"service_broker,omitempty"` + ServicePlans *Get200ResponseLinksLogCache `json:"service_plans,omitempty"` +} + +// NewServiceOfferingLinks instantiates a new ServiceOfferingLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOfferingLinks() *ServiceOfferingLinks { + this := ServiceOfferingLinks{} + return &this +} + +// NewServiceOfferingLinksWithDefaults instantiates a new ServiceOfferingLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingLinksWithDefaults() *ServiceOfferingLinks { + this := ServiceOfferingLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServiceOfferingLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServiceOfferingLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *ServiceOfferingLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetServiceBroker returns the ServiceBroker field value if set, zero value otherwise. +func (o *ServiceOfferingLinks) GetServiceBroker() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceBroker) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceBroker +} + +// GetServiceBrokerOk returns a tuple with the ServiceBroker field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingLinks) GetServiceBrokerOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceBroker) { + return nil, false + } + return o.ServiceBroker, true +} + +// HasServiceBroker returns a boolean if a field has been set. +func (o *ServiceOfferingLinks) HasServiceBroker() bool { + if o != nil && !IsNil(o.ServiceBroker) { + return true + } + + return false +} + +// SetServiceBroker gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceBroker field. +func (o *ServiceOfferingLinks) SetServiceBroker(v Get200ResponseLinksLogCache) { + o.ServiceBroker = &v +} + +// GetServicePlans returns the ServicePlans field value if set, zero value otherwise. +func (o *ServiceOfferingLinks) GetServicePlans() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServicePlans) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServicePlans +} + +// GetServicePlansOk returns a tuple with the ServicePlans field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingLinks) GetServicePlansOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServicePlans) { + return nil, false + } + return o.ServicePlans, true +} + +// HasServicePlans returns a boolean if a field has been set. +func (o *ServiceOfferingLinks) HasServicePlans() bool { + if o != nil && !IsNil(o.ServicePlans) { + return true + } + + return false +} + +// SetServicePlans gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServicePlans field. +func (o *ServiceOfferingLinks) SetServicePlans(v Get200ResponseLinksLogCache) { + o.ServicePlans = &v +} + +func (o ServiceOfferingLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOfferingLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceBroker) { + toSerialize["service_broker"] = o.ServiceBroker + } + if !IsNil(o.ServicePlans) { + toSerialize["service_plans"] = o.ServicePlans + } + return toSerialize, nil +} + +type NullableServiceOfferingLinks struct { + value *ServiceOfferingLinks + isSet bool +} + +func (v NullableServiceOfferingLinks) Get() *ServiceOfferingLinks { + return v.value +} + +func (v *NullableServiceOfferingLinks) Set(val *ServiceOfferingLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOfferingLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOfferingLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOfferingLinks(val *ServiceOfferingLinks) *NullableServiceOfferingLinks { + return &NullableServiceOfferingLinks{value: val, isSet: true} +} + +func (v NullableServiceOfferingLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOfferingLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering_list.go b/model_service_offering_list.go new file mode 100644 index 0000000..a4e20a1 --- /dev/null +++ b/model_service_offering_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceOfferingList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOfferingList{} + +// ServiceOfferingList struct for ServiceOfferingList +type ServiceOfferingList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []ServiceOffering `json:"resources,omitempty"` +} + +// NewServiceOfferingList instantiates a new ServiceOfferingList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOfferingList() *ServiceOfferingList { + this := ServiceOfferingList{} + return &this +} + +// NewServiceOfferingListWithDefaults instantiates a new ServiceOfferingList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingListWithDefaults() *ServiceOfferingList { + this := ServiceOfferingList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ServiceOfferingList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *ServiceOfferingList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *ServiceOfferingList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ServiceOfferingList) GetResources() []ServiceOffering { + if o == nil || IsNil(o.Resources) { + var ret []ServiceOffering + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingList) GetResourcesOk() ([]ServiceOffering, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ServiceOfferingList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServiceOffering and assigns it to the Resources field. +func (o *ServiceOfferingList) SetResources(v []ServiceOffering) { + o.Resources = v +} + +func (o ServiceOfferingList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOfferingList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableServiceOfferingList struct { + value *ServiceOfferingList + isSet bool +} + +func (v NullableServiceOfferingList) Get() *ServiceOfferingList { + return v.value +} + +func (v *NullableServiceOfferingList) Set(val *ServiceOfferingList) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOfferingList) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOfferingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOfferingList(val *ServiceOfferingList) *NullableServiceOfferingList { + return &NullableServiceOfferingList{value: val, isSet: true} +} + +func (v NullableServiceOfferingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOfferingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering_relationships.go b/model_service_offering_relationships.go new file mode 100644 index 0000000..83a26f2 --- /dev/null +++ b/model_service_offering_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceOfferingRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOfferingRelationships{} + +// ServiceOfferingRelationships struct for ServiceOfferingRelationships +type ServiceOfferingRelationships struct { + ServiceBroker *V3AppsPostRequestRelationshipsSpace `json:"service_broker,omitempty"` +} + +// NewServiceOfferingRelationships instantiates a new ServiceOfferingRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOfferingRelationships() *ServiceOfferingRelationships { + this := ServiceOfferingRelationships{} + return &this +} + +// NewServiceOfferingRelationshipsWithDefaults instantiates a new ServiceOfferingRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingRelationshipsWithDefaults() *ServiceOfferingRelationships { + this := ServiceOfferingRelationships{} + return &this +} + +// GetServiceBroker returns the ServiceBroker field value if set, zero value otherwise. +func (o *ServiceOfferingRelationships) GetServiceBroker() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.ServiceBroker) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.ServiceBroker +} + +// GetServiceBrokerOk returns a tuple with the ServiceBroker field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingRelationships) GetServiceBrokerOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.ServiceBroker) { + return nil, false + } + return o.ServiceBroker, true +} + +// HasServiceBroker returns a boolean if a field has been set. +func (o *ServiceOfferingRelationships) HasServiceBroker() bool { + if o != nil && !IsNil(o.ServiceBroker) { + return true + } + + return false +} + +// SetServiceBroker gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the ServiceBroker field. +func (o *ServiceOfferingRelationships) SetServiceBroker(v V3AppsPostRequestRelationshipsSpace) { + o.ServiceBroker = &v +} + +func (o ServiceOfferingRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOfferingRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceBroker) { + toSerialize["service_broker"] = o.ServiceBroker + } + return toSerialize, nil +} + +type NullableServiceOfferingRelationships struct { + value *ServiceOfferingRelationships + isSet bool +} + +func (v NullableServiceOfferingRelationships) Get() *ServiceOfferingRelationships { + return v.value +} + +func (v *NullableServiceOfferingRelationships) Set(val *ServiceOfferingRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOfferingRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOfferingRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOfferingRelationships(val *ServiceOfferingRelationships) *NullableServiceOfferingRelationships { + return &NullableServiceOfferingRelationships{value: val, isSet: true} +} + +func (v NullableServiceOfferingRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOfferingRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_offering_update.go b/model_service_offering_update.go new file mode 100644 index 0000000..2ad8cfe --- /dev/null +++ b/model_service_offering_update.go @@ -0,0 +1,450 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceOfferingUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceOfferingUpdate{} + +// ServiceOfferingUpdate struct for ServiceOfferingUpdate +type ServiceOfferingUpdate struct { + Available *bool `json:"available,omitempty"` + BrokerCatalog *BrokerCatalog `json:"broker_catalog,omitempty"` + Description *string `json:"description,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServiceOfferingRelationships `json:"relationships,omitempty"` + Requires []string `json:"requires,omitempty"` + Shareable *bool `json:"shareable,omitempty"` + Tags []string `json:"tags,omitempty"` +} + +// NewServiceOfferingUpdate instantiates a new ServiceOfferingUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceOfferingUpdate() *ServiceOfferingUpdate { + this := ServiceOfferingUpdate{} + return &this +} + +// NewServiceOfferingUpdateWithDefaults instantiates a new ServiceOfferingUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceOfferingUpdateWithDefaults() *ServiceOfferingUpdate { + this := ServiceOfferingUpdate{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ServiceOfferingUpdate) SetAvailable(v bool) { + o.Available = &v +} + +// GetBrokerCatalog returns the BrokerCatalog field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetBrokerCatalog() BrokerCatalog { + if o == nil || IsNil(o.BrokerCatalog) { + var ret BrokerCatalog + return ret + } + return *o.BrokerCatalog +} + +// GetBrokerCatalogOk returns a tuple with the BrokerCatalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetBrokerCatalogOk() (*BrokerCatalog, bool) { + if o == nil || IsNil(o.BrokerCatalog) { + return nil, false + } + return o.BrokerCatalog, true +} + +// HasBrokerCatalog returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasBrokerCatalog() bool { + if o != nil && !IsNil(o.BrokerCatalog) { + return true + } + + return false +} + +// SetBrokerCatalog gets a reference to the given BrokerCatalog and assigns it to the BrokerCatalog field. +func (o *ServiceOfferingUpdate) SetBrokerCatalog(v BrokerCatalog) { + o.BrokerCatalog = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceOfferingUpdate) SetDescription(v string) { + o.Description = &v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetDocumentationUrl() string { + if o == nil || IsNil(o.DocumentationUrl) { + var ret string + return ret + } + return *o.DocumentationUrl +} + +// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetDocumentationUrlOk() (*string, bool) { + if o == nil || IsNil(o.DocumentationUrl) { + return nil, false + } + return o.DocumentationUrl, true +} + +// HasDocumentationUrl returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasDocumentationUrl() bool { + if o != nil && !IsNil(o.DocumentationUrl) { + return true + } + + return false +} + +// SetDocumentationUrl gets a reference to the given string and assigns it to the DocumentationUrl field. +func (o *ServiceOfferingUpdate) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServiceOfferingUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceOfferingUpdate) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetRelationships() ServiceOfferingRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceOfferingRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetRelationshipsOk() (*ServiceOfferingRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceOfferingRelationships and assigns it to the Relationships field. +func (o *ServiceOfferingUpdate) SetRelationships(v ServiceOfferingRelationships) { + o.Relationships = &v +} + +// GetRequires returns the Requires field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetRequires() []string { + if o == nil || IsNil(o.Requires) { + var ret []string + return ret + } + return o.Requires +} + +// GetRequiresOk returns a tuple with the Requires field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetRequiresOk() ([]string, bool) { + if o == nil || IsNil(o.Requires) { + return nil, false + } + return o.Requires, true +} + +// HasRequires returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasRequires() bool { + if o != nil && !IsNil(o.Requires) { + return true + } + + return false +} + +// SetRequires gets a reference to the given []string and assigns it to the Requires field. +func (o *ServiceOfferingUpdate) SetRequires(v []string) { + o.Requires = v +} + +// GetShareable returns the Shareable field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetShareable() bool { + if o == nil || IsNil(o.Shareable) { + var ret bool + return ret + } + return *o.Shareable +} + +// GetShareableOk returns a tuple with the Shareable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetShareableOk() (*bool, bool) { + if o == nil || IsNil(o.Shareable) { + return nil, false + } + return o.Shareable, true +} + +// HasShareable returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasShareable() bool { + if o != nil && !IsNil(o.Shareable) { + return true + } + + return false +} + +// SetShareable gets a reference to the given bool and assigns it to the Shareable field. +func (o *ServiceOfferingUpdate) SetShareable(v bool) { + o.Shareable = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ServiceOfferingUpdate) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceOfferingUpdate) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ServiceOfferingUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *ServiceOfferingUpdate) SetTags(v []string) { + o.Tags = v +} + +func (o ServiceOfferingUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceOfferingUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.BrokerCatalog) { + toSerialize["broker_catalog"] = o.BrokerCatalog + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Requires) { + toSerialize["requires"] = o.Requires + } + if !IsNil(o.Shareable) { + toSerialize["shareable"] = o.Shareable + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableServiceOfferingUpdate struct { + value *ServiceOfferingUpdate + isSet bool +} + +func (v NullableServiceOfferingUpdate) Get() *ServiceOfferingUpdate { + return v.value +} + +func (v *NullableServiceOfferingUpdate) Set(val *ServiceOfferingUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableServiceOfferingUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceOfferingUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceOfferingUpdate(val *ServiceOfferingUpdate) *NullableServiceOfferingUpdate { + return &NullableServiceOfferingUpdate{value: val, isSet: true} +} + +func (v NullableServiceOfferingUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceOfferingUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan.go b/model_service_plan.go new file mode 100644 index 0000000..866ecbe --- /dev/null +++ b/model_service_plan.go @@ -0,0 +1,632 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServicePlan type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlan{} + +// ServicePlan struct for ServicePlan +type ServicePlan struct { + Available *bool `json:"available,omitempty"` + BrokerCatalog *BrokerCatalog `json:"broker_catalog,omitempty"` + Costs []Cost `json:"costs,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + Free *bool `json:"free,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *ServicePlanLinks `json:"links,omitempty"` + MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServicePlanRelationships `json:"relationships,omitempty"` + Schemas *PlanSchemas `json:"schemas,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + // Denotes the visibility of the plan; can be public, admin, organization, space + VisibilityType *string `json:"visibility_type,omitempty"` +} + +// NewServicePlan instantiates a new ServicePlan object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlan() *ServicePlan { + this := ServicePlan{} + return &this +} + +// NewServicePlanWithDefaults instantiates a new ServicePlan object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanWithDefaults() *ServicePlan { + this := ServicePlan{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ServicePlan) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ServicePlan) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ServicePlan) SetAvailable(v bool) { + o.Available = &v +} + +// GetBrokerCatalog returns the BrokerCatalog field value if set, zero value otherwise. +func (o *ServicePlan) GetBrokerCatalog() BrokerCatalog { + if o == nil || IsNil(o.BrokerCatalog) { + var ret BrokerCatalog + return ret + } + return *o.BrokerCatalog +} + +// GetBrokerCatalogOk returns a tuple with the BrokerCatalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetBrokerCatalogOk() (*BrokerCatalog, bool) { + if o == nil || IsNil(o.BrokerCatalog) { + return nil, false + } + return o.BrokerCatalog, true +} + +// HasBrokerCatalog returns a boolean if a field has been set. +func (o *ServicePlan) HasBrokerCatalog() bool { + if o != nil && !IsNil(o.BrokerCatalog) { + return true + } + + return false +} + +// SetBrokerCatalog gets a reference to the given BrokerCatalog and assigns it to the BrokerCatalog field. +func (o *ServicePlan) SetBrokerCatalog(v BrokerCatalog) { + o.BrokerCatalog = &v +} + +// GetCosts returns the Costs field value if set, zero value otherwise. +func (o *ServicePlan) GetCosts() []Cost { + if o == nil || IsNil(o.Costs) { + var ret []Cost + return ret + } + return o.Costs +} + +// GetCostsOk returns a tuple with the Costs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetCostsOk() ([]Cost, bool) { + if o == nil || IsNil(o.Costs) { + return nil, false + } + return o.Costs, true +} + +// HasCosts returns a boolean if a field has been set. +func (o *ServicePlan) HasCosts() bool { + if o != nil && !IsNil(o.Costs) { + return true + } + + return false +} + +// SetCosts gets a reference to the given []Cost and assigns it to the Costs field. +func (o *ServicePlan) SetCosts(v []Cost) { + o.Costs = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServicePlan) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServicePlan) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServicePlan) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServicePlan) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServicePlan) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServicePlan) SetDescription(v string) { + o.Description = &v +} + +// GetFree returns the Free field value if set, zero value otherwise. +func (o *ServicePlan) GetFree() bool { + if o == nil || IsNil(o.Free) { + var ret bool + return ret + } + return *o.Free +} + +// GetFreeOk returns a tuple with the Free field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetFreeOk() (*bool, bool) { + if o == nil || IsNil(o.Free) { + return nil, false + } + return o.Free, true +} + +// HasFree returns a boolean if a field has been set. +func (o *ServicePlan) HasFree() bool { + if o != nil && !IsNil(o.Free) { + return true + } + + return false +} + +// SetFree gets a reference to the given bool and assigns it to the Free field. +func (o *ServicePlan) SetFree(v bool) { + o.Free = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServicePlan) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServicePlan) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServicePlan) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServicePlan) GetLinks() ServicePlanLinks { + if o == nil || IsNil(o.Links) { + var ret ServicePlanLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetLinksOk() (*ServicePlanLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServicePlan) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServicePlanLinks and assigns it to the Links field. +func (o *ServicePlan) SetLinks(v ServicePlanLinks) { + o.Links = &v +} + +// GetMaintenanceInfo returns the MaintenanceInfo field value if set, zero value otherwise. +func (o *ServicePlan) GetMaintenanceInfo() MaintenanceInfo { + if o == nil || IsNil(o.MaintenanceInfo) { + var ret MaintenanceInfo + return ret + } + return *o.MaintenanceInfo +} + +// GetMaintenanceInfoOk returns a tuple with the MaintenanceInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetMaintenanceInfoOk() (*MaintenanceInfo, bool) { + if o == nil || IsNil(o.MaintenanceInfo) { + return nil, false + } + return o.MaintenanceInfo, true +} + +// HasMaintenanceInfo returns a boolean if a field has been set. +func (o *ServicePlan) HasMaintenanceInfo() bool { + if o != nil && !IsNil(o.MaintenanceInfo) { + return true + } + + return false +} + +// SetMaintenanceInfo gets a reference to the given MaintenanceInfo and assigns it to the MaintenanceInfo field. +func (o *ServicePlan) SetMaintenanceInfo(v MaintenanceInfo) { + o.MaintenanceInfo = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServicePlan) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServicePlan) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServicePlan) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServicePlan) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServicePlan) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServicePlan) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServicePlan) GetRelationships() ServicePlanRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServicePlanRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetRelationshipsOk() (*ServicePlanRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServicePlan) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServicePlanRelationships and assigns it to the Relationships field. +func (o *ServicePlan) SetRelationships(v ServicePlanRelationships) { + o.Relationships = &v +} + +// GetSchemas returns the Schemas field value if set, zero value otherwise. +func (o *ServicePlan) GetSchemas() PlanSchemas { + if o == nil || IsNil(o.Schemas) { + var ret PlanSchemas + return ret + } + return *o.Schemas +} + +// GetSchemasOk returns a tuple with the Schemas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetSchemasOk() (*PlanSchemas, bool) { + if o == nil || IsNil(o.Schemas) { + return nil, false + } + return o.Schemas, true +} + +// HasSchemas returns a boolean if a field has been set. +func (o *ServicePlan) HasSchemas() bool { + if o != nil && !IsNil(o.Schemas) { + return true + } + + return false +} + +// SetSchemas gets a reference to the given PlanSchemas and assigns it to the Schemas field. +func (o *ServicePlan) SetSchemas(v PlanSchemas) { + o.Schemas = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServicePlan) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServicePlan) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServicePlan) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetVisibilityType returns the VisibilityType field value if set, zero value otherwise. +func (o *ServicePlan) GetVisibilityType() string { + if o == nil || IsNil(o.VisibilityType) { + var ret string + return ret + } + return *o.VisibilityType +} + +// GetVisibilityTypeOk returns a tuple with the VisibilityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlan) GetVisibilityTypeOk() (*string, bool) { + if o == nil || IsNil(o.VisibilityType) { + return nil, false + } + return o.VisibilityType, true +} + +// HasVisibilityType returns a boolean if a field has been set. +func (o *ServicePlan) HasVisibilityType() bool { + if o != nil && !IsNil(o.VisibilityType) { + return true + } + + return false +} + +// SetVisibilityType gets a reference to the given string and assigns it to the VisibilityType field. +func (o *ServicePlan) SetVisibilityType(v string) { + o.VisibilityType = &v +} + +func (o ServicePlan) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlan) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.BrokerCatalog) { + toSerialize["broker_catalog"] = o.BrokerCatalog + } + if !IsNil(o.Costs) { + toSerialize["costs"] = o.Costs + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Free) { + toSerialize["free"] = o.Free + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.MaintenanceInfo) { + toSerialize["maintenance_info"] = o.MaintenanceInfo + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Schemas) { + toSerialize["schemas"] = o.Schemas + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.VisibilityType) { + toSerialize["visibility_type"] = o.VisibilityType + } + return toSerialize, nil +} + +type NullableServicePlan struct { + value *ServicePlan + isSet bool +} + +func (v NullableServicePlan) Get() *ServicePlan { + return v.value +} + +func (v *NullableServicePlan) Set(val *ServicePlan) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlan) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlan) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlan(val *ServicePlan) *NullableServicePlan { + return &NullableServicePlan{value: val, isSet: true} +} + +func (v NullableServicePlan) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlan) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_create.go b/model_service_plan_create.go new file mode 100644 index 0000000..d96fd61 --- /dev/null +++ b/model_service_plan_create.go @@ -0,0 +1,414 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanCreate{} + +// ServicePlanCreate struct for ServicePlanCreate +type ServicePlanCreate struct { + Available *bool `json:"available,omitempty"` + BrokerCatalog *BrokerCatalog `json:"broker_catalog,omitempty"` + Costs []Cost `json:"costs,omitempty"` + Description *string `json:"description,omitempty"` + Free *bool `json:"free,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *ServicePlanRelationships `json:"relationships,omitempty"` + Schemas *PlanSchemas `json:"schemas,omitempty"` + VisibilityType *string `json:"visibility_type,omitempty"` +} + +// NewServicePlanCreate instantiates a new ServicePlanCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanCreate() *ServicePlanCreate { + this := ServicePlanCreate{} + return &this +} + +// NewServicePlanCreateWithDefaults instantiates a new ServicePlanCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanCreateWithDefaults() *ServicePlanCreate { + this := ServicePlanCreate{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetAvailable() bool { + if o == nil || IsNil(o.Available) { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetAvailableOk() (*bool, bool) { + if o == nil || IsNil(o.Available) { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasAvailable() bool { + if o != nil && !IsNil(o.Available) { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ServicePlanCreate) SetAvailable(v bool) { + o.Available = &v +} + +// GetBrokerCatalog returns the BrokerCatalog field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetBrokerCatalog() BrokerCatalog { + if o == nil || IsNil(o.BrokerCatalog) { + var ret BrokerCatalog + return ret + } + return *o.BrokerCatalog +} + +// GetBrokerCatalogOk returns a tuple with the BrokerCatalog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetBrokerCatalogOk() (*BrokerCatalog, bool) { + if o == nil || IsNil(o.BrokerCatalog) { + return nil, false + } + return o.BrokerCatalog, true +} + +// HasBrokerCatalog returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasBrokerCatalog() bool { + if o != nil && !IsNil(o.BrokerCatalog) { + return true + } + + return false +} + +// SetBrokerCatalog gets a reference to the given BrokerCatalog and assigns it to the BrokerCatalog field. +func (o *ServicePlanCreate) SetBrokerCatalog(v BrokerCatalog) { + o.BrokerCatalog = &v +} + +// GetCosts returns the Costs field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetCosts() []Cost { + if o == nil || IsNil(o.Costs) { + var ret []Cost + return ret + } + return o.Costs +} + +// GetCostsOk returns a tuple with the Costs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetCostsOk() ([]Cost, bool) { + if o == nil || IsNil(o.Costs) { + return nil, false + } + return o.Costs, true +} + +// HasCosts returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasCosts() bool { + if o != nil && !IsNil(o.Costs) { + return true + } + + return false +} + +// SetCosts gets a reference to the given []Cost and assigns it to the Costs field. +func (o *ServicePlanCreate) SetCosts(v []Cost) { + o.Costs = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServicePlanCreate) SetDescription(v string) { + o.Description = &v +} + +// GetFree returns the Free field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetFree() bool { + if o == nil || IsNil(o.Free) { + var ret bool + return ret + } + return *o.Free +} + +// GetFreeOk returns a tuple with the Free field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetFreeOk() (*bool, bool) { + if o == nil || IsNil(o.Free) { + return nil, false + } + return o.Free, true +} + +// HasFree returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasFree() bool { + if o != nil && !IsNil(o.Free) { + return true + } + + return false +} + +// SetFree gets a reference to the given bool and assigns it to the Free field. +func (o *ServicePlanCreate) SetFree(v bool) { + o.Free = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServicePlanCreate) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetRelationships() ServicePlanRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServicePlanRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetRelationshipsOk() (*ServicePlanRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServicePlanRelationships and assigns it to the Relationships field. +func (o *ServicePlanCreate) SetRelationships(v ServicePlanRelationships) { + o.Relationships = &v +} + +// GetSchemas returns the Schemas field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetSchemas() PlanSchemas { + if o == nil || IsNil(o.Schemas) { + var ret PlanSchemas + return ret + } + return *o.Schemas +} + +// GetSchemasOk returns a tuple with the Schemas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetSchemasOk() (*PlanSchemas, bool) { + if o == nil || IsNil(o.Schemas) { + return nil, false + } + return o.Schemas, true +} + +// HasSchemas returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasSchemas() bool { + if o != nil && !IsNil(o.Schemas) { + return true + } + + return false +} + +// SetSchemas gets a reference to the given PlanSchemas and assigns it to the Schemas field. +func (o *ServicePlanCreate) SetSchemas(v PlanSchemas) { + o.Schemas = &v +} + +// GetVisibilityType returns the VisibilityType field value if set, zero value otherwise. +func (o *ServicePlanCreate) GetVisibilityType() string { + if o == nil || IsNil(o.VisibilityType) { + var ret string + return ret + } + return *o.VisibilityType +} + +// GetVisibilityTypeOk returns a tuple with the VisibilityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanCreate) GetVisibilityTypeOk() (*string, bool) { + if o == nil || IsNil(o.VisibilityType) { + return nil, false + } + return o.VisibilityType, true +} + +// HasVisibilityType returns a boolean if a field has been set. +func (o *ServicePlanCreate) HasVisibilityType() bool { + if o != nil && !IsNil(o.VisibilityType) { + return true + } + + return false +} + +// SetVisibilityType gets a reference to the given string and assigns it to the VisibilityType field. +func (o *ServicePlanCreate) SetVisibilityType(v string) { + o.VisibilityType = &v +} + +func (o ServicePlanCreate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.BrokerCatalog) { + toSerialize["broker_catalog"] = o.BrokerCatalog + } + if !IsNil(o.Costs) { + toSerialize["costs"] = o.Costs + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Free) { + toSerialize["free"] = o.Free + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Schemas) { + toSerialize["schemas"] = o.Schemas + } + if !IsNil(o.VisibilityType) { + toSerialize["visibility_type"] = o.VisibilityType + } + return toSerialize, nil +} + +type NullableServicePlanCreate struct { + value *ServicePlanCreate + isSet bool +} + +func (v NullableServicePlanCreate) Get() *ServicePlanCreate { + return v.value +} + +func (v *NullableServicePlanCreate) Set(val *ServicePlanCreate) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanCreate(val *ServicePlanCreate) *NullableServicePlanCreate { + return &NullableServicePlanCreate{value: val, isSet: true} +} + +func (v NullableServicePlanCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_links.go b/model_service_plan_links.go new file mode 100644 index 0000000..35af1bf --- /dev/null +++ b/model_service_plan_links.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanLinks{} + +// ServicePlanLinks struct for ServicePlanLinks +type ServicePlanLinks struct { + Self *Get200ResponseLinksLogCache `json:"self,omitempty"` + ServiceOffering *Get200ResponseLinksLogCache `json:"service_offering,omitempty"` + Visibility *Get200ResponseLinksLogCache `json:"visibility,omitempty"` +} + +// NewServicePlanLinks instantiates a new ServicePlanLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanLinks() *ServicePlanLinks { + this := ServicePlanLinks{} + return &this +} + +// NewServicePlanLinksWithDefaults instantiates a new ServicePlanLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanLinksWithDefaults() *ServicePlanLinks { + this := ServicePlanLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServicePlanLinks) GetSelf() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Self) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanLinks) GetSelfOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServicePlanLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Self field. +func (o *ServicePlanLinks) SetSelf(v Get200ResponseLinksLogCache) { + o.Self = &v +} + +// GetServiceOffering returns the ServiceOffering field value if set, zero value otherwise. +func (o *ServicePlanLinks) GetServiceOffering() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.ServiceOffering) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.ServiceOffering +} + +// GetServiceOfferingOk returns a tuple with the ServiceOffering field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanLinks) GetServiceOfferingOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.ServiceOffering) { + return nil, false + } + return o.ServiceOffering, true +} + +// HasServiceOffering returns a boolean if a field has been set. +func (o *ServicePlanLinks) HasServiceOffering() bool { + if o != nil && !IsNil(o.ServiceOffering) { + return true + } + + return false +} + +// SetServiceOffering gets a reference to the given Get200ResponseLinksLogCache and assigns it to the ServiceOffering field. +func (o *ServicePlanLinks) SetServiceOffering(v Get200ResponseLinksLogCache) { + o.ServiceOffering = &v +} + +// GetVisibility returns the Visibility field value if set, zero value otherwise. +func (o *ServicePlanLinks) GetVisibility() Get200ResponseLinksLogCache { + if o == nil || IsNil(o.Visibility) { + var ret Get200ResponseLinksLogCache + return ret + } + return *o.Visibility +} + +// GetVisibilityOk returns a tuple with the Visibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanLinks) GetVisibilityOk() (*Get200ResponseLinksLogCache, bool) { + if o == nil || IsNil(o.Visibility) { + return nil, false + } + return o.Visibility, true +} + +// HasVisibility returns a boolean if a field has been set. +func (o *ServicePlanLinks) HasVisibility() bool { + if o != nil && !IsNil(o.Visibility) { + return true + } + + return false +} + +// SetVisibility gets a reference to the given Get200ResponseLinksLogCache and assigns it to the Visibility field. +func (o *ServicePlanLinks) SetVisibility(v Get200ResponseLinksLogCache) { + o.Visibility = &v +} + +func (o ServicePlanLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceOffering) { + toSerialize["service_offering"] = o.ServiceOffering + } + if !IsNil(o.Visibility) { + toSerialize["visibility"] = o.Visibility + } + return toSerialize, nil +} + +type NullableServicePlanLinks struct { + value *ServicePlanLinks + isSet bool +} + +func (v NullableServicePlanLinks) Get() *ServicePlanLinks { + return v.value +} + +func (v *NullableServicePlanLinks) Set(val *ServicePlanLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanLinks(val *ServicePlanLinks) *NullableServicePlanLinks { + return &NullableServicePlanLinks{value: val, isSet: true} +} + +func (v NullableServicePlanLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_list.go b/model_service_plan_list.go new file mode 100644 index 0000000..68998b7 --- /dev/null +++ b/model_service_plan_list.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanList{} + +// ServicePlanList struct for ServicePlanList +type ServicePlanList struct { + Pagination *RevisionsListPagination `json:"pagination,omitempty"` + Resources []ServicePlan `json:"resources,omitempty"` +} + +// NewServicePlanList instantiates a new ServicePlanList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanList() *ServicePlanList { + this := ServicePlanList{} + return &this +} + +// NewServicePlanListWithDefaults instantiates a new ServicePlanList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanListWithDefaults() *ServicePlanList { + this := ServicePlanList{} + return &this +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *ServicePlanList) GetPagination() RevisionsListPagination { + if o == nil || IsNil(o.Pagination) { + var ret RevisionsListPagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanList) GetPaginationOk() (*RevisionsListPagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *ServicePlanList) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given RevisionsListPagination and assigns it to the Pagination field. +func (o *ServicePlanList) SetPagination(v RevisionsListPagination) { + o.Pagination = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ServicePlanList) GetResources() []ServicePlan { + if o == nil || IsNil(o.Resources) { + var ret []ServicePlan + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanList) GetResourcesOk() ([]ServicePlan, bool) { + if o == nil || IsNil(o.Resources) { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ServicePlanList) HasResources() bool { + if o != nil && !IsNil(o.Resources) { + return true + } + + return false +} + +// SetResources gets a reference to the given []ServicePlan and assigns it to the Resources field. +func (o *ServicePlanList) SetResources(v []ServicePlan) { + o.Resources = v +} + +func (o ServicePlanList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.Resources) { + toSerialize["resources"] = o.Resources + } + return toSerialize, nil +} + +type NullableServicePlanList struct { + value *ServicePlanList + isSet bool +} + +func (v NullableServicePlanList) Get() *ServicePlanList { + return v.value +} + +func (v *NullableServicePlanList) Set(val *ServicePlanList) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanList) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanList(val *ServicePlanList) *NullableServicePlanList { + return &NullableServicePlanList{value: val, isSet: true} +} + +func (v NullableServicePlanList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_relationships.go b/model_service_plan_relationships.go new file mode 100644 index 0000000..52f6a59 --- /dev/null +++ b/model_service_plan_relationships.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanRelationships{} + +// ServicePlanRelationships struct for ServicePlanRelationships +type ServicePlanRelationships struct { + ServiceOffering *V3AppsPostRequestRelationshipsSpace `json:"service_offering,omitempty"` +} + +// NewServicePlanRelationships instantiates a new ServicePlanRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanRelationships() *ServicePlanRelationships { + this := ServicePlanRelationships{} + return &this +} + +// NewServicePlanRelationshipsWithDefaults instantiates a new ServicePlanRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanRelationshipsWithDefaults() *ServicePlanRelationships { + this := ServicePlanRelationships{} + return &this +} + +// GetServiceOffering returns the ServiceOffering field value if set, zero value otherwise. +func (o *ServicePlanRelationships) GetServiceOffering() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.ServiceOffering) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.ServiceOffering +} + +// GetServiceOfferingOk returns a tuple with the ServiceOffering field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanRelationships) GetServiceOfferingOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.ServiceOffering) { + return nil, false + } + return o.ServiceOffering, true +} + +// HasServiceOffering returns a boolean if a field has been set. +func (o *ServicePlanRelationships) HasServiceOffering() bool { + if o != nil && !IsNil(o.ServiceOffering) { + return true + } + + return false +} + +// SetServiceOffering gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the ServiceOffering field. +func (o *ServicePlanRelationships) SetServiceOffering(v V3AppsPostRequestRelationshipsSpace) { + o.ServiceOffering = &v +} + +func (o ServicePlanRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceOffering) { + toSerialize["service_offering"] = o.ServiceOffering + } + return toSerialize, nil +} + +type NullableServicePlanRelationships struct { + value *ServicePlanRelationships + isSet bool +} + +func (v NullableServicePlanRelationships) Get() *ServicePlanRelationships { + return v.value +} + +func (v *NullableServicePlanRelationships) Set(val *ServicePlanRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanRelationships(val *ServicePlanRelationships) *NullableServicePlanRelationships { + return &NullableServicePlanRelationships{value: val, isSet: true} +} + +func (v NullableServicePlanRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_update.go b/model_service_plan_update.go new file mode 100644 index 0000000..976c978 --- /dev/null +++ b/model_service_plan_update.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanUpdate{} + +// ServicePlanUpdate struct for ServicePlanUpdate +type ServicePlanUpdate struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` +} + +// NewServicePlanUpdate instantiates a new ServicePlanUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanUpdate() *ServicePlanUpdate { + this := ServicePlanUpdate{} + return &this +} + +// NewServicePlanUpdateWithDefaults instantiates a new ServicePlanUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanUpdateWithDefaults() *ServicePlanUpdate { + this := ServicePlanUpdate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServicePlanUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServicePlanUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *ServicePlanUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +func (o ServicePlanUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableServicePlanUpdate struct { + value *ServicePlanUpdate + isSet bool +} + +func (v NullableServicePlanUpdate) Get() *ServicePlanUpdate { + return v.value +} + +func (v *NullableServicePlanUpdate) Set(val *ServicePlanUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanUpdate(val *ServicePlanUpdate) *NullableServicePlanUpdate { + return &NullableServicePlanUpdate{value: val, isSet: true} +} + +func (v NullableServicePlanUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_visibility.go b/model_service_plan_visibility.go new file mode 100644 index 0000000..01e8176 --- /dev/null +++ b/model_service_plan_visibility.go @@ -0,0 +1,199 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanVisibility type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanVisibility{} + +// ServicePlanVisibility struct for ServicePlanVisibility +type ServicePlanVisibility struct { + Organizations []OrganizationVisibility `json:"organizations,omitempty"` + Space *ServicePlanVisibilitySpace `json:"space,omitempty"` + // Denotes the visibility of the plan; can be public, admin, organization, space + Type *string `json:"type,omitempty"` +} + +// NewServicePlanVisibility instantiates a new ServicePlanVisibility object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanVisibility() *ServicePlanVisibility { + this := ServicePlanVisibility{} + return &this +} + +// NewServicePlanVisibilityWithDefaults instantiates a new ServicePlanVisibility object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanVisibilityWithDefaults() *ServicePlanVisibility { + this := ServicePlanVisibility{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *ServicePlanVisibility) GetOrganizations() []OrganizationVisibility { + if o == nil || IsNil(o.Organizations) { + var ret []OrganizationVisibility + return ret + } + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibility) GetOrganizationsOk() ([]OrganizationVisibility, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *ServicePlanVisibility) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given []OrganizationVisibility and assigns it to the Organizations field. +func (o *ServicePlanVisibility) SetOrganizations(v []OrganizationVisibility) { + o.Organizations = v +} + +// GetSpace returns the Space field value if set, zero value otherwise. +func (o *ServicePlanVisibility) GetSpace() ServicePlanVisibilitySpace { + if o == nil || IsNil(o.Space) { + var ret ServicePlanVisibilitySpace + return ret + } + return *o.Space +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibility) GetSpaceOk() (*ServicePlanVisibilitySpace, bool) { + if o == nil || IsNil(o.Space) { + return nil, false + } + return o.Space, true +} + +// HasSpace returns a boolean if a field has been set. +func (o *ServicePlanVisibility) HasSpace() bool { + if o != nil && !IsNil(o.Space) { + return true + } + + return false +} + +// SetSpace gets a reference to the given ServicePlanVisibilitySpace and assigns it to the Space field. +func (o *ServicePlanVisibility) SetSpace(v ServicePlanVisibilitySpace) { + o.Space = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServicePlanVisibility) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibility) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServicePlanVisibility) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServicePlanVisibility) SetType(v string) { + o.Type = &v +} + +func (o ServicePlanVisibility) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanVisibility) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Space) { + toSerialize["space"] = o.Space + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableServicePlanVisibility struct { + value *ServicePlanVisibility + isSet bool +} + +func (v NullableServicePlanVisibility) Get() *ServicePlanVisibility { + return v.value +} + +func (v *NullableServicePlanVisibility) Set(val *ServicePlanVisibility) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanVisibility) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanVisibility) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanVisibility(val *ServicePlanVisibility) *NullableServicePlanVisibility { + return &NullableServicePlanVisibility{value: val, isSet: true} +} + +func (v NullableServicePlanVisibility) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanVisibility) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_visibility_apply.go b/model_service_plan_visibility_apply.go new file mode 100644 index 0000000..cee78db --- /dev/null +++ b/model_service_plan_visibility_apply.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanVisibilityApply type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanVisibilityApply{} + +// ServicePlanVisibilityApply struct for ServicePlanVisibilityApply +type ServicePlanVisibilityApply struct { + Organizations []V3AppsPostRequestRelationshipsSpaceData `json:"organizations,omitempty"` + // Denotes the visibility of the plan; can be public, admin, organization + Type *string `json:"type,omitempty"` +} + +// NewServicePlanVisibilityApply instantiates a new ServicePlanVisibilityApply object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanVisibilityApply() *ServicePlanVisibilityApply { + this := ServicePlanVisibilityApply{} + return &this +} + +// NewServicePlanVisibilityApplyWithDefaults instantiates a new ServicePlanVisibilityApply object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanVisibilityApplyWithDefaults() *ServicePlanVisibilityApply { + this := ServicePlanVisibilityApply{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *ServicePlanVisibilityApply) GetOrganizations() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Organizations) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilityApply) GetOrganizationsOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *ServicePlanVisibilityApply) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Organizations field. +func (o *ServicePlanVisibilityApply) SetOrganizations(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Organizations = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServicePlanVisibilityApply) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilityApply) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServicePlanVisibilityApply) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServicePlanVisibilityApply) SetType(v string) { + o.Type = &v +} + +func (o ServicePlanVisibilityApply) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanVisibilityApply) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableServicePlanVisibilityApply struct { + value *ServicePlanVisibilityApply + isSet bool +} + +func (v NullableServicePlanVisibilityApply) Get() *ServicePlanVisibilityApply { + return v.value +} + +func (v *NullableServicePlanVisibilityApply) Set(val *ServicePlanVisibilityApply) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanVisibilityApply) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanVisibilityApply) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanVisibilityApply(val *ServicePlanVisibilityApply) *NullableServicePlanVisibilityApply { + return &NullableServicePlanVisibilityApply{value: val, isSet: true} +} + +func (v NullableServicePlanVisibilityApply) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanVisibilityApply) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_visibility_space.go b/model_service_plan_visibility_space.go new file mode 100644 index 0000000..bfcd1d8 --- /dev/null +++ b/model_service_plan_visibility_space.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanVisibilitySpace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanVisibilitySpace{} + +// ServicePlanVisibilitySpace struct for ServicePlanVisibilitySpace +type ServicePlanVisibilitySpace struct { + Guid *string `json:"guid,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewServicePlanVisibilitySpace instantiates a new ServicePlanVisibilitySpace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanVisibilitySpace() *ServicePlanVisibilitySpace { + this := ServicePlanVisibilitySpace{} + return &this +} + +// NewServicePlanVisibilitySpaceWithDefaults instantiates a new ServicePlanVisibilitySpace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanVisibilitySpaceWithDefaults() *ServicePlanVisibilitySpace { + this := ServicePlanVisibilitySpace{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServicePlanVisibilitySpace) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilitySpace) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServicePlanVisibilitySpace) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServicePlanVisibilitySpace) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServicePlanVisibilitySpace) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilitySpace) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServicePlanVisibilitySpace) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServicePlanVisibilitySpace) SetName(v string) { + o.Name = &v +} + +func (o ServicePlanVisibilitySpace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanVisibilitySpace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableServicePlanVisibilitySpace struct { + value *ServicePlanVisibilitySpace + isSet bool +} + +func (v NullableServicePlanVisibilitySpace) Get() *ServicePlanVisibilitySpace { + return v.value +} + +func (v *NullableServicePlanVisibilitySpace) Set(val *ServicePlanVisibilitySpace) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanVisibilitySpace) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanVisibilitySpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanVisibilitySpace(val *ServicePlanVisibilitySpace) *NullableServicePlanVisibilitySpace { + return &NullableServicePlanVisibilitySpace{value: val, isSet: true} +} + +func (v NullableServicePlanVisibilitySpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanVisibilitySpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_plan_visibility_update.go b/model_service_plan_visibility_update.go new file mode 100644 index 0000000..36d27b0 --- /dev/null +++ b/model_service_plan_visibility_update.go @@ -0,0 +1,163 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicePlanVisibilityUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicePlanVisibilityUpdate{} + +// ServicePlanVisibilityUpdate struct for ServicePlanVisibilityUpdate +type ServicePlanVisibilityUpdate struct { + Organizations []V3AppsPostRequestRelationshipsSpaceData `json:"organizations,omitempty"` + // Denotes the visibility of the plan; can be public, admin, organization + Type *string `json:"type,omitempty"` +} + +// NewServicePlanVisibilityUpdate instantiates a new ServicePlanVisibilityUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicePlanVisibilityUpdate() *ServicePlanVisibilityUpdate { + this := ServicePlanVisibilityUpdate{} + return &this +} + +// NewServicePlanVisibilityUpdateWithDefaults instantiates a new ServicePlanVisibilityUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicePlanVisibilityUpdateWithDefaults() *ServicePlanVisibilityUpdate { + this := ServicePlanVisibilityUpdate{} + return &this +} + +// GetOrganizations returns the Organizations field value if set, zero value otherwise. +func (o *ServicePlanVisibilityUpdate) GetOrganizations() []V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Organizations) { + var ret []V3AppsPostRequestRelationshipsSpaceData + return ret + } + return o.Organizations +} + +// GetOrganizationsOk returns a tuple with the Organizations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilityUpdate) GetOrganizationsOk() ([]V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Organizations) { + return nil, false + } + return o.Organizations, true +} + +// HasOrganizations returns a boolean if a field has been set. +func (o *ServicePlanVisibilityUpdate) HasOrganizations() bool { + if o != nil && !IsNil(o.Organizations) { + return true + } + + return false +} + +// SetOrganizations gets a reference to the given []V3AppsPostRequestRelationshipsSpaceData and assigns it to the Organizations field. +func (o *ServicePlanVisibilityUpdate) SetOrganizations(v []V3AppsPostRequestRelationshipsSpaceData) { + o.Organizations = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServicePlanVisibilityUpdate) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicePlanVisibilityUpdate) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServicePlanVisibilityUpdate) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServicePlanVisibilityUpdate) SetType(v string) { + o.Type = &v +} + +func (o ServicePlanVisibilityUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicePlanVisibilityUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organizations) { + toSerialize["organizations"] = o.Organizations + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableServicePlanVisibilityUpdate struct { + value *ServicePlanVisibilityUpdate + isSet bool +} + +func (v NullableServicePlanVisibilityUpdate) Get() *ServicePlanVisibilityUpdate { + return v.value +} + +func (v *NullableServicePlanVisibilityUpdate) Set(val *ServicePlanVisibilityUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableServicePlanVisibilityUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableServicePlanVisibilityUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicePlanVisibilityUpdate(val *ServicePlanVisibilityUpdate) *NullableServicePlanVisibilityUpdate { + return &NullableServicePlanVisibilityUpdate{value: val, isSet: true} +} + +func (v NullableServicePlanVisibilityUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicePlanVisibilityUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_route_binding.go b/model_service_route_binding.go new file mode 100644 index 0000000..9467fe3 --- /dev/null +++ b/model_service_route_binding.go @@ -0,0 +1,379 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceRouteBinding type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceRouteBinding{} + +// ServiceRouteBinding struct for ServiceRouteBinding +type ServiceRouteBinding struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + LastOperation *ServiceCredentialBindingLastOperation `json:"last_operation,omitempty"` + Links *ServiceRouteBindingLinks `json:"links,omitempty"` + Metadata *Metadata `json:"metadata,omitempty"` + Relationships *ServiceRouteBindingRelationships `json:"relationships,omitempty"` + RouteServiceUrl *string `json:"route_service_url,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewServiceRouteBinding instantiates a new ServiceRouteBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceRouteBinding() *ServiceRouteBinding { + this := ServiceRouteBinding{} + return &this +} + +// NewServiceRouteBindingWithDefaults instantiates a new ServiceRouteBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceRouteBindingWithDefaults() *ServiceRouteBinding { + this := ServiceRouteBinding{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceRouteBinding) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceRouteBinding) SetGuid(v string) { + o.Guid = &v +} + +// GetLastOperation returns the LastOperation field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetLastOperation() ServiceCredentialBindingLastOperation { + if o == nil || IsNil(o.LastOperation) { + var ret ServiceCredentialBindingLastOperation + return ret + } + return *o.LastOperation +} + +// GetLastOperationOk returns a tuple with the LastOperation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetLastOperationOk() (*ServiceCredentialBindingLastOperation, bool) { + if o == nil || IsNil(o.LastOperation) { + return nil, false + } + return o.LastOperation, true +} + +// HasLastOperation returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasLastOperation() bool { + if o != nil && !IsNil(o.LastOperation) { + return true + } + + return false +} + +// SetLastOperation gets a reference to the given ServiceCredentialBindingLastOperation and assigns it to the LastOperation field. +func (o *ServiceRouteBinding) SetLastOperation(v ServiceCredentialBindingLastOperation) { + o.LastOperation = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetLinks() ServiceRouteBindingLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceRouteBindingLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetLinksOk() (*ServiceRouteBindingLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceRouteBindingLinks and assigns it to the Links field. +func (o *ServiceRouteBinding) SetLinks(v ServiceRouteBindingLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetMetadata() Metadata { + if o == nil || IsNil(o.Metadata) { + var ret Metadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetMetadataOk() (*Metadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field. +func (o *ServiceRouteBinding) SetMetadata(v Metadata) { + o.Metadata = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetRelationships() ServiceRouteBindingRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ServiceRouteBindingRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetRelationshipsOk() (*ServiceRouteBindingRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ServiceRouteBindingRelationships and assigns it to the Relationships field. +func (o *ServiceRouteBinding) SetRelationships(v ServiceRouteBindingRelationships) { + o.Relationships = &v +} + +// GetRouteServiceUrl returns the RouteServiceUrl field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetRouteServiceUrl() string { + if o == nil || IsNil(o.RouteServiceUrl) { + var ret string + return ret + } + return *o.RouteServiceUrl +} + +// GetRouteServiceUrlOk returns a tuple with the RouteServiceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetRouteServiceUrlOk() (*string, bool) { + if o == nil || IsNil(o.RouteServiceUrl) { + return nil, false + } + return o.RouteServiceUrl, true +} + +// HasRouteServiceUrl returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasRouteServiceUrl() bool { + if o != nil && !IsNil(o.RouteServiceUrl) { + return true + } + + return false +} + +// SetRouteServiceUrl gets a reference to the given string and assigns it to the RouteServiceUrl field. +func (o *ServiceRouteBinding) SetRouteServiceUrl(v string) { + o.RouteServiceUrl = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceRouteBinding) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBinding) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceRouteBinding) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceRouteBinding) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ServiceRouteBinding) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceRouteBinding) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.LastOperation) { + toSerialize["last_operation"] = o.LastOperation + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.RouteServiceUrl) { + toSerialize["route_service_url"] = o.RouteServiceUrl + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableServiceRouteBinding struct { + value *ServiceRouteBinding + isSet bool +} + +func (v NullableServiceRouteBinding) Get() *ServiceRouteBinding { + return v.value +} + +func (v *NullableServiceRouteBinding) Set(val *ServiceRouteBinding) { + v.value = val + v.isSet = true +} + +func (v NullableServiceRouteBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceRouteBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceRouteBinding(val *ServiceRouteBinding) *NullableServiceRouteBinding { + return &NullableServiceRouteBinding{value: val, isSet: true} +} + +func (v NullableServiceRouteBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceRouteBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_route_binding_links.go b/model_service_route_binding_links.go new file mode 100644 index 0000000..fed996e --- /dev/null +++ b/model_service_route_binding_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceRouteBindingLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceRouteBindingLinks{} + +// ServiceRouteBindingLinks struct for ServiceRouteBindingLinks +type ServiceRouteBindingLinks struct { + Parameters *string `json:"parameters,omitempty"` + Route *string `json:"route,omitempty"` + Self *string `json:"self,omitempty"` + ServiceInstance *string `json:"service_instance,omitempty"` +} + +// NewServiceRouteBindingLinks instantiates a new ServiceRouteBindingLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceRouteBindingLinks() *ServiceRouteBindingLinks { + this := ServiceRouteBindingLinks{} + return &this +} + +// NewServiceRouteBindingLinksWithDefaults instantiates a new ServiceRouteBindingLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceRouteBindingLinksWithDefaults() *ServiceRouteBindingLinks { + this := ServiceRouteBindingLinks{} + return &this +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *ServiceRouteBindingLinks) GetParameters() string { + if o == nil || IsNil(o.Parameters) { + var ret string + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingLinks) GetParametersOk() (*string, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *ServiceRouteBindingLinks) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given string and assigns it to the Parameters field. +func (o *ServiceRouteBindingLinks) SetParameters(v string) { + o.Parameters = &v +} + +// GetRoute returns the Route field value if set, zero value otherwise. +func (o *ServiceRouteBindingLinks) GetRoute() string { + if o == nil || IsNil(o.Route) { + var ret string + return ret + } + return *o.Route +} + +// GetRouteOk returns a tuple with the Route field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingLinks) GetRouteOk() (*string, bool) { + if o == nil || IsNil(o.Route) { + return nil, false + } + return o.Route, true +} + +// HasRoute returns a boolean if a field has been set. +func (o *ServiceRouteBindingLinks) HasRoute() bool { + if o != nil && !IsNil(o.Route) { + return true + } + + return false +} + +// SetRoute gets a reference to the given string and assigns it to the Route field. +func (o *ServiceRouteBindingLinks) SetRoute(v string) { + o.Route = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServiceRouteBindingLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServiceRouteBindingLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *ServiceRouteBindingLinks) SetSelf(v string) { + o.Self = &v +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise. +func (o *ServiceRouteBindingLinks) GetServiceInstance() string { + if o == nil || IsNil(o.ServiceInstance) { + var ret string + return ret + } + return *o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingLinks) GetServiceInstanceOk() (*string, bool) { + if o == nil || IsNil(o.ServiceInstance) { + return nil, false + } + return o.ServiceInstance, true +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *ServiceRouteBindingLinks) HasServiceInstance() bool { + if o != nil && !IsNil(o.ServiceInstance) { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given string and assigns it to the ServiceInstance field. +func (o *ServiceRouteBindingLinks) SetServiceInstance(v string) { + o.ServiceInstance = &v +} + +func (o ServiceRouteBindingLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceRouteBindingLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.Route) { + toSerialize["route"] = o.Route + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.ServiceInstance) { + toSerialize["service_instance"] = o.ServiceInstance + } + return toSerialize, nil +} + +type NullableServiceRouteBindingLinks struct { + value *ServiceRouteBindingLinks + isSet bool +} + +func (v NullableServiceRouteBindingLinks) Get() *ServiceRouteBindingLinks { + return v.value +} + +func (v *NullableServiceRouteBindingLinks) Set(val *ServiceRouteBindingLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServiceRouteBindingLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceRouteBindingLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceRouteBindingLinks(val *ServiceRouteBindingLinks) *NullableServiceRouteBindingLinks { + return &NullableServiceRouteBindingLinks{value: val, isSet: true} +} + +func (v NullableServiceRouteBindingLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceRouteBindingLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_route_binding_relationships.go b/model_service_route_binding_relationships.go new file mode 100644 index 0000000..b9d28c2 --- /dev/null +++ b/model_service_route_binding_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceRouteBindingRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceRouteBindingRelationships{} + +// ServiceRouteBindingRelationships struct for ServiceRouteBindingRelationships +type ServiceRouteBindingRelationships struct { + Route *V3AppsPostRequestRelationshipsSpace `json:"route,omitempty"` + ServiceInstance *V3AppsPostRequestRelationshipsSpace `json:"service_instance,omitempty"` +} + +// NewServiceRouteBindingRelationships instantiates a new ServiceRouteBindingRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceRouteBindingRelationships() *ServiceRouteBindingRelationships { + this := ServiceRouteBindingRelationships{} + return &this +} + +// NewServiceRouteBindingRelationshipsWithDefaults instantiates a new ServiceRouteBindingRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceRouteBindingRelationshipsWithDefaults() *ServiceRouteBindingRelationships { + this := ServiceRouteBindingRelationships{} + return &this +} + +// GetRoute returns the Route field value if set, zero value otherwise. +func (o *ServiceRouteBindingRelationships) GetRoute() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Route) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Route +} + +// GetRouteOk returns a tuple with the Route field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingRelationships) GetRouteOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Route) { + return nil, false + } + return o.Route, true +} + +// HasRoute returns a boolean if a field has been set. +func (o *ServiceRouteBindingRelationships) HasRoute() bool { + if o != nil && !IsNil(o.Route) { + return true + } + + return false +} + +// SetRoute gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Route field. +func (o *ServiceRouteBindingRelationships) SetRoute(v V3AppsPostRequestRelationshipsSpace) { + o.Route = &v +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise. +func (o *ServiceRouteBindingRelationships) GetServiceInstance() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.ServiceInstance) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.ServiceInstance +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceRouteBindingRelationships) GetServiceInstanceOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.ServiceInstance) { + return nil, false + } + return o.ServiceInstance, true +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *ServiceRouteBindingRelationships) HasServiceInstance() bool { + if o != nil && !IsNil(o.ServiceInstance) { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the ServiceInstance field. +func (o *ServiceRouteBindingRelationships) SetServiceInstance(v V3AppsPostRequestRelationshipsSpace) { + o.ServiceInstance = &v +} + +func (o ServiceRouteBindingRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceRouteBindingRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Route) { + toSerialize["route"] = o.Route + } + if !IsNil(o.ServiceInstance) { + toSerialize["service_instance"] = o.ServiceInstance + } + return toSerialize, nil +} + +type NullableServiceRouteBindingRelationships struct { + value *ServiceRouteBindingRelationships + isSet bool +} + +func (v NullableServiceRouteBindingRelationships) Get() *ServiceRouteBindingRelationships { + return v.value +} + +func (v *NullableServiceRouteBindingRelationships) Set(val *ServiceRouteBindingRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableServiceRouteBindingRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceRouteBindingRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceRouteBindingRelationships(val *ServiceRouteBindingRelationships) *NullableServiceRouteBindingRelationships { + return &NullableServiceRouteBindingRelationships{value: val, isSet: true} +} + +func (v NullableServiceRouteBindingRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceRouteBindingRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_usage_event.go b/model_service_usage_event.go new file mode 100644 index 0000000..e633db3 --- /dev/null +++ b/model_service_usage_event.go @@ -0,0 +1,557 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the ServiceUsageEvent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceUsageEvent{} + +// ServiceUsageEvent struct for ServiceUsageEvent +type ServiceUsageEvent struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *ServiceUsageEventLinks `json:"links,omitempty"` + Organization NullableRoleRelationshipsSpaceData `json:"organization,omitempty"` + ServiceBroker NullableServiceUsageEventServiceBroker `json:"service_broker,omitempty"` + ServiceInstance NullableServiceUsageEventServiceInstance `json:"service_instance,omitempty"` + ServiceOffering NullableServiceUsageEventServiceBroker `json:"service_offering,omitempty"` + ServicePlan NullableServiceUsageEventServiceBroker `json:"service_plan,omitempty"` + Space NullableServiceUsageEventServiceBroker `json:"space,omitempty"` + State NullableString `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewServiceUsageEvent instantiates a new ServiceUsageEvent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceUsageEvent() *ServiceUsageEvent { + this := ServiceUsageEvent{} + return &this +} + +// NewServiceUsageEventWithDefaults instantiates a new ServiceUsageEvent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceUsageEventWithDefaults() *ServiceUsageEvent { + this := ServiceUsageEvent{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceUsageEvent) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEvent) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceUsageEvent) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceUsageEvent) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEvent) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceUsageEvent) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *ServiceUsageEvent) GetLinks() ServiceUsageEventLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceUsageEventLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEvent) GetLinksOk() (*ServiceUsageEventLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceUsageEventLinks and assigns it to the Links field. +func (o *ServiceUsageEvent) SetLinks(v ServiceUsageEventLinks) { + o.Links = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetOrganization() RoleRelationshipsSpaceData { + if o == nil || IsNil(o.Organization.Get()) { + var ret RoleRelationshipsSpaceData + return ret + } + return *o.Organization.Get() +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetOrganizationOk() (*RoleRelationshipsSpaceData, bool) { + if o == nil { + return nil, false + } + return o.Organization.Get(), o.Organization.IsSet() +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasOrganization() bool { + if o != nil && o.Organization.IsSet() { + return true + } + + return false +} + +// SetOrganization gets a reference to the given NullableRoleRelationshipsSpaceData and assigns it to the Organization field. +func (o *ServiceUsageEvent) SetOrganization(v RoleRelationshipsSpaceData) { + o.Organization.Set(&v) +} +// SetOrganizationNil sets the value for Organization to be an explicit nil +func (o *ServiceUsageEvent) SetOrganizationNil() { + o.Organization.Set(nil) +} + +// UnsetOrganization ensures that no value is present for Organization, not even an explicit nil +func (o *ServiceUsageEvent) UnsetOrganization() { + o.Organization.Unset() +} + +// GetServiceBroker returns the ServiceBroker field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetServiceBroker() ServiceUsageEventServiceBroker { + if o == nil || IsNil(o.ServiceBroker.Get()) { + var ret ServiceUsageEventServiceBroker + return ret + } + return *o.ServiceBroker.Get() +} + +// GetServiceBrokerOk returns a tuple with the ServiceBroker field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetServiceBrokerOk() (*ServiceUsageEventServiceBroker, bool) { + if o == nil { + return nil, false + } + return o.ServiceBroker.Get(), o.ServiceBroker.IsSet() +} + +// HasServiceBroker returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasServiceBroker() bool { + if o != nil && o.ServiceBroker.IsSet() { + return true + } + + return false +} + +// SetServiceBroker gets a reference to the given NullableServiceUsageEventServiceBroker and assigns it to the ServiceBroker field. +func (o *ServiceUsageEvent) SetServiceBroker(v ServiceUsageEventServiceBroker) { + o.ServiceBroker.Set(&v) +} +// SetServiceBrokerNil sets the value for ServiceBroker to be an explicit nil +func (o *ServiceUsageEvent) SetServiceBrokerNil() { + o.ServiceBroker.Set(nil) +} + +// UnsetServiceBroker ensures that no value is present for ServiceBroker, not even an explicit nil +func (o *ServiceUsageEvent) UnsetServiceBroker() { + o.ServiceBroker.Unset() +} + +// GetServiceInstance returns the ServiceInstance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetServiceInstance() ServiceUsageEventServiceInstance { + if o == nil || IsNil(o.ServiceInstance.Get()) { + var ret ServiceUsageEventServiceInstance + return ret + } + return *o.ServiceInstance.Get() +} + +// GetServiceInstanceOk returns a tuple with the ServiceInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetServiceInstanceOk() (*ServiceUsageEventServiceInstance, bool) { + if o == nil { + return nil, false + } + return o.ServiceInstance.Get(), o.ServiceInstance.IsSet() +} + +// HasServiceInstance returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasServiceInstance() bool { + if o != nil && o.ServiceInstance.IsSet() { + return true + } + + return false +} + +// SetServiceInstance gets a reference to the given NullableServiceUsageEventServiceInstance and assigns it to the ServiceInstance field. +func (o *ServiceUsageEvent) SetServiceInstance(v ServiceUsageEventServiceInstance) { + o.ServiceInstance.Set(&v) +} +// SetServiceInstanceNil sets the value for ServiceInstance to be an explicit nil +func (o *ServiceUsageEvent) SetServiceInstanceNil() { + o.ServiceInstance.Set(nil) +} + +// UnsetServiceInstance ensures that no value is present for ServiceInstance, not even an explicit nil +func (o *ServiceUsageEvent) UnsetServiceInstance() { + o.ServiceInstance.Unset() +} + +// GetServiceOffering returns the ServiceOffering field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetServiceOffering() ServiceUsageEventServiceBroker { + if o == nil || IsNil(o.ServiceOffering.Get()) { + var ret ServiceUsageEventServiceBroker + return ret + } + return *o.ServiceOffering.Get() +} + +// GetServiceOfferingOk returns a tuple with the ServiceOffering field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetServiceOfferingOk() (*ServiceUsageEventServiceBroker, bool) { + if o == nil { + return nil, false + } + return o.ServiceOffering.Get(), o.ServiceOffering.IsSet() +} + +// HasServiceOffering returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasServiceOffering() bool { + if o != nil && o.ServiceOffering.IsSet() { + return true + } + + return false +} + +// SetServiceOffering gets a reference to the given NullableServiceUsageEventServiceBroker and assigns it to the ServiceOffering field. +func (o *ServiceUsageEvent) SetServiceOffering(v ServiceUsageEventServiceBroker) { + o.ServiceOffering.Set(&v) +} +// SetServiceOfferingNil sets the value for ServiceOffering to be an explicit nil +func (o *ServiceUsageEvent) SetServiceOfferingNil() { + o.ServiceOffering.Set(nil) +} + +// UnsetServiceOffering ensures that no value is present for ServiceOffering, not even an explicit nil +func (o *ServiceUsageEvent) UnsetServiceOffering() { + o.ServiceOffering.Unset() +} + +// GetServicePlan returns the ServicePlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetServicePlan() ServiceUsageEventServiceBroker { + if o == nil || IsNil(o.ServicePlan.Get()) { + var ret ServiceUsageEventServiceBroker + return ret + } + return *o.ServicePlan.Get() +} + +// GetServicePlanOk returns a tuple with the ServicePlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetServicePlanOk() (*ServiceUsageEventServiceBroker, bool) { + if o == nil { + return nil, false + } + return o.ServicePlan.Get(), o.ServicePlan.IsSet() +} + +// HasServicePlan returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasServicePlan() bool { + if o != nil && o.ServicePlan.IsSet() { + return true + } + + return false +} + +// SetServicePlan gets a reference to the given NullableServiceUsageEventServiceBroker and assigns it to the ServicePlan field. +func (o *ServiceUsageEvent) SetServicePlan(v ServiceUsageEventServiceBroker) { + o.ServicePlan.Set(&v) +} +// SetServicePlanNil sets the value for ServicePlan to be an explicit nil +func (o *ServiceUsageEvent) SetServicePlanNil() { + o.ServicePlan.Set(nil) +} + +// UnsetServicePlan ensures that no value is present for ServicePlan, not even an explicit nil +func (o *ServiceUsageEvent) UnsetServicePlan() { + o.ServicePlan.Unset() +} + +// GetSpace returns the Space field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetSpace() ServiceUsageEventServiceBroker { + if o == nil || IsNil(o.Space.Get()) { + var ret ServiceUsageEventServiceBroker + return ret + } + return *o.Space.Get() +} + +// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetSpaceOk() (*ServiceUsageEventServiceBroker, bool) { + if o == nil { + return nil, false + } + return o.Space.Get(), o.Space.IsSet() +} + +// HasSpace returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasSpace() bool { + if o != nil && o.Space.IsSet() { + return true + } + + return false +} + +// SetSpace gets a reference to the given NullableServiceUsageEventServiceBroker and assigns it to the Space field. +func (o *ServiceUsageEvent) SetSpace(v ServiceUsageEventServiceBroker) { + o.Space.Set(&v) +} +// SetSpaceNil sets the value for Space to be an explicit nil +func (o *ServiceUsageEvent) SetSpaceNil() { + o.Space.Set(nil) +} + +// UnsetSpace ensures that no value is present for Space, not even an explicit nil +func (o *ServiceUsageEvent) UnsetSpace() { + o.Space.Unset() +} + +// GetState returns the State field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServiceUsageEvent) GetState() string { + if o == nil || IsNil(o.State.Get()) { + var ret string + return ret + } + return *o.State.Get() +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServiceUsageEvent) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.State.Get(), o.State.IsSet() +} + +// HasState returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasState() bool { + if o != nil && o.State.IsSet() { + return true + } + + return false +} + +// SetState gets a reference to the given NullableString and assigns it to the State field. +func (o *ServiceUsageEvent) SetState(v string) { + o.State.Set(&v) +} +// SetStateNil sets the value for State to be an explicit nil +func (o *ServiceUsageEvent) SetStateNil() { + o.State.Set(nil) +} + +// UnsetState ensures that no value is present for State, not even an explicit nil +func (o *ServiceUsageEvent) UnsetState() { + o.State.Unset() +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ServiceUsageEvent) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEvent) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ServiceUsageEvent) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ServiceUsageEvent) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ServiceUsageEvent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceUsageEvent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if o.Organization.IsSet() { + toSerialize["organization"] = o.Organization.Get() + } + if o.ServiceBroker.IsSet() { + toSerialize["service_broker"] = o.ServiceBroker.Get() + } + if o.ServiceInstance.IsSet() { + toSerialize["service_instance"] = o.ServiceInstance.Get() + } + if o.ServiceOffering.IsSet() { + toSerialize["service_offering"] = o.ServiceOffering.Get() + } + if o.ServicePlan.IsSet() { + toSerialize["service_plan"] = o.ServicePlan.Get() + } + if o.Space.IsSet() { + toSerialize["space"] = o.Space.Get() + } + if o.State.IsSet() { + toSerialize["state"] = o.State.Get() + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableServiceUsageEvent struct { + value *ServiceUsageEvent + isSet bool +} + +func (v NullableServiceUsageEvent) Get() *ServiceUsageEvent { + return v.value +} + +func (v *NullableServiceUsageEvent) Set(val *ServiceUsageEvent) { + v.value = val + v.isSet = true +} + +func (v NullableServiceUsageEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceUsageEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceUsageEvent(val *ServiceUsageEvent) *NullableServiceUsageEvent { + return &NullableServiceUsageEvent{value: val, isSet: true} +} + +func (v NullableServiceUsageEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceUsageEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_usage_event_links.go b/model_service_usage_event_links.go new file mode 100644 index 0000000..25c1354 --- /dev/null +++ b/model_service_usage_event_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceUsageEventLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceUsageEventLinks{} + +// ServiceUsageEventLinks struct for ServiceUsageEventLinks +type ServiceUsageEventLinks struct { + Self *string `json:"self,omitempty"` +} + +// NewServiceUsageEventLinks instantiates a new ServiceUsageEventLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceUsageEventLinks() *ServiceUsageEventLinks { + this := ServiceUsageEventLinks{} + return &this +} + +// NewServiceUsageEventLinksWithDefaults instantiates a new ServiceUsageEventLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceUsageEventLinksWithDefaults() *ServiceUsageEventLinks { + this := ServiceUsageEventLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *ServiceUsageEventLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *ServiceUsageEventLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *ServiceUsageEventLinks) SetSelf(v string) { + o.Self = &v +} + +func (o ServiceUsageEventLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceUsageEventLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableServiceUsageEventLinks struct { + value *ServiceUsageEventLinks + isSet bool +} + +func (v NullableServiceUsageEventLinks) Get() *ServiceUsageEventLinks { + return v.value +} + +func (v *NullableServiceUsageEventLinks) Set(val *ServiceUsageEventLinks) { + v.value = val + v.isSet = true +} + +func (v NullableServiceUsageEventLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceUsageEventLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceUsageEventLinks(val *ServiceUsageEventLinks) *NullableServiceUsageEventLinks { + return &NullableServiceUsageEventLinks{value: val, isSet: true} +} + +func (v NullableServiceUsageEventLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceUsageEventLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_usage_event_service_broker.go b/model_service_usage_event_service_broker.go new file mode 100644 index 0000000..b280100 --- /dev/null +++ b/model_service_usage_event_service_broker.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceUsageEventServiceBroker type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceUsageEventServiceBroker{} + +// ServiceUsageEventServiceBroker struct for ServiceUsageEventServiceBroker +type ServiceUsageEventServiceBroker struct { + Guid *string `json:"guid,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewServiceUsageEventServiceBroker instantiates a new ServiceUsageEventServiceBroker object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceUsageEventServiceBroker() *ServiceUsageEventServiceBroker { + this := ServiceUsageEventServiceBroker{} + return &this +} + +// NewServiceUsageEventServiceBrokerWithDefaults instantiates a new ServiceUsageEventServiceBroker object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceUsageEventServiceBrokerWithDefaults() *ServiceUsageEventServiceBroker { + this := ServiceUsageEventServiceBroker{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceUsageEventServiceBroker) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventServiceBroker) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceUsageEventServiceBroker) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceUsageEventServiceBroker) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceUsageEventServiceBroker) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventServiceBroker) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceUsageEventServiceBroker) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceUsageEventServiceBroker) SetName(v string) { + o.Name = &v +} + +func (o ServiceUsageEventServiceBroker) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceUsageEventServiceBroker) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableServiceUsageEventServiceBroker struct { + value *ServiceUsageEventServiceBroker + isSet bool +} + +func (v NullableServiceUsageEventServiceBroker) Get() *ServiceUsageEventServiceBroker { + return v.value +} + +func (v *NullableServiceUsageEventServiceBroker) Set(val *ServiceUsageEventServiceBroker) { + v.value = val + v.isSet = true +} + +func (v NullableServiceUsageEventServiceBroker) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceUsageEventServiceBroker) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceUsageEventServiceBroker(val *ServiceUsageEventServiceBroker) *NullableServiceUsageEventServiceBroker { + return &NullableServiceUsageEventServiceBroker{value: val, isSet: true} +} + +func (v NullableServiceUsageEventServiceBroker) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceUsageEventServiceBroker) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service_usage_event_service_instance.go b/model_service_usage_event_service_instance.go new file mode 100644 index 0000000..7913ba0 --- /dev/null +++ b/model_service_usage_event_service_instance.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServiceUsageEventServiceInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceUsageEventServiceInstance{} + +// ServiceUsageEventServiceInstance struct for ServiceUsageEventServiceInstance +type ServiceUsageEventServiceInstance struct { + Guid *string `json:"guid,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewServiceUsageEventServiceInstance instantiates a new ServiceUsageEventServiceInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceUsageEventServiceInstance() *ServiceUsageEventServiceInstance { + this := ServiceUsageEventServiceInstance{} + return &this +} + +// NewServiceUsageEventServiceInstanceWithDefaults instantiates a new ServiceUsageEventServiceInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceUsageEventServiceInstanceWithDefaults() *ServiceUsageEventServiceInstance { + this := ServiceUsageEventServiceInstance{} + return &this +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *ServiceUsageEventServiceInstance) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventServiceInstance) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *ServiceUsageEventServiceInstance) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *ServiceUsageEventServiceInstance) SetGuid(v string) { + o.Guid = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceUsageEventServiceInstance) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventServiceInstance) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceUsageEventServiceInstance) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceUsageEventServiceInstance) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServiceUsageEventServiceInstance) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceUsageEventServiceInstance) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServiceUsageEventServiceInstance) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServiceUsageEventServiceInstance) SetType(v string) { + o.Type = &v +} + +func (o ServiceUsageEventServiceInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceUsageEventServiceInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableServiceUsageEventServiceInstance struct { + value *ServiceUsageEventServiceInstance + isSet bool +} + +func (v NullableServiceUsageEventServiceInstance) Get() *ServiceUsageEventServiceInstance { + return v.value +} + +func (v *NullableServiceUsageEventServiceInstance) Set(val *ServiceUsageEventServiceInstance) { + v.value = val + v.isSet = true +} + +func (v NullableServiceUsageEventServiceInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceUsageEventServiceInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceUsageEventServiceInstance(val *ServiceUsageEventServiceInstance) *NullableServiceUsageEventServiceInstance { + return &NullableServiceUsageEventServiceInstance{value: val, isSet: true} +} + +func (v NullableServiceUsageEventServiceInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceUsageEventServiceInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_services_quota.go b/model_services_quota.go new file mode 100644 index 0000000..4ceb09b --- /dev/null +++ b/model_services_quota.go @@ -0,0 +1,221 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ServicesQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServicesQuota{} + +// ServicesQuota struct for ServicesQuota +type ServicesQuota struct { + // Specifies whether instances of paid service plans can be created + PaidServicesAllowed *bool `json:"paid_services_allowed,omitempty"` + // Total number of service instances allowed in an organization + TotalServiceInstances NullableInt32 `json:"total_service_instances,omitempty"` + // Total number of service keys allowed in an organization + TotalServiceKeys NullableInt32 `json:"total_service_keys,omitempty"` +} + +// NewServicesQuota instantiates a new ServicesQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServicesQuota() *ServicesQuota { + this := ServicesQuota{} + return &this +} + +// NewServicesQuotaWithDefaults instantiates a new ServicesQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServicesQuotaWithDefaults() *ServicesQuota { + this := ServicesQuota{} + return &this +} + +// GetPaidServicesAllowed returns the PaidServicesAllowed field value if set, zero value otherwise. +func (o *ServicesQuota) GetPaidServicesAllowed() bool { + if o == nil || IsNil(o.PaidServicesAllowed) { + var ret bool + return ret + } + return *o.PaidServicesAllowed +} + +// GetPaidServicesAllowedOk returns a tuple with the PaidServicesAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServicesQuota) GetPaidServicesAllowedOk() (*bool, bool) { + if o == nil || IsNil(o.PaidServicesAllowed) { + return nil, false + } + return o.PaidServicesAllowed, true +} + +// HasPaidServicesAllowed returns a boolean if a field has been set. +func (o *ServicesQuota) HasPaidServicesAllowed() bool { + if o != nil && !IsNil(o.PaidServicesAllowed) { + return true + } + + return false +} + +// SetPaidServicesAllowed gets a reference to the given bool and assigns it to the PaidServicesAllowed field. +func (o *ServicesQuota) SetPaidServicesAllowed(v bool) { + o.PaidServicesAllowed = &v +} + +// GetTotalServiceInstances returns the TotalServiceInstances field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServicesQuota) GetTotalServiceInstances() int32 { + if o == nil || IsNil(o.TotalServiceInstances.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceInstances.Get() +} + +// GetTotalServiceInstancesOk returns a tuple with the TotalServiceInstances field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServicesQuota) GetTotalServiceInstancesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceInstances.Get(), o.TotalServiceInstances.IsSet() +} + +// HasTotalServiceInstances returns a boolean if a field has been set. +func (o *ServicesQuota) HasTotalServiceInstances() bool { + if o != nil && o.TotalServiceInstances.IsSet() { + return true + } + + return false +} + +// SetTotalServiceInstances gets a reference to the given NullableInt32 and assigns it to the TotalServiceInstances field. +func (o *ServicesQuota) SetTotalServiceInstances(v int32) { + o.TotalServiceInstances.Set(&v) +} +// SetTotalServiceInstancesNil sets the value for TotalServiceInstances to be an explicit nil +func (o *ServicesQuota) SetTotalServiceInstancesNil() { + o.TotalServiceInstances.Set(nil) +} + +// UnsetTotalServiceInstances ensures that no value is present for TotalServiceInstances, not even an explicit nil +func (o *ServicesQuota) UnsetTotalServiceInstances() { + o.TotalServiceInstances.Unset() +} + +// GetTotalServiceKeys returns the TotalServiceKeys field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ServicesQuota) GetTotalServiceKeys() int32 { + if o == nil || IsNil(o.TotalServiceKeys.Get()) { + var ret int32 + return ret + } + return *o.TotalServiceKeys.Get() +} + +// GetTotalServiceKeysOk returns a tuple with the TotalServiceKeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ServicesQuota) GetTotalServiceKeysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TotalServiceKeys.Get(), o.TotalServiceKeys.IsSet() +} + +// HasTotalServiceKeys returns a boolean if a field has been set. +func (o *ServicesQuota) HasTotalServiceKeys() bool { + if o != nil && o.TotalServiceKeys.IsSet() { + return true + } + + return false +} + +// SetTotalServiceKeys gets a reference to the given NullableInt32 and assigns it to the TotalServiceKeys field. +func (o *ServicesQuota) SetTotalServiceKeys(v int32) { + o.TotalServiceKeys.Set(&v) +} +// SetTotalServiceKeysNil sets the value for TotalServiceKeys to be an explicit nil +func (o *ServicesQuota) SetTotalServiceKeysNil() { + o.TotalServiceKeys.Set(nil) +} + +// UnsetTotalServiceKeys ensures that no value is present for TotalServiceKeys, not even an explicit nil +func (o *ServicesQuota) UnsetTotalServiceKeys() { + o.TotalServiceKeys.Unset() +} + +func (o ServicesQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServicesQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PaidServicesAllowed) { + toSerialize["paid_services_allowed"] = o.PaidServicesAllowed + } + if o.TotalServiceInstances.IsSet() { + toSerialize["total_service_instances"] = o.TotalServiceInstances.Get() + } + if o.TotalServiceKeys.IsSet() { + toSerialize["total_service_keys"] = o.TotalServiceKeys.Get() + } + return toSerialize, nil +} + +type NullableServicesQuota struct { + value *ServicesQuota + isSet bool +} + +func (v NullableServicesQuota) Get() *ServicesQuota { + return v.value +} + +func (v *NullableServicesQuota) Set(val *ServicesQuota) { + v.value = val + v.isSet = true +} + +func (v NullableServicesQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableServicesQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServicesQuota(val *ServicesQuota) *NullableServicesQuota { + return &NullableServicesQuota{value: val, isSet: true} +} + +func (v NullableServicesQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServicesQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_sidecar.go b/model_sidecar.go new file mode 100644 index 0000000..db54876 --- /dev/null +++ b/model_sidecar.go @@ -0,0 +1,415 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Sidecar type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Sidecar{} + +// Sidecar struct for Sidecar +type Sidecar struct { + Command *string `json:"command,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Name *string `json:"name,omitempty"` + Origin *string `json:"origin,omitempty"` + ProcessTypes []string `json:"process_types,omitempty"` + Relationships *V3AppsGuidDropletsCurrentGet200ResponseRelationships `json:"relationships,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSidecar instantiates a new Sidecar object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSidecar() *Sidecar { + this := Sidecar{} + return &this +} + +// NewSidecarWithDefaults instantiates a new Sidecar object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSidecarWithDefaults() *Sidecar { + this := Sidecar{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *Sidecar) GetCommand() string { + if o == nil || IsNil(o.Command) { + var ret string + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetCommandOk() (*string, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *Sidecar) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given string and assigns it to the Command field. +func (o *Sidecar) SetCommand(v string) { + o.Command = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Sidecar) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Sidecar) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Sidecar) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Sidecar) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Sidecar) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Sidecar) SetGuid(v string) { + o.Guid = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *Sidecar) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *Sidecar) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *Sidecar) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Sidecar) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Sidecar) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Sidecar) SetName(v string) { + o.Name = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise. +func (o *Sidecar) GetOrigin() string { + if o == nil || IsNil(o.Origin) { + var ret string + return ret + } + return *o.Origin +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetOriginOk() (*string, bool) { + if o == nil || IsNil(o.Origin) { + return nil, false + } + return o.Origin, true +} + +// HasOrigin returns a boolean if a field has been set. +func (o *Sidecar) HasOrigin() bool { + if o != nil && !IsNil(o.Origin) { + return true + } + + return false +} + +// SetOrigin gets a reference to the given string and assigns it to the Origin field. +func (o *Sidecar) SetOrigin(v string) { + o.Origin = &v +} + +// GetProcessTypes returns the ProcessTypes field value if set, zero value otherwise. +func (o *Sidecar) GetProcessTypes() []string { + if o == nil || IsNil(o.ProcessTypes) { + var ret []string + return ret + } + return o.ProcessTypes +} + +// GetProcessTypesOk returns a tuple with the ProcessTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetProcessTypesOk() ([]string, bool) { + if o == nil || IsNil(o.ProcessTypes) { + return nil, false + } + return o.ProcessTypes, true +} + +// HasProcessTypes returns a boolean if a field has been set. +func (o *Sidecar) HasProcessTypes() bool { + if o != nil && !IsNil(o.ProcessTypes) { + return true + } + + return false +} + +// SetProcessTypes gets a reference to the given []string and assigns it to the ProcessTypes field. +func (o *Sidecar) SetProcessTypes(v []string) { + o.ProcessTypes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Sidecar) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsGuidDropletsCurrentGet200ResponseRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Sidecar) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseRelationships and assigns it to the Relationships field. +func (o *Sidecar) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships) { + o.Relationships = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Sidecar) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Sidecar) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Sidecar) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Sidecar) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Sidecar) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Sidecar) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Origin) { + toSerialize["origin"] = o.Origin + } + if !IsNil(o.ProcessTypes) { + toSerialize["process_types"] = o.ProcessTypes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSidecar struct { + value *Sidecar + isSet bool +} + +func (v NullableSidecar) Get() *Sidecar { + return v.value +} + +func (v *NullableSidecar) Set(val *Sidecar) { + v.value = val + v.isSet = true +} + +func (v NullableSidecar) IsSet() bool { + return v.isSet +} + +func (v *NullableSidecar) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSidecar(val *Sidecar) *NullableSidecar { + return &NullableSidecar{value: val, isSet: true} +} + +func (v NullableSidecar) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSidecar) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space.go b/model_space.go new file mode 100644 index 0000000..43bf7a7 --- /dev/null +++ b/model_space.go @@ -0,0 +1,343 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Space type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Space{} + +// Space struct for Space +type Space struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *SpaceLinks `json:"links,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *SpaceRelationships `json:"relationships,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSpace instantiates a new Space object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpace() *Space { + this := Space{} + return &this +} + +// NewSpaceWithDefaults instantiates a new Space object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceWithDefaults() *Space { + this := Space{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Space) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Space) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Space) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Space) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Space) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Space) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Space) GetLinks() SpaceLinks { + if o == nil || IsNil(o.Links) { + var ret SpaceLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetLinksOk() (*SpaceLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Space) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given SpaceLinks and assigns it to the Links field. +func (o *Space) SetLinks(v SpaceLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Space) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Space) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *Space) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Space) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Space) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Space) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Space) GetRelationships() SpaceRelationships { + if o == nil || IsNil(o.Relationships) { + var ret SpaceRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetRelationshipsOk() (*SpaceRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Space) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given SpaceRelationships and assigns it to the Relationships field. +func (o *Space) SetRelationships(v SpaceRelationships) { + o.Relationships = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Space) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Space) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Space) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Space) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Space) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Space) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSpace struct { + value *Space + isSet bool +} + +func (v NullableSpace) Get() *Space { + return v.value +} + +func (v *NullableSpace) Set(val *Space) { + v.value = val + v.isSet = true +} + +func (v NullableSpace) IsSet() bool { + return v.isSet +} + +func (v *NullableSpace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpace(val *Space) *NullableSpace { + return &NullableSpace{value: val, isSet: true} +} + +func (v NullableSpace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_feature.go b/model_space_feature.go new file mode 100644 index 0000000..1136126 --- /dev/null +++ b/model_space_feature.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceFeature type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceFeature{} + +// SpaceFeature struct for SpaceFeature +type SpaceFeature struct { + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewSpaceFeature instantiates a new SpaceFeature object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceFeature() *SpaceFeature { + this := SpaceFeature{} + return &this +} + +// NewSpaceFeatureWithDefaults instantiates a new SpaceFeature object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceFeatureWithDefaults() *SpaceFeature { + this := SpaceFeature{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SpaceFeature) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceFeature) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SpaceFeature) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SpaceFeature) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SpaceFeature) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceFeature) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SpaceFeature) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SpaceFeature) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SpaceFeature) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceFeature) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SpaceFeature) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SpaceFeature) SetName(v string) { + o.Name = &v +} + +func (o SpaceFeature) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceFeature) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableSpaceFeature struct { + value *SpaceFeature + isSet bool +} + +func (v NullableSpaceFeature) Get() *SpaceFeature { + return v.value +} + +func (v *NullableSpaceFeature) Set(val *SpaceFeature) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceFeature) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceFeature) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceFeature(val *SpaceFeature) *NullableSpaceFeature { + return &NullableSpaceFeature{value: val, isSet: true} +} + +func (v NullableSpaceFeature) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceFeature) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_links.go b/model_space_links.go new file mode 100644 index 0000000..a438f92 --- /dev/null +++ b/model_space_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceLinks{} + +// SpaceLinks struct for SpaceLinks +type SpaceLinks struct { + ApplyManifest *DropletLinksAssignCurrentDroplet `json:"apply_manifest,omitempty"` + Features *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"features,omitempty"` + Organization *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"organization,omitempty"` + Self *V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated `json:"self,omitempty"` +} + +// NewSpaceLinks instantiates a new SpaceLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceLinks() *SpaceLinks { + this := SpaceLinks{} + return &this +} + +// NewSpaceLinksWithDefaults instantiates a new SpaceLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceLinksWithDefaults() *SpaceLinks { + this := SpaceLinks{} + return &this +} + +// GetApplyManifest returns the ApplyManifest field value if set, zero value otherwise. +func (o *SpaceLinks) GetApplyManifest() DropletLinksAssignCurrentDroplet { + if o == nil || IsNil(o.ApplyManifest) { + var ret DropletLinksAssignCurrentDroplet + return ret + } + return *o.ApplyManifest +} + +// GetApplyManifestOk returns a tuple with the ApplyManifest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceLinks) GetApplyManifestOk() (*DropletLinksAssignCurrentDroplet, bool) { + if o == nil || IsNil(o.ApplyManifest) { + return nil, false + } + return o.ApplyManifest, true +} + +// HasApplyManifest returns a boolean if a field has been set. +func (o *SpaceLinks) HasApplyManifest() bool { + if o != nil && !IsNil(o.ApplyManifest) { + return true + } + + return false +} + +// SetApplyManifest gets a reference to the given DropletLinksAssignCurrentDroplet and assigns it to the ApplyManifest field. +func (o *SpaceLinks) SetApplyManifest(v DropletLinksAssignCurrentDroplet) { + o.ApplyManifest = &v +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *SpaceLinks) GetFeatures() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Features) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Features +} + +// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceLinks) GetFeaturesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Features) { + return nil, false + } + return o.Features, true +} + +// HasFeatures returns a boolean if a field has been set. +func (o *SpaceLinks) HasFeatures() bool { + if o != nil && !IsNil(o.Features) { + return true + } + + return false +} + +// SetFeatures gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Features field. +func (o *SpaceLinks) SetFeatures(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Features = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *SpaceLinks) GetOrganization() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Organization) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceLinks) GetOrganizationOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *SpaceLinks) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Organization field. +func (o *SpaceLinks) SetOrganization(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Organization = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *SpaceLinks) GetSelf() V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated { + if o == nil || IsNil(o.Self) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceLinks) GetSelfOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *SpaceLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated and assigns it to the Self field. +func (o *SpaceLinks) SetSelf(v V3IsolationSegmentsGuidRelationshipsOrganizationsGet200ResponseLinksRelated) { + o.Self = &v +} + +func (o SpaceLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApplyManifest) { + toSerialize["apply_manifest"] = o.ApplyManifest + } + if !IsNil(o.Features) { + toSerialize["features"] = o.Features + } + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableSpaceLinks struct { + value *SpaceLinks + isSet bool +} + +func (v NullableSpaceLinks) Get() *SpaceLinks { + return v.value +} + +func (v *NullableSpaceLinks) Set(val *SpaceLinks) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceLinks(val *SpaceLinks) *NullableSpaceLinks { + return &NullableSpaceLinks{value: val, isSet: true} +} + +func (v NullableSpaceLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_quota.go b/model_space_quota.go new file mode 100644 index 0000000..0a9245f --- /dev/null +++ b/model_space_quota.go @@ -0,0 +1,415 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the SpaceQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceQuota{} + +// SpaceQuota struct for SpaceQuota +type SpaceQuota struct { + Apps *V3SpaceQuotasPostRequestApps `json:"apps,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *SpaceQuotaLinks `json:"links,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *SpaceQuotaRelationships `json:"relationships,omitempty"` + Routes *V3SpaceQuotasPostRequestRoutes `json:"routes,omitempty"` + Services *V3SpaceQuotasPostRequestServices `json:"services,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSpaceQuota instantiates a new SpaceQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceQuota() *SpaceQuota { + this := SpaceQuota{} + return &this +} + +// NewSpaceQuotaWithDefaults instantiates a new SpaceQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceQuotaWithDefaults() *SpaceQuota { + this := SpaceQuota{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *SpaceQuota) GetApps() V3SpaceQuotasPostRequestApps { + if o == nil || IsNil(o.Apps) { + var ret V3SpaceQuotasPostRequestApps + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetAppsOk() (*V3SpaceQuotasPostRequestApps, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *SpaceQuota) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given V3SpaceQuotasPostRequestApps and assigns it to the Apps field. +func (o *SpaceQuota) SetApps(v V3SpaceQuotasPostRequestApps) { + o.Apps = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SpaceQuota) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SpaceQuota) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SpaceQuota) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *SpaceQuota) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *SpaceQuota) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *SpaceQuota) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *SpaceQuota) GetLinks() SpaceQuotaLinks { + if o == nil || IsNil(o.Links) { + var ret SpaceQuotaLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetLinksOk() (*SpaceQuotaLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *SpaceQuota) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given SpaceQuotaLinks and assigns it to the Links field. +func (o *SpaceQuota) SetLinks(v SpaceQuotaLinks) { + o.Links = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SpaceQuota) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SpaceQuota) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SpaceQuota) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *SpaceQuota) GetRelationships() SpaceQuotaRelationships { + if o == nil || IsNil(o.Relationships) { + var ret SpaceQuotaRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetRelationshipsOk() (*SpaceQuotaRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *SpaceQuota) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given SpaceQuotaRelationships and assigns it to the Relationships field. +func (o *SpaceQuota) SetRelationships(v SpaceQuotaRelationships) { + o.Relationships = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *SpaceQuota) GetRoutes() V3SpaceQuotasPostRequestRoutes { + if o == nil || IsNil(o.Routes) { + var ret V3SpaceQuotasPostRequestRoutes + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetRoutesOk() (*V3SpaceQuotasPostRequestRoutes, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *SpaceQuota) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given V3SpaceQuotasPostRequestRoutes and assigns it to the Routes field. +func (o *SpaceQuota) SetRoutes(v V3SpaceQuotasPostRequestRoutes) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *SpaceQuota) GetServices() V3SpaceQuotasPostRequestServices { + if o == nil || IsNil(o.Services) { + var ret V3SpaceQuotasPostRequestServices + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetServicesOk() (*V3SpaceQuotasPostRequestServices, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *SpaceQuota) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given V3SpaceQuotasPostRequestServices and assigns it to the Services field. +func (o *SpaceQuota) SetServices(v V3SpaceQuotasPostRequestServices) { + o.Services = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SpaceQuota) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuota) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SpaceQuota) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SpaceQuota) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SpaceQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSpaceQuota struct { + value *SpaceQuota + isSet bool +} + +func (v NullableSpaceQuota) Get() *SpaceQuota { + return v.value +} + +func (v *NullableSpaceQuota) Set(val *SpaceQuota) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceQuota(val *SpaceQuota) *NullableSpaceQuota { + return &NullableSpaceQuota{value: val, isSet: true} +} + +func (v NullableSpaceQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_quota_links.go b/model_space_quota_links.go new file mode 100644 index 0000000..e0fe694 --- /dev/null +++ b/model_space_quota_links.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceQuotaLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceQuotaLinks{} + +// SpaceQuotaLinks struct for SpaceQuotaLinks +type SpaceQuotaLinks struct { + Organization *string `json:"organization,omitempty"` + Self *string `json:"self,omitempty"` +} + +// NewSpaceQuotaLinks instantiates a new SpaceQuotaLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceQuotaLinks() *SpaceQuotaLinks { + this := SpaceQuotaLinks{} + return &this +} + +// NewSpaceQuotaLinksWithDefaults instantiates a new SpaceQuotaLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceQuotaLinksWithDefaults() *SpaceQuotaLinks { + this := SpaceQuotaLinks{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *SpaceQuotaLinks) GetOrganization() string { + if o == nil || IsNil(o.Organization) { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuotaLinks) GetOrganizationOk() (*string, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *SpaceQuotaLinks) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *SpaceQuotaLinks) SetOrganization(v string) { + o.Organization = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *SpaceQuotaLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuotaLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *SpaceQuotaLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *SpaceQuotaLinks) SetSelf(v string) { + o.Self = &v +} + +func (o SpaceQuotaLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceQuotaLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableSpaceQuotaLinks struct { + value *SpaceQuotaLinks + isSet bool +} + +func (v NullableSpaceQuotaLinks) Get() *SpaceQuotaLinks { + return v.value +} + +func (v *NullableSpaceQuotaLinks) Set(val *SpaceQuotaLinks) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceQuotaLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceQuotaLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceQuotaLinks(val *SpaceQuotaLinks) *NullableSpaceQuotaLinks { + return &NullableSpaceQuotaLinks{value: val, isSet: true} +} + +func (v NullableSpaceQuotaLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceQuotaLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_quota_relationships.go b/model_space_quota_relationships.go new file mode 100644 index 0000000..f69b754 --- /dev/null +++ b/model_space_quota_relationships.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceQuotaRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceQuotaRelationships{} + +// SpaceQuotaRelationships struct for SpaceQuotaRelationships +type SpaceQuotaRelationships struct { + Organization *V3AppsPostRequestRelationshipsSpace `json:"organization,omitempty"` + Spaces *V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest `json:"spaces,omitempty"` +} + +// NewSpaceQuotaRelationships instantiates a new SpaceQuotaRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceQuotaRelationships() *SpaceQuotaRelationships { + this := SpaceQuotaRelationships{} + return &this +} + +// NewSpaceQuotaRelationshipsWithDefaults instantiates a new SpaceQuotaRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceQuotaRelationshipsWithDefaults() *SpaceQuotaRelationships { + this := SpaceQuotaRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *SpaceQuotaRelationships) GetOrganization() V3AppsPostRequestRelationshipsSpace { + if o == nil || IsNil(o.Organization) { + var ret V3AppsPostRequestRelationshipsSpace + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuotaRelationships) GetOrganizationOk() (*V3AppsPostRequestRelationshipsSpace, bool) { + if o == nil || IsNil(o.Organization) { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *SpaceQuotaRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given V3AppsPostRequestRelationshipsSpace and assigns it to the Organization field. +func (o *SpaceQuotaRelationships) SetOrganization(v V3AppsPostRequestRelationshipsSpace) { + o.Organization = &v +} + +// GetSpaces returns the Spaces field value if set, zero value otherwise. +func (o *SpaceQuotaRelationships) GetSpaces() V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest { + if o == nil || IsNil(o.Spaces) { + var ret V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest + return ret + } + return *o.Spaces +} + +// GetSpacesOk returns a tuple with the Spaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceQuotaRelationships) GetSpacesOk() (*V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest, bool) { + if o == nil || IsNil(o.Spaces) { + return nil, false + } + return o.Spaces, true +} + +// HasSpaces returns a boolean if a field has been set. +func (o *SpaceQuotaRelationships) HasSpaces() bool { + if o != nil && !IsNil(o.Spaces) { + return true + } + + return false +} + +// SetSpaces gets a reference to the given V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest and assigns it to the Spaces field. +func (o *SpaceQuotaRelationships) SetSpaces(v V3IsolationSegmentsGuidRelationshipsOrganizationsPostRequest) { + o.Spaces = &v +} + +func (o SpaceQuotaRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceQuotaRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if !IsNil(o.Spaces) { + toSerialize["spaces"] = o.Spaces + } + return toSerialize, nil +} + +type NullableSpaceQuotaRelationships struct { + value *SpaceQuotaRelationships + isSet bool +} + +func (v NullableSpaceQuotaRelationships) Get() *SpaceQuotaRelationships { + return v.value +} + +func (v *NullableSpaceQuotaRelationships) Set(val *SpaceQuotaRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceQuotaRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceQuotaRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceQuotaRelationships(val *SpaceQuotaRelationships) *NullableSpaceQuotaRelationships { + return &NullableSpaceQuotaRelationships{value: val, isSet: true} +} + +func (v NullableSpaceQuotaRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceQuotaRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_relationships.go b/model_space_relationships.go new file mode 100644 index 0000000..6e54385 --- /dev/null +++ b/model_space_relationships.go @@ -0,0 +1,172 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceRelationships{} + +// SpaceRelationships struct for SpaceRelationships +type SpaceRelationships struct { + Organization ToOneRelationship `json:"organization,omitempty"` + Quota NullableSpaceRelationshipsQuota `json:"quota,omitempty"` +} + +// NewSpaceRelationships instantiates a new SpaceRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceRelationships() *SpaceRelationships { + this := SpaceRelationships{} + return &this +} + +// NewSpaceRelationshipsWithDefaults instantiates a new SpaceRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceRelationshipsWithDefaults() *SpaceRelationships { + this := SpaceRelationships{} + return &this +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *SpaceRelationships) GetOrganization() ToOneRelationship { + if o == nil || IsNil(o.Organization) { + var ret ToOneRelationship + return ret + } + return o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SpaceRelationships) GetOrganizationOk() (ToOneRelationship, bool) { + if o == nil || IsNil(o.Organization) { + return ToOneRelationship{}, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *SpaceRelationships) HasOrganization() bool { + if o != nil && !IsNil(o.Organization) { + return true + } + + return false +} + +// SetOrganization gets a reference to the given ToOneRelationship and assigns it to the Organization field. +func (o *SpaceRelationships) SetOrganization(v ToOneRelationship) { + o.Organization = v +} + +// GetQuota returns the Quota field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SpaceRelationships) GetQuota() SpaceRelationshipsQuota { + if o == nil || IsNil(o.Quota.Get()) { + var ret SpaceRelationshipsQuota + return ret + } + return *o.Quota.Get() +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SpaceRelationships) GetQuotaOk() (*SpaceRelationshipsQuota, bool) { + if o == nil { + return nil, false + } + return o.Quota.Get(), o.Quota.IsSet() +} + +// HasQuota returns a boolean if a field has been set. +func (o *SpaceRelationships) HasQuota() bool { + if o != nil && o.Quota.IsSet() { + return true + } + + return false +} + +// SetQuota gets a reference to the given NullableSpaceRelationshipsQuota and assigns it to the Quota field. +func (o *SpaceRelationships) SetQuota(v SpaceRelationshipsQuota) { + o.Quota.Set(&v) +} +// SetQuotaNil sets the value for Quota to be an explicit nil +func (o *SpaceRelationships) SetQuotaNil() { + o.Quota.Set(nil) +} + +// UnsetQuota ensures that no value is present for Quota, not even an explicit nil +func (o *SpaceRelationships) UnsetQuota() { + o.Quota.Unset() +} + +func (o SpaceRelationships) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Organization) { + toSerialize["organization"] = o.Organization + } + if o.Quota.IsSet() { + toSerialize["quota"] = o.Quota.Get() + } + return toSerialize, nil +} + +type NullableSpaceRelationships struct { + value *SpaceRelationships + isSet bool +} + +func (v NullableSpaceRelationships) Get() *SpaceRelationships { + return v.value +} + +func (v *NullableSpaceRelationships) Set(val *SpaceRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceRelationships(val *SpaceRelationships) *NullableSpaceRelationships { + return &NullableSpaceRelationships{value: val, isSet: true} +} + +func (v NullableSpaceRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_space_relationships_quota.go b/model_space_relationships_quota.go new file mode 100644 index 0000000..60423ff --- /dev/null +++ b/model_space_relationships_quota.go @@ -0,0 +1,127 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the SpaceRelationshipsQuota type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SpaceRelationshipsQuota{} + +// SpaceRelationshipsQuota struct for SpaceRelationshipsQuota +type SpaceRelationshipsQuota struct { + Data map[string]interface{} `json:"data,omitempty"` +} + +// NewSpaceRelationshipsQuota instantiates a new SpaceRelationshipsQuota object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSpaceRelationshipsQuota() *SpaceRelationshipsQuota { + this := SpaceRelationshipsQuota{} + return &this +} + +// NewSpaceRelationshipsQuotaWithDefaults instantiates a new SpaceRelationshipsQuota object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSpaceRelationshipsQuotaWithDefaults() *SpaceRelationshipsQuota { + this := SpaceRelationshipsQuota{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SpaceRelationshipsQuota) GetData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SpaceRelationshipsQuota) GetDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *SpaceRelationshipsQuota) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *SpaceRelationshipsQuota) SetData(v map[string]interface{}) { + o.Data = v +} + +func (o SpaceRelationshipsQuota) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SpaceRelationshipsQuota) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableSpaceRelationshipsQuota struct { + value *SpaceRelationshipsQuota + isSet bool +} + +func (v NullableSpaceRelationshipsQuota) Get() *SpaceRelationshipsQuota { + return v.value +} + +func (v *NullableSpaceRelationshipsQuota) Set(val *SpaceRelationshipsQuota) { + v.value = val + v.isSet = true +} + +func (v NullableSpaceRelationshipsQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableSpaceRelationshipsQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSpaceRelationshipsQuota(val *SpaceRelationshipsQuota) *NullableSpaceRelationshipsQuota { + return &NullableSpaceRelationshipsQuota{value: val, isSet: true} +} + +func (v NullableSpaceRelationshipsQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSpaceRelationshipsQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_stack.go b/model_stack.go new file mode 100644 index 0000000..3be9f3e --- /dev/null +++ b/model_stack.go @@ -0,0 +1,451 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Stack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Stack{} + +// Stack struct for Stack +type Stack struct { + BuildRootfsImage *string `json:"build_rootfs_image,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Default *bool `json:"default,omitempty"` + Description *string `json:"description,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *ServiceUsageEventLinks `json:"links,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + RunRootfsImage *string `json:"run_rootfs_image,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewStack instantiates a new Stack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStack() *Stack { + this := Stack{} + return &this +} + +// NewStackWithDefaults instantiates a new Stack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStackWithDefaults() *Stack { + this := Stack{} + return &this +} + +// GetBuildRootfsImage returns the BuildRootfsImage field value if set, zero value otherwise. +func (o *Stack) GetBuildRootfsImage() string { + if o == nil || IsNil(o.BuildRootfsImage) { + var ret string + return ret + } + return *o.BuildRootfsImage +} + +// GetBuildRootfsImageOk returns a tuple with the BuildRootfsImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetBuildRootfsImageOk() (*string, bool) { + if o == nil || IsNil(o.BuildRootfsImage) { + return nil, false + } + return o.BuildRootfsImage, true +} + +// HasBuildRootfsImage returns a boolean if a field has been set. +func (o *Stack) HasBuildRootfsImage() bool { + if o != nil && !IsNil(o.BuildRootfsImage) { + return true + } + + return false +} + +// SetBuildRootfsImage gets a reference to the given string and assigns it to the BuildRootfsImage field. +func (o *Stack) SetBuildRootfsImage(v string) { + o.BuildRootfsImage = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Stack) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Stack) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Stack) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDefault returns the Default field value if set, zero value otherwise. +func (o *Stack) GetDefault() bool { + if o == nil || IsNil(o.Default) { + var ret bool + return ret + } + return *o.Default +} + +// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetDefaultOk() (*bool, bool) { + if o == nil || IsNil(o.Default) { + return nil, false + } + return o.Default, true +} + +// HasDefault returns a boolean if a field has been set. +func (o *Stack) HasDefault() bool { + if o != nil && !IsNil(o.Default) { + return true + } + + return false +} + +// SetDefault gets a reference to the given bool and assigns it to the Default field. +func (o *Stack) SetDefault(v bool) { + o.Default = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Stack) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Stack) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Stack) SetDescription(v string) { + o.Description = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Stack) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Stack) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Stack) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Stack) GetLinks() ServiceUsageEventLinks { + if o == nil || IsNil(o.Links) { + var ret ServiceUsageEventLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetLinksOk() (*ServiceUsageEventLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Stack) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given ServiceUsageEventLinks and assigns it to the Links field. +func (o *Stack) SetLinks(v ServiceUsageEventLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Stack) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Stack) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *Stack) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Stack) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Stack) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Stack) SetName(v string) { + o.Name = &v +} + +// GetRunRootfsImage returns the RunRootfsImage field value if set, zero value otherwise. +func (o *Stack) GetRunRootfsImage() string { + if o == nil || IsNil(o.RunRootfsImage) { + var ret string + return ret + } + return *o.RunRootfsImage +} + +// GetRunRootfsImageOk returns a tuple with the RunRootfsImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetRunRootfsImageOk() (*string, bool) { + if o == nil || IsNil(o.RunRootfsImage) { + return nil, false + } + return o.RunRootfsImage, true +} + +// HasRunRootfsImage returns a boolean if a field has been set. +func (o *Stack) HasRunRootfsImage() bool { + if o != nil && !IsNil(o.RunRootfsImage) { + return true + } + + return false +} + +// SetRunRootfsImage gets a reference to the given string and assigns it to the RunRootfsImage field. +func (o *Stack) SetRunRootfsImage(v string) { + o.RunRootfsImage = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Stack) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Stack) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Stack) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Stack) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Stack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Stack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildRootfsImage) { + toSerialize["build_rootfs_image"] = o.BuildRootfsImage + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Default) { + toSerialize["default"] = o.Default + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.RunRootfsImage) { + toSerialize["run_rootfs_image"] = o.RunRootfsImage + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableStack struct { + value *Stack + isSet bool +} + +func (v NullableStack) Get() *Stack { + return v.value +} + +func (v *NullableStack) Set(val *Stack) { + v.value = val + v.isSet = true +} + +func (v NullableStack) IsSet() bool { + return v.isSet +} + +func (v *NullableStack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStack(val *Stack) *NullableStack { + return &NullableStack{value: val, isSet: true} +} + +func (v NullableStack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_task.go b/model_task.go new file mode 100644 index 0000000..d545ed4 --- /dev/null +++ b/model_task.go @@ -0,0 +1,631 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the Task type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Task{} + +// Task struct for Task +type Task struct { + Command *string `json:"command,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + DiskInMb *int32 `json:"disk_in_mb,omitempty"` + DropletGuid *string `json:"droplet_guid,omitempty"` + Guid *string `json:"guid,omitempty"` + Links *TaskLinks `json:"links,omitempty"` + LogRateLimitInBytesPerSecond *int32 `json:"log_rate_limit_in_bytes_per_second,omitempty"` + MemoryInMb *int32 `json:"memory_in_mb,omitempty"` + Metadata *V3AppsGuidTasksPostRequestMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Relationships *V3AppsGuidDropletsCurrentGet200ResponseRelationships `json:"relationships,omitempty"` + Result *TaskResult `json:"result,omitempty"` + SequenceId *int32 `json:"sequence_id,omitempty"` + State *string `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewTask instantiates a new Task object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTask() *Task { + this := Task{} + return &this +} + +// NewTaskWithDefaults instantiates a new Task object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskWithDefaults() *Task { + this := Task{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *Task) GetCommand() string { + if o == nil || IsNil(o.Command) { + var ret string + return ret + } + return *o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetCommandOk() (*string, bool) { + if o == nil || IsNil(o.Command) { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *Task) HasCommand() bool { + if o != nil && !IsNil(o.Command) { + return true + } + + return false +} + +// SetCommand gets a reference to the given string and assigns it to the Command field. +func (o *Task) SetCommand(v string) { + o.Command = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Task) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Task) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Task) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDiskInMb returns the DiskInMb field value if set, zero value otherwise. +func (o *Task) GetDiskInMb() int32 { + if o == nil || IsNil(o.DiskInMb) { + var ret int32 + return ret + } + return *o.DiskInMb +} + +// GetDiskInMbOk returns a tuple with the DiskInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetDiskInMbOk() (*int32, bool) { + if o == nil || IsNil(o.DiskInMb) { + return nil, false + } + return o.DiskInMb, true +} + +// HasDiskInMb returns a boolean if a field has been set. +func (o *Task) HasDiskInMb() bool { + if o != nil && !IsNil(o.DiskInMb) { + return true + } + + return false +} + +// SetDiskInMb gets a reference to the given int32 and assigns it to the DiskInMb field. +func (o *Task) SetDiskInMb(v int32) { + o.DiskInMb = &v +} + +// GetDropletGuid returns the DropletGuid field value if set, zero value otherwise. +func (o *Task) GetDropletGuid() string { + if o == nil || IsNil(o.DropletGuid) { + var ret string + return ret + } + return *o.DropletGuid +} + +// GetDropletGuidOk returns a tuple with the DropletGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetDropletGuidOk() (*string, bool) { + if o == nil || IsNil(o.DropletGuid) { + return nil, false + } + return o.DropletGuid, true +} + +// HasDropletGuid returns a boolean if a field has been set. +func (o *Task) HasDropletGuid() bool { + if o != nil && !IsNil(o.DropletGuid) { + return true + } + + return false +} + +// SetDropletGuid gets a reference to the given string and assigns it to the DropletGuid field. +func (o *Task) SetDropletGuid(v string) { + o.DropletGuid = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *Task) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *Task) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *Task) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *Task) GetLinks() TaskLinks { + if o == nil || IsNil(o.Links) { + var ret TaskLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetLinksOk() (*TaskLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *Task) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given TaskLinks and assigns it to the Links field. +func (o *Task) SetLinks(v TaskLinks) { + o.Links = &v +} + +// GetLogRateLimitInBytesPerSecond returns the LogRateLimitInBytesPerSecond field value if set, zero value otherwise. +func (o *Task) GetLogRateLimitInBytesPerSecond() int32 { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + var ret int32 + return ret + } + return *o.LogRateLimitInBytesPerSecond +} + +// GetLogRateLimitInBytesPerSecondOk returns a tuple with the LogRateLimitInBytesPerSecond field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetLogRateLimitInBytesPerSecondOk() (*int32, bool) { + if o == nil || IsNil(o.LogRateLimitInBytesPerSecond) { + return nil, false + } + return o.LogRateLimitInBytesPerSecond, true +} + +// HasLogRateLimitInBytesPerSecond returns a boolean if a field has been set. +func (o *Task) HasLogRateLimitInBytesPerSecond() bool { + if o != nil && !IsNil(o.LogRateLimitInBytesPerSecond) { + return true + } + + return false +} + +// SetLogRateLimitInBytesPerSecond gets a reference to the given int32 and assigns it to the LogRateLimitInBytesPerSecond field. +func (o *Task) SetLogRateLimitInBytesPerSecond(v int32) { + o.LogRateLimitInBytesPerSecond = &v +} + +// GetMemoryInMb returns the MemoryInMb field value if set, zero value otherwise. +func (o *Task) GetMemoryInMb() int32 { + if o == nil || IsNil(o.MemoryInMb) { + var ret int32 + return ret + } + return *o.MemoryInMb +} + +// GetMemoryInMbOk returns a tuple with the MemoryInMb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetMemoryInMbOk() (*int32, bool) { + if o == nil || IsNil(o.MemoryInMb) { + return nil, false + } + return o.MemoryInMb, true +} + +// HasMemoryInMb returns a boolean if a field has been set. +func (o *Task) HasMemoryInMb() bool { + if o != nil && !IsNil(o.MemoryInMb) { + return true + } + + return false +} + +// SetMemoryInMb gets a reference to the given int32 and assigns it to the MemoryInMb field. +func (o *Task) SetMemoryInMb(v int32) { + o.MemoryInMb = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Task) GetMetadata() V3AppsGuidTasksPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidTasksPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetMetadataOk() (*V3AppsGuidTasksPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Task) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidTasksPostRequestMetadata and assigns it to the Metadata field. +func (o *Task) SetMetadata(v V3AppsGuidTasksPostRequestMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Task) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Task) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Task) SetName(v string) { + o.Name = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *Task) GetRelationships() V3AppsGuidDropletsCurrentGet200ResponseRelationships { + if o == nil || IsNil(o.Relationships) { + var ret V3AppsGuidDropletsCurrentGet200ResponseRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetRelationshipsOk() (*V3AppsGuidDropletsCurrentGet200ResponseRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *Task) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseRelationships and assigns it to the Relationships field. +func (o *Task) SetRelationships(v V3AppsGuidDropletsCurrentGet200ResponseRelationships) { + o.Relationships = &v +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *Task) GetResult() TaskResult { + if o == nil || IsNil(o.Result) { + var ret TaskResult + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetResultOk() (*TaskResult, bool) { + if o == nil || IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *Task) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given TaskResult and assigns it to the Result field. +func (o *Task) SetResult(v TaskResult) { + o.Result = &v +} + +// GetSequenceId returns the SequenceId field value if set, zero value otherwise. +func (o *Task) GetSequenceId() int32 { + if o == nil || IsNil(o.SequenceId) { + var ret int32 + return ret + } + return *o.SequenceId +} + +// GetSequenceIdOk returns a tuple with the SequenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetSequenceIdOk() (*int32, bool) { + if o == nil || IsNil(o.SequenceId) { + return nil, false + } + return o.SequenceId, true +} + +// HasSequenceId returns a boolean if a field has been set. +func (o *Task) HasSequenceId() bool { + if o != nil && !IsNil(o.SequenceId) { + return true + } + + return false +} + +// SetSequenceId gets a reference to the given int32 and assigns it to the SequenceId field. +func (o *Task) SetSequenceId(v int32) { + o.SequenceId = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *Task) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *Task) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *Task) SetState(v string) { + o.State = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Task) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Task) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Task) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Task) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Task) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Task) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Command) { + toSerialize["command"] = o.Command + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DiskInMb) { + toSerialize["disk_in_mb"] = o.DiskInMb + } + if !IsNil(o.DropletGuid) { + toSerialize["droplet_guid"] = o.DropletGuid + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.LogRateLimitInBytesPerSecond) { + toSerialize["log_rate_limit_in_bytes_per_second"] = o.LogRateLimitInBytesPerSecond + } + if !IsNil(o.MemoryInMb) { + toSerialize["memory_in_mb"] = o.MemoryInMb + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + if !IsNil(o.SequenceId) { + toSerialize["sequence_id"] = o.SequenceId + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableTask struct { + value *Task + isSet bool +} + +func (v NullableTask) Get() *Task { + return v.value +} + +func (v *NullableTask) Set(val *Task) { + v.value = val + v.isSet = true +} + +func (v NullableTask) IsSet() bool { + return v.isSet +} + +func (v *NullableTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTask(val *Task) *NullableTask { + return &NullableTask{value: val, isSet: true} +} + +func (v NullableTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_task_links.go b/model_task_links.go new file mode 100644 index 0000000..25e0e1f --- /dev/null +++ b/model_task_links.go @@ -0,0 +1,234 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the TaskLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TaskLinks{} + +// TaskLinks struct for TaskLinks +type TaskLinks struct { + App *string `json:"app,omitempty"` + Cancel *string `json:"cancel,omitempty"` + Droplet *string `json:"droplet,omitempty"` + Self *string `json:"self,omitempty"` +} + +// NewTaskLinks instantiates a new TaskLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTaskLinks() *TaskLinks { + this := TaskLinks{} + return &this +} + +// NewTaskLinksWithDefaults instantiates a new TaskLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskLinksWithDefaults() *TaskLinks { + this := TaskLinks{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *TaskLinks) GetApp() string { + if o == nil || IsNil(o.App) { + var ret string + return ret + } + return *o.App +} + +// GetAppOk returns a tuple with the App field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskLinks) GetAppOk() (*string, bool) { + if o == nil || IsNil(o.App) { + return nil, false + } + return o.App, true +} + +// HasApp returns a boolean if a field has been set. +func (o *TaskLinks) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given string and assigns it to the App field. +func (o *TaskLinks) SetApp(v string) { + o.App = &v +} + +// GetCancel returns the Cancel field value if set, zero value otherwise. +func (o *TaskLinks) GetCancel() string { + if o == nil || IsNil(o.Cancel) { + var ret string + return ret + } + return *o.Cancel +} + +// GetCancelOk returns a tuple with the Cancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskLinks) GetCancelOk() (*string, bool) { + if o == nil || IsNil(o.Cancel) { + return nil, false + } + return o.Cancel, true +} + +// HasCancel returns a boolean if a field has been set. +func (o *TaskLinks) HasCancel() bool { + if o != nil && !IsNil(o.Cancel) { + return true + } + + return false +} + +// SetCancel gets a reference to the given string and assigns it to the Cancel field. +func (o *TaskLinks) SetCancel(v string) { + o.Cancel = &v +} + +// GetDroplet returns the Droplet field value if set, zero value otherwise. +func (o *TaskLinks) GetDroplet() string { + if o == nil || IsNil(o.Droplet) { + var ret string + return ret + } + return *o.Droplet +} + +// GetDropletOk returns a tuple with the Droplet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskLinks) GetDropletOk() (*string, bool) { + if o == nil || IsNil(o.Droplet) { + return nil, false + } + return o.Droplet, true +} + +// HasDroplet returns a boolean if a field has been set. +func (o *TaskLinks) HasDroplet() bool { + if o != nil && !IsNil(o.Droplet) { + return true + } + + return false +} + +// SetDroplet gets a reference to the given string and assigns it to the Droplet field. +func (o *TaskLinks) SetDroplet(v string) { + o.Droplet = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *TaskLinks) GetSelf() string { + if o == nil || IsNil(o.Self) { + var ret string + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskLinks) GetSelfOk() (*string, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *TaskLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given string and assigns it to the Self field. +func (o *TaskLinks) SetSelf(v string) { + o.Self = &v +} + +func (o TaskLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TaskLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Cancel) { + toSerialize["cancel"] = o.Cancel + } + if !IsNil(o.Droplet) { + toSerialize["droplet"] = o.Droplet + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableTaskLinks struct { + value *TaskLinks + isSet bool +} + +func (v NullableTaskLinks) Get() *TaskLinks { + return v.value +} + +func (v *NullableTaskLinks) Set(val *TaskLinks) { + v.value = val + v.isSet = true +} + +func (v NullableTaskLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableTaskLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTaskLinks(val *TaskLinks) *NullableTaskLinks { + return &NullableTaskLinks{value: val, isSet: true} +} + +func (v NullableTaskLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTaskLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_task_result.go b/model_task_result.go new file mode 100644 index 0000000..5188aa7 --- /dev/null +++ b/model_task_result.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the TaskResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TaskResult{} + +// TaskResult struct for TaskResult +type TaskResult struct { + FailureReason *string `json:"failure_reason,omitempty"` +} + +// NewTaskResult instantiates a new TaskResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTaskResult() *TaskResult { + this := TaskResult{} + return &this +} + +// NewTaskResultWithDefaults instantiates a new TaskResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskResultWithDefaults() *TaskResult { + this := TaskResult{} + return &this +} + +// GetFailureReason returns the FailureReason field value if set, zero value otherwise. +func (o *TaskResult) GetFailureReason() string { + if o == nil || IsNil(o.FailureReason) { + var ret string + return ret + } + return *o.FailureReason +} + +// GetFailureReasonOk returns a tuple with the FailureReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskResult) GetFailureReasonOk() (*string, bool) { + if o == nil || IsNil(o.FailureReason) { + return nil, false + } + return o.FailureReason, true +} + +// HasFailureReason returns a boolean if a field has been set. +func (o *TaskResult) HasFailureReason() bool { + if o != nil && !IsNil(o.FailureReason) { + return true + } + + return false +} + +// SetFailureReason gets a reference to the given string and assigns it to the FailureReason field. +func (o *TaskResult) SetFailureReason(v string) { + o.FailureReason = &v +} + +func (o TaskResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TaskResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FailureReason) { + toSerialize["failure_reason"] = o.FailureReason + } + return toSerialize, nil +} + +type NullableTaskResult struct { + value *TaskResult + isSet bool +} + +func (v NullableTaskResult) Get() *TaskResult { + return v.value +} + +func (v *NullableTaskResult) Set(val *TaskResult) { + v.value = val + v.isSet = true +} + +func (v NullableTaskResult) IsSet() bool { + return v.isSet +} + +func (v *NullableTaskResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTaskResult(val *TaskResult) *NullableTaskResult { + return &NullableTaskResult{value: val, isSet: true} +} + +func (v NullableTaskResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTaskResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_to_one_relationship.go b/model_to_one_relationship.go new file mode 100644 index 0000000..9baf241 --- /dev/null +++ b/model_to_one_relationship.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the ToOneRelationship type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ToOneRelationship{} + +// ToOneRelationship struct for ToOneRelationship +type ToOneRelationship struct { + Data *V3AppsPostRequestRelationshipsSpaceData `json:"data,omitempty"` +} + +// NewToOneRelationship instantiates a new ToOneRelationship object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewToOneRelationship() *ToOneRelationship { + this := ToOneRelationship{} + return &this +} + +// NewToOneRelationshipWithDefaults instantiates a new ToOneRelationship object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewToOneRelationshipWithDefaults() *ToOneRelationship { + this := ToOneRelationship{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ToOneRelationship) GetData() V3AppsPostRequestRelationshipsSpaceData { + if o == nil || IsNil(o.Data) { + var ret V3AppsPostRequestRelationshipsSpaceData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ToOneRelationship) GetDataOk() (*V3AppsPostRequestRelationshipsSpaceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ToOneRelationship) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V3AppsPostRequestRelationshipsSpaceData and assigns it to the Data field. +func (o *ToOneRelationship) SetData(v V3AppsPostRequestRelationshipsSpaceData) { + o.Data = &v +} + +func (o ToOneRelationship) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ToOneRelationship) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableToOneRelationship struct { + value *ToOneRelationship + isSet bool +} + +func (v NullableToOneRelationship) Get() *ToOneRelationship { + return v.value +} + +func (v *NullableToOneRelationship) Set(val *ToOneRelationship) { + v.value = val + v.isSet = true +} + +func (v NullableToOneRelationship) IsSet() bool { + return v.isSet +} + +func (v *NullableToOneRelationship) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableToOneRelationship(val *ToOneRelationship) *NullableToOneRelationship { + return &NullableToOneRelationship{value: val, isSet: true} +} + +func (v NullableToOneRelationship) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableToOneRelationship) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_organization_quota_request.go b/model_update_organization_quota_request.go new file mode 100644 index 0000000..3bd0822 --- /dev/null +++ b/model_update_organization_quota_request.go @@ -0,0 +1,271 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UpdateOrganizationQuotaRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateOrganizationQuotaRequest{} + +// UpdateOrganizationQuotaRequest struct for UpdateOrganizationQuotaRequest +type UpdateOrganizationQuotaRequest struct { + Apps *AppsQuota `json:"apps,omitempty"` + Domains *DomainsQuota `json:"domains,omitempty"` + // Name of the quota + Name *string `json:"name,omitempty"` + Routes *RoutesQuota `json:"routes,omitempty"` + Services *ServicesQuota `json:"services,omitempty"` +} + +// NewUpdateOrganizationQuotaRequest instantiates a new UpdateOrganizationQuotaRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateOrganizationQuotaRequest() *UpdateOrganizationQuotaRequest { + this := UpdateOrganizationQuotaRequest{} + return &this +} + +// NewUpdateOrganizationQuotaRequestWithDefaults instantiates a new UpdateOrganizationQuotaRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateOrganizationQuotaRequestWithDefaults() *UpdateOrganizationQuotaRequest { + this := UpdateOrganizationQuotaRequest{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *UpdateOrganizationQuotaRequest) GetApps() AppsQuota { + if o == nil || IsNil(o.Apps) { + var ret AppsQuota + return ret + } + return *o.Apps +} + +// GetAppsOk returns a tuple with the Apps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationQuotaRequest) GetAppsOk() (*AppsQuota, bool) { + if o == nil || IsNil(o.Apps) { + return nil, false + } + return o.Apps, true +} + +// HasApps returns a boolean if a field has been set. +func (o *UpdateOrganizationQuotaRequest) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given AppsQuota and assigns it to the Apps field. +func (o *UpdateOrganizationQuotaRequest) SetApps(v AppsQuota) { + o.Apps = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *UpdateOrganizationQuotaRequest) GetDomains() DomainsQuota { + if o == nil || IsNil(o.Domains) { + var ret DomainsQuota + return ret + } + return *o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationQuotaRequest) GetDomainsOk() (*DomainsQuota, bool) { + if o == nil || IsNil(o.Domains) { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *UpdateOrganizationQuotaRequest) HasDomains() bool { + if o != nil && !IsNil(o.Domains) { + return true + } + + return false +} + +// SetDomains gets a reference to the given DomainsQuota and assigns it to the Domains field. +func (o *UpdateOrganizationQuotaRequest) SetDomains(v DomainsQuota) { + o.Domains = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateOrganizationQuotaRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationQuotaRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateOrganizationQuotaRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateOrganizationQuotaRequest) SetName(v string) { + o.Name = &v +} + +// GetRoutes returns the Routes field value if set, zero value otherwise. +func (o *UpdateOrganizationQuotaRequest) GetRoutes() RoutesQuota { + if o == nil || IsNil(o.Routes) { + var ret RoutesQuota + return ret + } + return *o.Routes +} + +// GetRoutesOk returns a tuple with the Routes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationQuotaRequest) GetRoutesOk() (*RoutesQuota, bool) { + if o == nil || IsNil(o.Routes) { + return nil, false + } + return o.Routes, true +} + +// HasRoutes returns a boolean if a field has been set. +func (o *UpdateOrganizationQuotaRequest) HasRoutes() bool { + if o != nil && !IsNil(o.Routes) { + return true + } + + return false +} + +// SetRoutes gets a reference to the given RoutesQuota and assigns it to the Routes field. +func (o *UpdateOrganizationQuotaRequest) SetRoutes(v RoutesQuota) { + o.Routes = &v +} + +// GetServices returns the Services field value if set, zero value otherwise. +func (o *UpdateOrganizationQuotaRequest) GetServices() ServicesQuota { + if o == nil || IsNil(o.Services) { + var ret ServicesQuota + return ret + } + return *o.Services +} + +// GetServicesOk returns a tuple with the Services field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationQuotaRequest) GetServicesOk() (*ServicesQuota, bool) { + if o == nil || IsNil(o.Services) { + return nil, false + } + return o.Services, true +} + +// HasServices returns a boolean if a field has been set. +func (o *UpdateOrganizationQuotaRequest) HasServices() bool { + if o != nil && !IsNil(o.Services) { + return true + } + + return false +} + +// SetServices gets a reference to the given ServicesQuota and assigns it to the Services field. +func (o *UpdateOrganizationQuotaRequest) SetServices(v ServicesQuota) { + o.Services = &v +} + +func (o UpdateOrganizationQuotaRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateOrganizationQuotaRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.Domains) { + toSerialize["domains"] = o.Domains + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Routes) { + toSerialize["routes"] = o.Routes + } + if !IsNil(o.Services) { + toSerialize["services"] = o.Services + } + return toSerialize, nil +} + +type NullableUpdateOrganizationQuotaRequest struct { + value *UpdateOrganizationQuotaRequest + isSet bool +} + +func (v NullableUpdateOrganizationQuotaRequest) Get() *UpdateOrganizationQuotaRequest { + return v.value +} + +func (v *NullableUpdateOrganizationQuotaRequest) Set(val *UpdateOrganizationQuotaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateOrganizationQuotaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateOrganizationQuotaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateOrganizationQuotaRequest(val *UpdateOrganizationQuotaRequest) *NullableUpdateOrganizationQuotaRequest { + return &NullableUpdateOrganizationQuotaRequest{value: val, isSet: true} +} + +func (v NullableUpdateOrganizationQuotaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateOrganizationQuotaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_organization_request.go b/model_update_organization_request.go new file mode 100644 index 0000000..9fe7deb --- /dev/null +++ b/model_update_organization_request.go @@ -0,0 +1,198 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UpdateOrganizationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateOrganizationRequest{} + +// UpdateOrganizationRequest struct for UpdateOrganizationRequest +type UpdateOrganizationRequest struct { + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Suspended *bool `json:"suspended,omitempty"` +} + +// NewUpdateOrganizationRequest instantiates a new UpdateOrganizationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateOrganizationRequest() *UpdateOrganizationRequest { + this := UpdateOrganizationRequest{} + return &this +} + +// NewUpdateOrganizationRequestWithDefaults instantiates a new UpdateOrganizationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateOrganizationRequestWithDefaults() *UpdateOrganizationRequest { + this := UpdateOrganizationRequest{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UpdateOrganizationRequest) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationRequest) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UpdateOrganizationRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *UpdateOrganizationRequest) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateOrganizationRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateOrganizationRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateOrganizationRequest) SetName(v string) { + o.Name = &v +} + +// GetSuspended returns the Suspended field value if set, zero value otherwise. +func (o *UpdateOrganizationRequest) GetSuspended() bool { + if o == nil || IsNil(o.Suspended) { + var ret bool + return ret + } + return *o.Suspended +} + +// GetSuspendedOk returns a tuple with the Suspended field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateOrganizationRequest) GetSuspendedOk() (*bool, bool) { + if o == nil || IsNil(o.Suspended) { + return nil, false + } + return o.Suspended, true +} + +// HasSuspended returns a boolean if a field has been set. +func (o *UpdateOrganizationRequest) HasSuspended() bool { + if o != nil && !IsNil(o.Suspended) { + return true + } + + return false +} + +// SetSuspended gets a reference to the given bool and assigns it to the Suspended field. +func (o *UpdateOrganizationRequest) SetSuspended(v bool) { + o.Suspended = &v +} + +func (o UpdateOrganizationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateOrganizationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Suspended) { + toSerialize["suspended"] = o.Suspended + } + return toSerialize, nil +} + +type NullableUpdateOrganizationRequest struct { + value *UpdateOrganizationRequest + isSet bool +} + +func (v NullableUpdateOrganizationRequest) Get() *UpdateOrganizationRequest { + return v.value +} + +func (v *NullableUpdateOrganizationRequest) Set(val *UpdateOrganizationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateOrganizationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateOrganizationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateOrganizationRequest(val *UpdateOrganizationRequest) *NullableUpdateOrganizationRequest { + return &NullableUpdateOrganizationRequest{value: val, isSet: true} +} + +func (v NullableUpdateOrganizationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateOrganizationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_usage_summary.go b/model_usage_summary.go new file mode 100644 index 0000000..b9bfbc3 --- /dev/null +++ b/model_usage_summary.go @@ -0,0 +1,162 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UsageSummary type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UsageSummary{} + +// UsageSummary struct for UsageSummary +type UsageSummary struct { + Links *V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks `json:"links,omitempty"` + UsageSummary *[]map[string]interface{} `json:"usage_summary,omitempty"` +} + +// NewUsageSummary instantiates a new UsageSummary object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUsageSummary() *UsageSummary { + this := UsageSummary{} + return &this +} + +// NewUsageSummaryWithDefaults instantiates a new UsageSummary object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUsageSummaryWithDefaults() *UsageSummary { + this := UsageSummary{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *UsageSummary) GetLinks() V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks { + if o == nil || IsNil(o.Links) { + var ret V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummary) GetLinksOk() (*V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *UsageSummary) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks and assigns it to the Links field. +func (o *UsageSummary) SetLinks(v V3IsolationSegmentsGuidRelationshipsSpacesGet200ResponseLinks) { + o.Links = &v +} + +// GetUsageSummary returns the UsageSummary field value if set, zero value otherwise. +func (o *UsageSummary) GetUsageSummary() []map[string]interface{} { + if o == nil || IsNil(o.UsageSummary) { + var ret []map[string]interface{} + return ret + } + return *o.UsageSummary +} + +// GetUsageSummaryOk returns a tuple with the UsageSummary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummary) GetUsageSummaryOk() (*[]map[string]interface{}, bool) { + if o == nil || IsNil(o.UsageSummary) { + return nil, false + } + return o.UsageSummary, true +} + +// HasUsageSummary returns a boolean if a field has been set. +func (o *UsageSummary) HasUsageSummary() bool { + if o != nil && !IsNil(o.UsageSummary) { + return true + } + + return false +} + +// SetUsageSummary gets a reference to the given []map[string]interface{} and assigns it to the UsageSummary field. +func (o *UsageSummary) SetUsageSummary(v []map[string]interface{}) { + o.UsageSummary = &v +} + +func (o UsageSummary) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UsageSummary) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.UsageSummary) { + toSerialize["usage_summary"] = o.UsageSummary + } + return toSerialize, nil +} + +type NullableUsageSummary struct { + value *UsageSummary + isSet bool +} + +func (v NullableUsageSummary) Get() *UsageSummary { + return v.value +} + +func (v *NullableUsageSummary) Set(val *UsageSummary) { + v.value = val + v.isSet = true +} + +func (v NullableUsageSummary) IsSet() bool { + return v.isSet +} + +func (v *NullableUsageSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUsageSummary(val *UsageSummary) *NullableUsageSummary { + return &NullableUsageSummary{value: val, isSet: true} +} + +func (v NullableUsageSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUsageSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_user.go b/model_user.go new file mode 100644 index 0000000..16d913a --- /dev/null +++ b/model_user.go @@ -0,0 +1,405 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" + "time" +) + +// checks if the User type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &User{} + +// User struct for User +type User struct { + // The time with zone when the object was created + CreatedAt *time.Time `json:"created_at,omitempty"` + // Unique identifier for the user + Guid *string `json:"guid,omitempty"` + Links *UserLinks `json:"links,omitempty"` + Metadata *V3UsersPostRequestMetadata `json:"metadata,omitempty"` + // The identity provider for the UAA user; will be null for UAA clients + Origin NullableString `json:"origin,omitempty"` + // The name displayed for the user; for UAA users, this is the same as the username. For UAA clients, this is the UAA client ID + PresentationName *string `json:"presentation_name,omitempty"` + // The time with zone when the object was last updated + UpdatedAt *time.Time `json:"updated_at,omitempty"` + // The name registered in UAA; will be null for UAA clients and non-UAA users + Username NullableString `json:"username,omitempty"` +} + +// NewUser instantiates a new User object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUser() *User { + this := User{} + return &this +} + +// NewUserWithDefaults instantiates a new User object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserWithDefaults() *User { + this := User{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *User) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *User) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *User) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *User) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *User) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *User) SetGuid(v string) { + o.Guid = &v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *User) GetLinks() UserLinks { + if o == nil || IsNil(o.Links) { + var ret UserLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetLinksOk() (*UserLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *User) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given UserLinks and assigns it to the Links field. +func (o *User) SetLinks(v UserLinks) { + o.Links = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *User) GetMetadata() V3UsersPostRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3UsersPostRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetMetadataOk() (*V3UsersPostRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *User) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3UsersPostRequestMetadata and assigns it to the Metadata field. +func (o *User) SetMetadata(v V3UsersPostRequestMetadata) { + o.Metadata = &v +} + +// GetOrigin returns the Origin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetOrigin() string { + if o == nil || IsNil(o.Origin.Get()) { + var ret string + return ret + } + return *o.Origin.Get() +} + +// GetOriginOk returns a tuple with the Origin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetOriginOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Origin.Get(), o.Origin.IsSet() +} + +// HasOrigin returns a boolean if a field has been set. +func (o *User) HasOrigin() bool { + if o != nil && o.Origin.IsSet() { + return true + } + + return false +} + +// SetOrigin gets a reference to the given NullableString and assigns it to the Origin field. +func (o *User) SetOrigin(v string) { + o.Origin.Set(&v) +} +// SetOriginNil sets the value for Origin to be an explicit nil +func (o *User) SetOriginNil() { + o.Origin.Set(nil) +} + +// UnsetOrigin ensures that no value is present for Origin, not even an explicit nil +func (o *User) UnsetOrigin() { + o.Origin.Unset() +} + +// GetPresentationName returns the PresentationName field value if set, zero value otherwise. +func (o *User) GetPresentationName() string { + if o == nil || IsNil(o.PresentationName) { + var ret string + return ret + } + return *o.PresentationName +} + +// GetPresentationNameOk returns a tuple with the PresentationName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetPresentationNameOk() (*string, bool) { + if o == nil || IsNil(o.PresentationName) { + return nil, false + } + return o.PresentationName, true +} + +// HasPresentationName returns a boolean if a field has been set. +func (o *User) HasPresentationName() bool { + if o != nil && !IsNil(o.PresentationName) { + return true + } + + return false +} + +// SetPresentationName gets a reference to the given string and assigns it to the PresentationName field. +func (o *User) SetPresentationName(v string) { + o.PresentationName = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *User) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *User) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *User) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetUsername() string { + if o == nil || IsNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *User) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *User) SetUsername(v string) { + o.Username.Set(&v) +} +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *User) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *User) UnsetUsername() { + o.Username.Unset() +} + +func (o User) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o User) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if o.Origin.IsSet() { + toSerialize["origin"] = o.Origin.Get() + } + if !IsNil(o.PresentationName) { + toSerialize["presentation_name"] = o.PresentationName + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Username.IsSet() { + toSerialize["username"] = o.Username.Get() + } + return toSerialize, nil +} + +type NullableUser struct { + value *User + isSet bool +} + +func (v NullableUser) Get() *User { + return v.value +} + +func (v *NullableUser) Set(val *User) { + v.value = val + v.isSet = true +} + +func (v NullableUser) IsSet() bool { + return v.isSet +} + +func (v *NullableUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUser(val *User) *NullableUser { + return &NullableUser{value: val, isSet: true} +} + +func (v NullableUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_user_links.go b/model_user_links.go new file mode 100644 index 0000000..4cd6d5b --- /dev/null +++ b/model_user_links.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UserLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserLinks{} + +// UserLinks struct for UserLinks +type UserLinks struct { + Self *UserLinksSelf `json:"self,omitempty"` +} + +// NewUserLinks instantiates a new UserLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserLinks() *UserLinks { + this := UserLinks{} + return &this +} + +// NewUserLinksWithDefaults instantiates a new UserLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserLinksWithDefaults() *UserLinks { + this := UserLinks{} + return &this +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *UserLinks) GetSelf() UserLinksSelf { + if o == nil || IsNil(o.Self) { + var ret UserLinksSelf + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserLinks) GetSelfOk() (*UserLinksSelf, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *UserLinks) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given UserLinksSelf and assigns it to the Self field. +func (o *UserLinks) SetSelf(v UserLinksSelf) { + o.Self = &v +} + +func (o UserLinks) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + return toSerialize, nil +} + +type NullableUserLinks struct { + value *UserLinks + isSet bool +} + +func (v NullableUserLinks) Get() *UserLinks { + return v.value +} + +func (v *NullableUserLinks) Set(val *UserLinks) { + v.value = val + v.isSet = true +} + +func (v NullableUserLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableUserLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserLinks(val *UserLinks) *NullableUserLinks { + return &NullableUserLinks{value: val, isSet: true} +} + +func (v NullableUserLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_user_links_self.go b/model_user_links_self.go new file mode 100644 index 0000000..c7e7fdf --- /dev/null +++ b/model_user_links_self.go @@ -0,0 +1,126 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UserLinksSelf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserLinksSelf{} + +// UserLinksSelf struct for UserLinksSelf +type UserLinksSelf struct { + Href *string `json:"href,omitempty"` +} + +// NewUserLinksSelf instantiates a new UserLinksSelf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserLinksSelf() *UserLinksSelf { + this := UserLinksSelf{} + return &this +} + +// NewUserLinksSelfWithDefaults instantiates a new UserLinksSelf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserLinksSelfWithDefaults() *UserLinksSelf { + this := UserLinksSelf{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *UserLinksSelf) GetHref() string { + if o == nil || IsNil(o.Href) { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserLinksSelf) GetHrefOk() (*string, bool) { + if o == nil || IsNil(o.Href) { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *UserLinksSelf) HasHref() bool { + if o != nil && !IsNil(o.Href) { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *UserLinksSelf) SetHref(v string) { + o.Href = &v +} + +func (o UserLinksSelf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserLinksSelf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Href) { + toSerialize["href"] = o.Href + } + return toSerialize, nil +} + +type NullableUserLinksSelf struct { + value *UserLinksSelf + isSet bool +} + +func (v NullableUserLinksSelf) Get() *UserLinksSelf { + return v.value +} + +func (v *NullableUserLinksSelf) Set(val *UserLinksSelf) { + v.value = val + v.isSet = true +} + +func (v NullableUserLinksSelf) IsSet() bool { + return v.isSet +} + +func (v *NullableUserLinksSelf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserLinksSelf(val *UserLinksSelf) *NullableUserLinksSelf { + return &NullableUserLinksSelf{value: val, isSet: true} +} + +func (v NullableUserLinksSelf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserLinksSelf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_user_provided_service_instance_update.go b/model_user_provided_service_instance_update.go new file mode 100644 index 0000000..914e6de --- /dev/null +++ b/model_user_provided_service_instance_update.go @@ -0,0 +1,306 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "encoding/json" +) + +// checks if the UserProvidedServiceInstanceUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserProvidedServiceInstanceUpdate{} + +// UserProvidedServiceInstanceUpdate struct for UserProvidedServiceInstanceUpdate +type UserProvidedServiceInstanceUpdate struct { + Credentials map[string]interface{} `json:"credentials,omitempty"` + Metadata *V3AppsGuidDropletsCurrentGet200ResponseMetadata `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + RouteServiceUrl *string `json:"route_service_url,omitempty"` + SyslogDrainUrl *string `json:"syslog_drain_url,omitempty"` + Tags []string `json:"tags,omitempty"` +} + +// NewUserProvidedServiceInstanceUpdate instantiates a new UserProvidedServiceInstanceUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserProvidedServiceInstanceUpdate() *UserProvidedServiceInstanceUpdate { + this := UserProvidedServiceInstanceUpdate{} + return &this +} + +// NewUserProvidedServiceInstanceUpdateWithDefaults instantiates a new UserProvidedServiceInstanceUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserProvidedServiceInstanceUpdateWithDefaults() *UserProvidedServiceInstanceUpdate { + this := UserProvidedServiceInstanceUpdate{} + return &this +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetCredentials() map[string]interface{} { + if o == nil || IsNil(o.Credentials) { + var ret map[string]interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetCredentialsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return map[string]interface{}{}, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given map[string]interface{} and assigns it to the Credentials field. +func (o *UserProvidedServiceInstanceUpdate) SetCredentials(v map[string]interface{}) { + o.Credentials = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetMetadata() V3AppsGuidDropletsCurrentGet200ResponseMetadata { + if o == nil || IsNil(o.Metadata) { + var ret V3AppsGuidDropletsCurrentGet200ResponseMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetMetadataOk() (*V3AppsGuidDropletsCurrentGet200ResponseMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V3AppsGuidDropletsCurrentGet200ResponseMetadata and assigns it to the Metadata field. +func (o *UserProvidedServiceInstanceUpdate) SetMetadata(v V3AppsGuidDropletsCurrentGet200ResponseMetadata) { + o.Metadata = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UserProvidedServiceInstanceUpdate) SetName(v string) { + o.Name = &v +} + +// GetRouteServiceUrl returns the RouteServiceUrl field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetRouteServiceUrl() string { + if o == nil || IsNil(o.RouteServiceUrl) { + var ret string + return ret + } + return *o.RouteServiceUrl +} + +// GetRouteServiceUrlOk returns a tuple with the RouteServiceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetRouteServiceUrlOk() (*string, bool) { + if o == nil || IsNil(o.RouteServiceUrl) { + return nil, false + } + return o.RouteServiceUrl, true +} + +// HasRouteServiceUrl returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasRouteServiceUrl() bool { + if o != nil && !IsNil(o.RouteServiceUrl) { + return true + } + + return false +} + +// SetRouteServiceUrl gets a reference to the given string and assigns it to the RouteServiceUrl field. +func (o *UserProvidedServiceInstanceUpdate) SetRouteServiceUrl(v string) { + o.RouteServiceUrl = &v +} + +// GetSyslogDrainUrl returns the SyslogDrainUrl field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetSyslogDrainUrl() string { + if o == nil || IsNil(o.SyslogDrainUrl) { + var ret string + return ret + } + return *o.SyslogDrainUrl +} + +// GetSyslogDrainUrlOk returns a tuple with the SyslogDrainUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetSyslogDrainUrlOk() (*string, bool) { + if o == nil || IsNil(o.SyslogDrainUrl) { + return nil, false + } + return o.SyslogDrainUrl, true +} + +// HasSyslogDrainUrl returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasSyslogDrainUrl() bool { + if o != nil && !IsNil(o.SyslogDrainUrl) { + return true + } + + return false +} + +// SetSyslogDrainUrl gets a reference to the given string and assigns it to the SyslogDrainUrl field. +func (o *UserProvidedServiceInstanceUpdate) SetSyslogDrainUrl(v string) { + o.SyslogDrainUrl = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *UserProvidedServiceInstanceUpdate) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserProvidedServiceInstanceUpdate) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *UserProvidedServiceInstanceUpdate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *UserProvidedServiceInstanceUpdate) SetTags(v []string) { + o.Tags = v +} + +func (o UserProvidedServiceInstanceUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserProvidedServiceInstanceUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.RouteServiceUrl) { + toSerialize["route_service_url"] = o.RouteServiceUrl + } + if !IsNil(o.SyslogDrainUrl) { + toSerialize["syslog_drain_url"] = o.SyslogDrainUrl + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableUserProvidedServiceInstanceUpdate struct { + value *UserProvidedServiceInstanceUpdate + isSet bool +} + +func (v NullableUserProvidedServiceInstanceUpdate) Get() *UserProvidedServiceInstanceUpdate { + return v.value +} + +func (v *NullableUserProvidedServiceInstanceUpdate) Set(val *UserProvidedServiceInstanceUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableUserProvidedServiceInstanceUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableUserProvidedServiceInstanceUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserProvidedServiceInstanceUpdate(val *UserProvidedServiceInstanceUpdate) *NullableUserProvidedServiceInstanceUpdate { + return &NullableUserProvidedServiceInstanceUpdate{value: val, isSet: true} +} + +func (v NullableUserProvidedServiceInstanceUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserProvidedServiceInstanceUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/response.go b/response.go new file mode 100644 index 0000000..6f05175 --- /dev/null +++ b/response.go @@ -0,0 +1,47 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/test/api_app_usage_events_test.go b/test/api_app_usage_events_test.go new file mode 100644 index 0000000..0e3c89b --- /dev/null +++ b/test/api_app_usage_events_test.go @@ -0,0 +1,63 @@ +/* +Cloud Controller API + +Testing AppUsageEventsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package capiclient + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func Test_capiclient_AppUsageEventsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AppUsageEventsAPIService V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsActionsDestructivelyPurgeAllAndReseedPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppUsageEventsAPIService V3AppUsageEventsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppUsageEventsAPIService V3AppUsageEventsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.AppUsageEventsAPI.V3AppUsageEventsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_audit_events_test.go b/test/api_audit_events_test.go new file mode 100644 index 0000000..3e06d61 --- /dev/null +++ b/test/api_audit_events_test.go @@ -0,0 +1,51 @@ +/* +Cloud Controller API + +Testing AuditEventsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package capiclient + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func Test_capiclient_AuditEventsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AuditEventsAPIService V3AuditEventsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuditEventsAPI.V3AuditEventsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuditEventsAPIService V3AuditEventsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.AuditEventsAPI.V3AuditEventsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_default_test.go b/test/api_default_test.go new file mode 100644 index 0000000..247bbed --- /dev/null +++ b/test/api_default_test.go @@ -0,0 +1,2438 @@ +/* +Cloud Controller API + +Testing DefaultAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package capiclient + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func Test_capiclient_DefaultAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultAPIService ApplyOrganizationQuotaToOrganizations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var quotaGuid string + + resp, httpRes, err := apiClient.DefaultAPI.ApplyOrganizationQuotaToOrganizations(context.Background(), quotaGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService AssignDefaultIsolationSegment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.AssignDefaultIsolationSegment(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService CreateOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.CreateOrganization(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService CreateOrganizationQuota", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.CreateOrganizationQuota(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService DeleteOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.DeleteOrganization(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService DeleteOrganizationQuota", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.DeleteOrganizationQuota(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService GetDefaultDomain", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.GetDefaultDomain(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService GetDefaultIsolationSegment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.GetDefaultIsolationSegment(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService GetOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.GetOrganization(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService GetOrganizationQuota", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.GetOrganizationQuota(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService GetUsageSummary", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.GetUsageSummary(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService ListOrganizationQuotas", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.ListOrganizationQuotas(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService ListOrganizations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.ListOrganizations(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService ListUsersForOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.ListUsersForOrganization(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService RootGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.RootGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService UpdateOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.UpdateOrganization(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService UpdateOrganizationQuota", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.UpdateOrganizationQuota(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AdminActionsClearBuildpackCachePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3AdminActionsClearBuildpackCachePost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidActionsClearBuildpackCachePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidActionsClearBuildpackCachePost(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidActionsRestartPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidActionsRestartPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidActionsStartPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidActionsStartPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidActionsStopPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidActionsStopPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidBuildsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidBuildsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidDropletsCurrentGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidDropletsCurrentGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidDropletsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidDropletsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidEnvGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidEnvGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidEnvironmentVariablesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidEnvironmentVariablesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidEnvironmentVariablesPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidEnvironmentVariablesPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidFeaturesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidFeaturesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidFeaturesNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var name string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidFeaturesNameGet(context.Background(), guid, name).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidFeaturesNamePatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var name string + + httpRes, err := apiClient.DefaultAPI.V3AppsGuidFeaturesNamePatch(context.Background(), guid, name).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidPermissionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidPermissionsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidProcessesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidProcessesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidRelationshipsCurrentDropletGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidRelationshipsCurrentDropletGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidRevisionsDeployedGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidRevisionsDeployedGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidRevisionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidRevisionsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidRoutesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidRoutesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidSidecarsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidSidecarsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidSidecarsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidSidecarsPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidSshEnabledGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidSshEnabledGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsGuidTasksPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsGuidTasksPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3AppsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3AppsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildpacksGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3BuildpacksGet(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildpacksGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3BuildpacksGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildpacksGuidUploadPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3BuildpacksGuidUploadPost(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildpacksPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3BuildpacksPost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3BuildsGet(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3BuildsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3BuildsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3BuildsPost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DeploymentsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3DeploymentsGet(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DeploymentsGuidActionsCancelPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3DeploymentsGuidActionsCancelPost(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DeploymentsGuidActionsContinuePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3DeploymentsGuidActionsContinuePost(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DeploymentsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3DeploymentsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DeploymentsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3DeploymentsPost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DropletsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3DropletsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DropletsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3DropletsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3DropletsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3DropletsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3EnvironmentVariableGroupsNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3EnvironmentVariableGroupsNameGet(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3EnvironmentVariableGroupsNamePatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3EnvironmentVariableGroupsNamePatch(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3FeatureFlagsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3FeatureFlagsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3FeatureFlagsNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3FeatureFlagsNameGet(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3FeatureFlagsNamePatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3FeatureFlagsNamePatch(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3Get", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3Get(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3InfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3InfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3InfoUsageSummaryGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3InfoUsageSummaryGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidRelationshipsOrganizationsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var orgGuid string + + httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsOrgGuidDelete(context.Background(), guid, orgGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidRelationshipsOrganizationsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsOrganizationsPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsGuidRelationshipsSpacesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsGuidRelationshipsSpacesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3IsolationSegmentsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3IsolationSegmentsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGuidDropletsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGuidDropletsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesGuidUploadPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesGuidUploadPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3PackagesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3PackagesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ProcessesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGuidActionsScalePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ProcessesGuidActionsScalePost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGuidInstancesIndexDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var index int32 + + httpRes, err := apiClient.DefaultAPI.V3ProcessesGuidInstancesIndexDelete(context.Background(), guid, index).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ProcessesGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGuidSidecarsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ProcessesGuidSidecarsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ProcessesGuidStatsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ProcessesGuidStatsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ResourceMatchesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ResourceMatchesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RevisionsGuidEnvironmentVariablesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3RevisionsGuidEnvironmentVariablesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RevisionsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3RevisionsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3RolesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RolesGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3RolesGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RolesGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3RolesGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RolesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3RolesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RoutesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3RoutesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RoutesGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3RoutesGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3RoutesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3RoutesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SecurityGroupsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SecurityGroupsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SecurityGroupsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3SecurityGroupsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SecurityGroupsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SecurityGroupsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SecurityGroupsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SecurityGroupsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SecurityGroupsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SecurityGroupsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceBrokersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceBrokersGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceBrokersGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3ServiceBrokersGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceBrokersGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceBrokersGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceBrokersGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceBrokersGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceBrokersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceBrokersPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsGuidDetailsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidDetailsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsGuidParametersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidParametersGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceCredentialBindingsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceCredentialBindingsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGuidCredentialsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGuidCredentialsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGuidRelationshipsSharedSpacesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var spaceGuid string + + httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesSpaceGuidDelete(context.Background(), guid, spaceGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceInstancesGuidRelationshipsSharedSpacesUsageSummaryGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceOfferingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceOfferingsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceOfferingsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceOfferingsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceOfferingsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceOfferingsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceOfferingsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceOfferingsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidVisibilityGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidVisibilityOrganizationGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var organizationGuid string + + httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityOrganizationGuidDelete(context.Background(), guid, organizationGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidVisibilityPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansGuidVisibilityPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansGuidVisibilityPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServicePlansPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServicePlansPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsGuidParametersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidParametersGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceRouteBindingsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceRouteBindingsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceUsageEventsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceUsageEventsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceUsageEventsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3ServiceUsageEventsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3ServiceUsageEventsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DefaultAPI.V3ServiceUsageEventsPost(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SidecarsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3SidecarsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SidecarsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SidecarsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SidecarsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SidecarsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasQuotaGuidRelationshipsSpacesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var quotaGuid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesPost(context.Background(), quotaGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var quotaGuid string + var spaceGuid string + + httpRes, err := apiClient.DefaultAPI.V3SpaceQuotasQuotaGuidRelationshipsSpacesSpaceGuidDelete(context.Background(), quotaGuid, spaceGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3SpacesGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidFeaturesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidFeaturesNameGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesNameGet(context.Background(), guid, name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidFeaturesPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var name string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidFeaturesPatch(context.Background(), guid, name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidRelationshipsIsolationSegmentGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidRelationshipsIsolationSegmentPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidRelationshipsIsolationSegmentPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesGuidUsersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesGuidUsersGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3SpacesPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3SpacesPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3StacksGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksGuidAppsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3StacksGuidAppsGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3StacksGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3StacksGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3StacksGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3StacksPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3StacksPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3TasksGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3TasksGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3TasksGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3TasksGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3TasksGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3TasksGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3TasksGuidPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3TasksGuidPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3UsersGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3UsersGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3UsersGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DefaultAPI.V3UsersGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3UsersGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3UsersGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3UsersGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DefaultAPI.V3UsersGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DefaultAPIService V3UsersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DefaultAPI.V3UsersPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_domains_test.go b/test/api_domains_test.go new file mode 100644 index 0000000..2fa43b4 --- /dev/null +++ b/test/api_domains_test.go @@ -0,0 +1,118 @@ +/* +Cloud Controller API + +Testing DomainsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package capiclient + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID/capiclient" +) + +func Test_capiclient_DomainsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DomainsAPIService V3DomainsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DomainsAPI.V3DomainsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + httpRes, err := apiClient.DomainsAPI.V3DomainsGuidDelete(context.Background(), guid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DomainsAPI.V3DomainsGuidGet(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsGuidPatch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DomainsAPI.V3DomainsGuidPatch(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + var orgGuid string + + httpRes, err := apiClient.DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsOrgGuidDelete(context.Background(), guid, orgGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsGuidRelationshipsSharedOrganizationsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var guid string + + resp, httpRes, err := apiClient.DomainsAPI.V3DomainsGuidRelationshipsSharedOrganizationsPost(context.Background(), guid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DomainsAPIService V3DomainsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DomainsAPI.V3DomainsPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go new file mode 100644 index 0000000..88c29cc --- /dev/null +++ b/utils.go @@ -0,0 +1,361 @@ +/* +Cloud Controller API + +API specification for managing environment variable groups in Cloud Controller. + +API version: v3 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package capiclient + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file